On Wed, May 20, 2009 at 9:07 AM, dimi christop <dimi_chris...@yahoo.com> wrote: > thanks for the reply. > I have implemented all sorts of particle functionality (tris, lines, quads) > already therefore > I prefer to port the code (if possible) initially as is and enhence it > further after that. > Any idea how to get the modelview matrix?
>From the CullVisitor you just do cullvistor->getModelViewMatrix() which passes back a pointer to a RefMatrix (which is just a Matrix with reference counting.) You can get the CullVisitor by dynmaically casting the NodeVistor passed in to the Node::traverse() method or the node callback. Have a search through OSG sources to see example of this being done. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org