Natti Breen Posted March 8, 2013 Share Posted March 8, 2013 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 HUD2. HUD asks permission for camera control3. HUD user walks around a room4. User steps on invisible prim A5. Camera is changed to a fixed position.6. User steps on invisible prim B7. 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 More sharing options...
Dora Gustafson Posted March 8, 2013 Share Posted March 8, 2013 The first example in the wiki: llSetCameraParams does have what you need It sets the camera focus and camera position which is what you need to do :smileysurprised::smileyvery-happy: Link to comment Share on other sites More sharing options...
Natti Breen Posted March 8, 2013 Author Share Posted March 8, 2013 So based off of the example, the line CAMERA POSITION, camPos would be the sim coordinate of where the camera would be? And how would we set the sight direction? Link to comment Share on other sites More sharing options...
Dora Gustafson Posted March 8, 2013 Share Posted March 8, 2013 The camera will find the direction when you tell it what to look at, the focus point. Link to comment Share on other sites More sharing options...
Dora Gustafson Posted March 8, 2013 Share Posted March 8, 2013 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 More sharing options...
Recommended Posts
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