Hi Robert, On 3/14/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Normally they will go into the same RenderBin, but if you nest a subgraph within a RenderBin then all internal RenderBin references within this RenderBin will be nested as well using new RenderBin's. I hope that makes sense, without a pen and paper its hard to explaion.
Yeah, I noticed that, but I wasn't sure whether it's by design or not. Wouldn't it be better if RenderBins were not nested? This way, if you set two objects in different subraphs to use the transparent bin, they will be drawn together, regardless of the render bins above them. The nesting of RenderStages can still be performed by using CameraNode's. Maybe RenderStage should have a cache that maps a bin number/name pair to a RenderBin object? However, I don't understand all the code that goes on with RenderBin, so I'm sure it's more complicated than that. -Farshid _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
