Thanks Andreas 
For Rendering the scenegraph while traversing the nodes , I can leave out the 
nodes which I dont want to traverse by setting its travmask as 0 . But I have a 
confusion as to how to render those nodes which I want to render as I traverse 
them , because I think I cant use simplescenemanager for that .
By the docs I understood that may be I can do like this 
1) traverse node by node and render some nodes by -
RenderAction *ra = RenderAction::create();
ra->apply(someNode) .

But when I saw some code sample as to how to use renderaction in place of 
simplescenemanager , it was done like -
 window->render(renderAction); 
But in this way I wont be able to render node by node . 
Should I go through the simplescenemanager code to understand more on how to 
use renderaction to render while traversing?

thanks
Shailesh


On Sun, 25 Jul 2004 Andreas Zieringer wrote :
>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

Reply via email to