Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Camera Location Bookmarks?

leeand00 Lednev
Registered User
Join date: 26 Sep 2008
Posts: 1
12-19-2009 06:07
Is there a script that I could use to bookmark the location of my camera?

Say for instance if I was working on a prim and I wanted to be able to quickly jump from a top down view of the prim to a side view, to a front view, or a back view?

Thank you,
Andrew J. Leer
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
12-19-2009 09:30
Here's my 2 cents on what you're looking to do. Orthographic views can easily seem like an obvious missing feature in SL, if you're used to using them in 3D modeling programs. However, if you really think about it, it's arguable that they'd be of little or no benefit in SL, since there's no universal grid origin, no common point of reference for multiple cameras to coordinate. They might be helpful; they might not.

That said, technically, you COULD script an object to take control of your camera, if you really want to. For the specific how-to's, I'd suggest you ask for help over in the Scripting Tips forum, as that's where you'll have the best chance of finding an expert on this kind of subject. You could probably create a HUD with some buttons on it, for recording and repeating camera coordinates, relative to your avatar. In theory, as long as you don't move the avatar, it should work.

It's also possible you might be able to use exact positioning instead of just relative positioning, but I don't know for certain. My scripting knowledge is pretty limited.

Really, though, I think this would all be far more trouble then it could possibly be worth. The existing alt-mouse camera controls are very, very good.

I don't know if you fall into this category or not, but a lot of people who ask about additional camera views and such tend to be those who have been using the onscreen camera controls, rather than the alt-mouse controls. If you are in that boat (and by "you" I mean anyone who's reading this is, not just the OP) then you've got every reason to be frustrated with the difficulty you've experienced in operating the camera. If that's the case, let me help you out of that right now.

Those onscreen controls are some of the worst things in the history of bad things. They're horrid. They should never, ever, ever, ever, ever be used, period. They're clunky, imprecise, awkward, slow. Human vocabulary simply cannot express how limiting and just downright silly those controls are. Do yourself a favor and forget they exist.

Instead, use the alt-mouse system. It's far more accurate, infinitely faster, much more controllable, and most importantly, very natural feeling to use. It habitualizes quickly, and from then on, looking around in SL becomes as intuitive as turning your head in RL. You just do it, instantly, without even thinking.

Simply hold down alt, and wherever you click will become the focal point of the camera. Drag the mouse to zoom and rotate. Adding ctrl and shift along with alt will open up further rotation and panning options. Here's a quick diagram of how it works:



This might take a little getting used to if all you've ever used before are the on-screen controls. But after a day or two, tops, it will feel completely natural. You won't even think about it.

So, if you want that instant top-down view, instead of activating a script function, just hold ctrl-shift-click, and push the mouse forward. Want a side view, just hold the same, pull back on the mouse, and then alt-drag to the side, to rotate the view around the object. I think you'll find this to be far quicker and easier than fidgeting with buttons on a HUD or entering text commands or anything like that.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Piggie Paule
Registered User
Join date: 22 Jul 2008
Posts: 675
12-19-2009 09:45
How about looking at this from another angle (did you like my pun there!!) LOL


How about a script that you can temporarily put into an item you are editing.

Then by clicking on a menu, on an "on screen HUD" it spins/rotates the item into some preset positions.

So your camera stays fixed but the item moves, rather than the other way round.

I'm sure this would be possible and give you the same as what you want. Just coming at it from the other way round (so to speak)
Gaia Clary
mesh weaver
Join date: 30 May 2007
Posts: 884
12-19-2009 10:02
From: Piggie Paule
I'm sure this would be possible and give you the same as what you want. Just coming at it from the other way round (so to speak)
That would not work gracefully if your object was embedded in a set ;-)

It took me some time to realise the availability of the keyboard+mouse combinations Chosen has posted abve. But once i got the grip, building became a lot easier for me ;-) I never again missed the top/side/front view since then.

Also do not forget that you can set the camera lense opening angle with CTRL-8 CTRL-9 and CTRL-0 which gives you the possibility to zoom realy close to your object. That is sometimes very usefull to check seems... (And its different from the ALT-zoom combination chosen posted above)
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
12-19-2009 10:07
You could also check the macinima and photography resources - I'd be surprised if you couldn't find a camera control HUD there.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-19-2009 14:12
you can do both source and target tracking of camera position, as well as setting it.

optimal would be via the target object, which you could script to save and load views, relative to that object. it's a fairly complex project for someone with no scripting experience, but doable with a little time and reading.

ETA:
I'd be surprised if there weren't varieties of both available already for sale to the Machinima crowd
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -