Hi shailesh,
for calculating the number of triangles you can use
UInt32 calcPrimitiveCount(GeometryPtr geo,
UInt32 &triangle,
UInt32 &line,
UInt32 &point);
in OSGGeoFunctions.h
Well writing your own RenderAction is quite complicated. What about
using node->setActive(false) to skip the rendering for this nodes?
Andreas
Hi
I am using Action classes in my application for traversing the graph and doing
some operations on it.
My main two tasks are
1) traversing each node and calculating the number of triangles or polygons in each geometry node .
2)Traversing the scenegraph and rendering it a part of it . I guess for that I need to use RenderAction instead of using simplescenemanager .
However going through the documentation and doxygen docs werenot very helpful
to me as they were not very detailed and comprehensive.
I am trying to figure out which classes and methods to look into for finding
out the number of triangles in each node and also how do I use RenderAction to
render each node . There is a case in my application that I have to render few
parts of the scenegraph and discard the other while rendering . So I have to go
through all the node but render only a few.
Any help or guidance will be appreciated .
-shailesh
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users