Hi I would like to draw a simple 2d box around a moving object -
my first idea was to calculate the screen coordinates of the bounding box of the object and use a draw callback to draw the lines; I 've found: screenPos = worldPos * inverseModelView * projection; but when I use: osgViewer::View getCamera()->getGraphicsContext ()->getState()->getModelViewMatrix(), the matrix is always the identity matrix Is there another (a better) solution or what do I wrong ? How can I get the matrix to calculate the screen coordinates ? Thanks Dieter Unclassified Mail -------------------------
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
