hi robert,

thanx for your answer. it helped me out.
but how do i accumulate the matrix efficiently?

cheers,
carsten

Zitat von Robert Osfield <[EMAIL PROTECTED]>:

> Hi Carsten,
>
> The CameraView node is meant to be placed within the scene graph as a
> leaf node, the accumulated transform matrix down to the CameraView
> provides its final position in space just like any other node.
> CameraView is a passive object, effectively a marker that you put into
> the scene graph it doesn't do any rendering itself.   One would use it
> for marking various view points in the scene, or for creating a camera
> view that tracks a node in the scene i.e. a car.
>
> To render the view one must get the the accumulated view matrix (the
> world to local transform) and pass it onto the viewers Camera setting
> it's view matrix.   Right now there isn't a convenience method built
> into osgViewer for doing this, so you'll need to manage this in your
> own application.  You could use the NodeTrackerManipulator for to
> attach to the CameraView, but this manipulator is general purpose and
> doesn't know about some of the specific features of CameraView.
>
> CameraView isn't widely used, which is why it hasn't been wired up in
> osgViewer, perhaps further down the line we'll revisit this, feel free
> to contribute to this effort.
>
>
> Robert.
>
>
> On 8/28/07, Carsten Scharfe <[EMAIL PROTECTED]> wrote:
>> hi there,
>>
>> do i understand the functionality of the cameraview node correct?
>>
>> i assume, that cameraview is used to position the camera (and 
>> animate, of course)
>> within the scene, without having to manipulate view matrices directly.
>>
>> but then how do i retrieve the actual viewing matrix, if the camera 
>> is positioned
>> by a cameraview?
>>
>> what happens if geometry is attached as a child of a camera node?
>>
>> maybe someone can help me out?
>>
>> cheers,
>> carsten scharfe
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



------------------------------------------------------------------------------
Carsten Scharfe

Student of Computer Science   University of Paderborn

AR/VR Team                    Fuerstenallee 11
Heinz Nixdorf Institute       33102 Paderborn (Germany)
------------------------------------------------------------------------------
Fon:
        05251/606229            (HNI - VR Lab)
E-Mail:
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]
------------------------------------------------------------------------------
                        The dragon has woken up !
------------------------------------------------------------------------------


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to