Jump to content

Camera Control


Natti Breen
 Share

You are about to reply to a thread that has been inactive for 3618 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

To quickly sum things up, I am in need of help to make a simple camera control hud. I am just not too familiar with camera control scripts to finish it. Basically this is what I need to happen:

 

1. User wears a HUD
2. HUD asks permission for camera control
3. HUD user walks around a room
4. User steps on invisible prim A
5. Camera is changed to a fixed position.
6. User steps on invisible prim B
7. Camera is changed to a different position.
8. User's camera is returned to normal when HUD is taken off.

Most of it is simple scripts, but I am currently stuck on how to set a certain camera setting via scripts.

Link to comment
Share on other sites

If you know the camera position and the camera rotation you can compute a point to look at like it is done in this example

See the second line of code from the bottom:

llSetLinkCamera( LINK_THIS, cam_pos, cam_pos + llRot2Fwd(cam_rot));

You can't use this example for your purpose because you must sit on the object for llSetLinkCamera to do any good, but you can use the way the focus point is computed from the camera rotation

:smileysurprised::):smileyvery-happy:

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3618 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...