Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Don Linden's camera control script

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
06-29-2006 15:53
In Don Linden's camera script, these are the parameter values for view from behind the AV looking in the direction the AV is facing. What would I need to change to achieve the same perspective but from in front of the AV looking at what is behind the AV?
llSetCameraParams([
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
CAMERA_BEHINDNESS_ANGLE, 45.0, // (0 to 180) degrees
CAMERA_BEHINDNESS_LAG, 0.5, // (0 to 3) seconds
CAMERA_DISTANCE, 8.0, // ( 0.5 to 10) meters
//CAMERA_FOCUS, <0,0,5>, // region relative position
CAMERA_FOCUS_LAG, 0.05 , // (0 to 3) seconds
CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
CAMERA_PITCH, 20.0, // (-45 to 80) degrees
//CAMERA_POSITION, <0,0,0>, // region relative position
CAMERA_POSITION_LAG, 0.1, // (0 to 3) seconds
CAMERA_POSITION_LOCKED, FALSE, // (TRUE or FALSE)
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
CAMERA_FOCUS_OFFSET, <3,0,2> // <-10,-10,-10> to <10,10,10> meters
]);
Hiro Queso
503less
Join date: 23 Feb 2005
Posts: 2,753
06-29-2006 16:18
I've been looking at camera functions myself today, actually :-)

A combination of it being very late here (thus producing blurry-eye syndrome), and not being 100% confident on this just yet (new to LSL), means that the best help I can offer is the following link heh..

http://secondlife.com/badgeo/wakka.php?wakka=FollowCam&show_comments=1#comments
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Read them
06-30-2006 03:45
I have read that section several times, however, the explanations or terms used do not make it unclear to me how to get what I want. In the example I gave in my origianal post, the camer is above and slightly behind the AV looking in the same direction as the AV. What I want is to move the camera postion to be above and slightly infront of the AV looking in back of the AV. I have tried to get there using trial and error, but it has mostly been error.
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Trial and error not getting anywhere
07-01-2006 13:43
I have tried changing just about ever follow camera parameter that seemed even possibly related to the angle of the camera and its orientation to the AV. I get all sorts of views but not what I want. Surely, there is a set up that will have the effect of moving the camera in front of and looking back toward the AV, the reverse of the normal view for driving a car.