Hi Zach,

On 1/21/07, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hi Robert,

I tried the getWorldMatrices but it is not working for me.  I have a sun
model that I'm trying to move with the eyepoint so that it doesn't get
culled by the far clip.
So I have,
MoveEarthySkyWithEyePointTransform->SunTransform
But, getting the world matrices for the SunTransform is just giving me the
sun matrix.  The sun geometry is showing up in the correct position, but I
cannot find a way to query this position.  I need this for the glare
occlusion calculation.  Is there any other way to get the position of a
node?

getWorldTransform should provide you with the world transform, is this
is just the sun transform then is it simply that that's the only
transform?

When you talk of a position of node, in what coordinate frame?  I'm
not sure what you are expecting, the transformation into eye
coordinates?

Also a matrix isn't a position, its just a matrix that takes you from
one coordinate frame to another.  If you want a position then you'll
need to transform a Vec3 in local coords by the world matrix to the
get the position in world coordinates.

I'm afraid I know to little of what you are trying to achieve, the
composition of your scene graph and the steps you are trying to take
get the results you want to be able to know what to recommend.

Robert.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to