Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

On Login, Camera Focuses above head

Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
09-02-2006 18:11
A new bug has came up for me lately. I'm not sure what's causing it but when i log any accont in on both of my computers about 65% of the time the camera locks it's self above their head looking down at them while they walk around. i cannot change it either. i ended up having to script a attachment that moves the camera to the right area. I'm going to post my script below incase anyone else is experiancing this glitch. Just place this into a object and attach it. Even though i worked out this little fix, i believe this needs to be fixed within the client.

CODE

default
{
state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_CONTROL_CAMERA);
}
state_exit()
{
if (llGetPermissions() & PERMISSION_CONTROL_CAMERA)llClearCameraParams();
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_CONTROL_CAMERA)
{
llSetCameraParams([
CAMERA_ACTIVE, 1, // 1 is active, 0 is inactive
CAMERA_DISTANCE, 3.0, // ( 0.5 to 10) meters
CAMERA_PITCH, 10.0, // (-45 to 80) degrees
CAMERA_BEHINDNESS_ANGLE, 0.0, // (0 to 180) degrees
CAMERA_BEHINDNESS_LAG, 0.0, // (0 to 3) seconds
CAMERA_FOCUS_OFFSET, <0.0,0.0,1.5>, // <-10,-10,-10> to <10,10,10> meters
CAMERA_FOCUS_LAG, 0.0, // (0 to 3) seconds
CAMERA_FOCUS_THRESHOLD, 0.0, // (0 to 4) meters
CAMERA_FOCUS_LOCKED, FALSE, // (TRUE or FALSE)
CAMERA_POSITION_LAG, 0.0, // (0 to 3) seconds
CAMERA_POSITION_THRESHOLD, 0.0, // (0 to 4) meters
CAMERA_POSITION_LOCKED, FALSE // (TRUE or FALSE)
]);
}
}
}
_____________________
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
09-02-2006 18:19
Were you by any chance fiddling in the Debug Settings?

There is a setting in there called CameraOffsetDefault that governs where the camera is in relation to the avatar by default.

The default X position is negative, but there is a bug in the interface for this setting; when you try to change it gets clipped to 0 and won't get negative again.

If my memory serves this setting doesn't cause an immediate change but takes effect the next time you start SL.

-addendum -
I read your post too fast, this probably has nothing to do with your problem at all.
----

Have you tried an uninstall and reinstall of SL?
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
09-02-2006 19:32
That could be it. I did copy the settings.xml to the other PC. I remember editing the debug settings once but i kinda wizzed right by that part. Probably still changed it. :/ Thanks hehe. I'l keep this topic here incase anyone else has this problem and needs a fix or likes the script. The best fix is to cut that part out of the XML file or just delete the whole file (in my case being a oldbie i'l just snip that part out so i can keep my favorite settings available).
_____________________