Many thanks for your answer Per Rosengren,
I tried it and it works fine. Sorry, but I forgot to use 
the Look at function.

Many thanks

Best Regards
Arnaud


> You have to set both the view matrix and the projection matrix of the
> camera.
>
> The view matrix is the pose of the scene coordinate system in the camera
> cordinate system.
> Use
>
> void  setViewMatrixAsLookAt (const osg::Vec3 &eye, const osg::Vec3
> &center, const osg::Vec3 &up)
>
> and provide it with the position for the camera (eye) and your HUD
> object (center), and the vector that points in the up direction of the
> HUD (up), all un the scene coordinate system.
>
> The projection matrix sets the projection from 3d to 2d. Use
>
> void  setProjectionMatrixAsPerspective (double fovy, double aspectRatio,
> double zNear, double zFar)


      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to