Hello Aashish,

Aashish Chaudhary wrote:
> I was wondering if someone can point me where it happens in the source 
> code?

hm, I guess the starting point is where functors are inserted into the 
render tree: 
Source/System/Action/RenderAction/OSGRenderParition.cpp:dropFunctor() 
around line 725 transparent objects are inserted into the render tree 
with "root" _mTransMatRoots (it's not really the root as it is an object 
of type TreeBuilderBase - see 
Source/System/RenderingBackend/OSGTreeBuilderBase.h).
The particular type of TreeBuilder is ScalarSortTreeBuilder, and the 
scalar used for sorting is set in line 770:

pNewElem->setScalar      (  objPos[2]       );

        Cheers,
                Carsten

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to