[osg-users] node following the camera

2008-06-11 Thread Eric Pouliquen
Hi all, i'm trying to put a node in my scene, and making it following the cameraNode... for example a textured plane which is always facing the cam, centered in the viewport and always at the same distance from the cam... i can't use classical pre-render options do to that because i want

Re: [osg-users] node following the camera

2008-06-11 Thread Peter Wraae Marino
HI, i think what you want is: osg::MatrixTransform* mtrans = new osg::MatrixTransform; mtrans-setReferenceFrame( osg::Transform::ABSOLUTE_RF ); mtrans-setMatrix( osg::Matrix::identity() ); mtrans-addChild( pGeode ); osg::Projection* pProj = new osg::Projection(); osg::Matrixd m_mOrtho =

Re: [osg-users] node following the camera

2008-06-11 Thread Ulrich Hertlein
Eric Pouliquen wrote: i'm trying to put a node in my scene, and making it following the cameraNode... for example a textured plane which is always facing the cam, centered in the viewport and always at the same distance from the cam... i can't use classical pre-render options do to that