Hello Francesco,

Francesco Tamagni wrote:
> hi to all,
> i need to get the depth-sorted list of transparent geometries in the 
> scene and i want to get them out of a renderaction ( i don't want to do 
> the work twice!).
> 
> now, i looked at the code of renderaction and it seems to do the sorting 
> work during traverse, filling sorted maps, and then actual renders in 
> the stop() method calling draw() on the correct order, using the 
> previously filled maps.
> 
> so, setting enter and leave functors (as i did erroneusly ) i always get 
> the nodes in the same order because it is the visit order even if i set 
> setSortTrans(true) on the r.a. ...

yes, the scene traversal basically only collects information on what to 
render where and with which material. State sorting and the special 
handling of transparent objects happens afterwards.

> what can i do?

the only thing I can think of is to derive from RenderAction and 
override the stop() method.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to