Hi Shailesh,
On Mon, 2004-07-26 at 02:00, shailesh kumar wrote:
> 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) .
As Carsten already said, that renders the whole subgraph under that
node.
> 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?
No, the actual rendering process is totally hidden inside the
RenderAction, the SSM won't help you here.
I'm not quite sure why you need to traverse the graph yourself. Just
measuring the time for the graph with the unwanted nodes switched off
should give you acceptable results. What do you need to do during
traversal?
Dirk
-------------------------------------------------------
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