Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Reversing Follow Camer view

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
07-01-2006 16:38
I want the camera looking back at the AV from the front. 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.

Yes, you may have seen this same question under a different heading. But since no one responded, I thought maybe the title was the problem. I apologize, but I need help.

MOD
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
07-01-2006 22:35
You might try with the assistance of a pose or animation (e.g. gestured) activated from an object similar to a pose stand or dance ball/bracelet ect. There are free modifiable versions out there to play experiment with
_____________________
Talthybius Brevity
Headshop Proprietor
Join date: 14 Nov 2006
Posts: 76
12-09-2006 23:16
This is the only thread I can find on this topic, so I'm bumping it.

Does anyone know of a way this can be accomplished?
2k Suisei
Registered User
Join date: 9 Nov 2006
Posts: 2,150
12-10-2006 06:43
I've never played with llSetCameraParams(). But I just went and had a quick peek on the wiki and it looks like you'll have to constantly update the camera's parameters using a timer.

So set CAMERA_POSITION to the position infont of your avatar and set CAMERA_FOCUS to your avatar's position.

To get the position 10 meters infront of your avatar:

position=llGetPos()+(<10,0,0>*llGetRot());



I'll try it all out later, if I get time.
2k Suisei
Registered User
Join date: 9 Nov 2006
Posts: 2,150
12-10-2006 07:57
I tested it and it kinda works. There was no need to set the CAMERA_FOCUS because that's handled automatically. The only problem was that the camera would flick from one position to another and this would look a little crap.

Another method would be to make an invisible and physical sphere that constantly faces towards and hovers infront of your avatar. Then have the camera track this sphere.
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-10-2006 08:51
Unfortunately, trying to rapidly move camera position manually (well, manually with scripts) rather than using the built-in followcam parameters always seems to be very jerky in my experience, and I never found a way to stop it.

If I was going to do something like that I'd try something whereby the camera didn't move very often unless you turned away from it... perhaps in four quadrants, so every time you turn more than 90 degrees the camera zooms round a full 90. Um, it's a little hard to explain verbally, but I do know what I mean, honest. Maybe I will try to script it when I have a moment.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Talthybius Brevity
Headshop Proprietor
Join date: 14 Nov 2006
Posts: 76
12-11-2006 02:33
Thanks guys, i'm very new to it and still learning by example so any examples appreciated.

Also, the camera need not track. It is to be reversed during a about 6 seconds of avatar animation, then restored when the animation ends. :-)
Talthybius Brevity
Headshop Proprietor
Join date: 14 Nov 2006
Posts: 76
12-11-2006 18:40
I think at this point all I really still need to know how to do is how to take the results of
position=llGetPos()+(<10,0,0>*llGetRot()); and feed it back to CAMERA_POSITION and I'll be all set. :-)

been digging through the wiki and forums and haven't been able to find an example of that yet...