On 11/15/06, jOan <[EMAIL PROTECTED]> wrote:
I'm gonna try with the trianglefunctor. Its a good opportunity to lurn about it !

Well its a pretty convoluted way to solve this particular problem, and will require many more lines of code but each to their own.. :)

In running with OSG CVS then I'd recommend have a look over the src/osgShadow/OccluderNode.cpp code which includes a section that use TriangleFunctor to extract geometry information from drawables, including ShapeDrawables.   It doesn't create an osg::Geometry, nor normals though.

Also please don't expect me to guide you through the code, you are bascially doing something recommend for solving the problem your are trying to solve.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to