Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Teleport and the camera gets left behind

Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
08-16-2007 06:43
Hi,

I have been going through a number of teleporting scripts for short-range tps, such as floor-to-floor, around a mall, etc, (just by using them, not by examining the code), and one thing that I have noticed is that several of them produce a strange camera effect.

The effect is that when you click on the prim containing the tp script, and choose Teleport from the Pie Menu, you disappear, but your camera stays there looking at the space you once occupied, rather than going with you and appearing behind you at the new location. You have to make an avi movement for the camera to work at the new location, while other teleport scripts do not have this effect and work fine.

So just out of curiosity, does anyone know the likely cause I should be looking for when I start getting into the script code for these teleporters?

Regards

Rock
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
08-16-2007 10:26
I think that happens when you disable camera constraints. Short-range teleports are just sits with unusual sit targets. There is no reason to reset the camera after a sit so if camera constraints are off and you don't tp too far the viewer will just leave the camera alone.
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
08-16-2007 10:35
It seems to happen if you Alt-Click something to focus on it and then TP and I've had it happen when I've TPed well beyond the draw range I have set. Just one more piece of SL weirdness.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
08-16-2007 10:41
If you've alt-clicked, your camera will not move unless you're exceeding the maximum camera range (with camera constraints enabled). That's not a bug.

Suppose you're sitting on a roundabout and don't wanna get sick so you alt-click somewhere to lock the cam. You don't want SL to move your cam anyway just coz the prim you're sitting on is moving. For SL, there is no difference between a roundabout and a teleporter. It's a prim that's moving and should not affect the camera except when going out of range in which case your camera will move but keep aiming for the spot you were looking at earlier.

Just press escape a few times to get the camera back on you. You can also try to change the camera from the script, like forcing mouselook.

Lyn
Fnordian Link
Registered User
Join date: 23 Apr 2007
Posts: 20
09-14-2007 20:38
From: Lyn Mimistrobell
If you've alt-clicked, your camera will not move unless you're exceeding the maximum camera range (with camera constraints enabled). That's not a bug.

Suppose you're sitting on a roundabout and don't wanna get sick so you alt-click somewhere to lock the cam. You don't want SL to move your cam anyway just coz the prim you're sitting on is moving. For SL, there is no difference between a roundabout and a teleporter. It's a prim that's moving and should not affect the camera except when going out of range in which case your camera will move but keep aiming for the spot you were looking at earlier.

Just press escape a few times to get the camera back on you. You can also try to change the camera from the script, like forcing mouselook.

Lyn



This often occurs with teleporters even with no alt-click (and without having turned camera constraints off as well). Unfortunately, forcing mouselook isn't a great solution because then the avatar is left in mouselook which they must then exit on their own.

Other than mouselook, is there no other way to use scripted camera controls to reset the camera to the current location after the teleporter move?
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
09-15-2007 05:06
From: Fnordian Link
This often occurs with teleporters even with no alt-click (and without having turned camera constraints off as well). Unfortunately, forcing mouselook isn't a great solution because then the avatar is left in mouselook which they must then exit on their own.

Other than mouselook, is there no other way to use scripted camera controls to reset the camera to the current location after the teleporter move?


you can set the position of the camera when you teleport llSetCamera....() commands will allow you to position the camera to where the person will be TPing. I believe these commands only "Update" when an avatar sits on the object, so changing them after the person has sat down (a 3 second delay to play a teleporting animation) may be a bit more involved, although I suspect it's still very possible.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
09-15-2007 05:50
I struggled with this issue when I created my Beam-Me teleporters. I never really found an adequate solution. I tried various camera commands but none seemed to do any good. I found the effect to be rather random. It seems to occur about 10% of the time no matter what I do. I reached the conclusion it was one of those SL weirdnesses. As mentioned above, hitting esc twice gets the camera back to where it is suppose to be.
Fnordian Link
Registered User
Join date: 23 Apr 2007
Posts: 20
09-15-2007 10:25
Thanks Senuka and Monica. I guess we really need a command to update the camera after its been set (or any time for that matter). I guess I'll just put in a llSetCamera anyway and not worry about it too much if it doesn't always work. :)