Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Why no llGetCameraParameters?

Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
12-14-2006 17:01
We have llSetCameraParams. Why is there not a llGetCameraParams? This would be very useful in a variety of applications.

Thanks.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-14-2006 19:19
From: Geuis Dassin
We have llSetCameraParams. Why is there not a llGetCameraParams? This would be very useful in a variety of applications.

Thanks.


Such as?

What more then the position & rotation could you want?
We already have:
llGetCameraPos
llGetCameraRot
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
12-14-2006 23:04
Camera Focus, for one thing. I would very much like to be able to get those coordinates. It comes down to, if I can set it why cant I get it?
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
12-15-2006 08:13
From: Geuis Dassin
Camera Focus, for one thing. I would very much like to be able to get those coordinates. It comes down to, if I can set it why cant I get it?


llSetCameraParams lets you set a focus location, but I think that's largely for convenience. All the focus sets is the camera rotation - it doesn't change the focal length (you can't do that) nor the zoom (that's determined by the camera position). Because of that, how far away the focus point is from the camera doesn't make any difference - all that matters is where it is in relation to the camera. In other words, if you imagine a camera pointing a particular way (that is, having a particular rotation) and you imagine a ray fired straight out from the eye position of the camera, in that direction it's pointing, then in SL terms the camera could be considered to be "focused" on any of the points on that line - there's no single one that can be the One True Focus that a call should return.

If you want to be able to get locations from tracking the camera and then feed them back into llSetCameraParams, then you can get a suitable focus location by llGetCameraPos() + (<x,0,0> * llGetCameraRot()) where x is any number. (Actually, without being able to look at my scripts here, I'm not sure it's the x axis.. it might be the z axis, in which case substitute <0,0,x>, but I hope you understand what I'm getting at.)
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
12-16-2006 10:40
Its not the same.

When I alt-click somewhere with the camera, it defines a vector coordinate in 3 dimensional space within the sim where that click-point occurred. I *want* those coordinates.

Obviously the data exists. If we can *set* camera information, then we should be able to *read* camera information. All of it.
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
12-16-2006 15:09
From: someone
llSetCameraParams lets you set a focus location, but I think that's largely for convenience.

When I use CAMERA_FOCUS and CAMERA_FOCUS_LOCKED it does seem to fix a position that the camera stays focused on. Walk around, move up and down, and the camera stays locked on a specific position.
_____________________
-

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

-