Hi Frashid,

On 3/14/07, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
Hi Paul,

I'm pretty sure it's a render bin problem. I did some debugging and
discovered that each geometry is being placed into a different
RenderBin, although their bin number and names are the same during the
cull traversal. It seems that osgUtil::CullVisitor does not always use
the same RenderBin instance with StateSets that have the same bin
number and name.

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.

> Robert, should drawables in different subgraphs with the same render
bin details be placed into the same RenderBin instance during the cull
traversal? I made a quick hack that ensured this was the case and it
fixed my problem. But the hack only works on this specific test case,
it doesn't address the bigger problem, as I see it.

From my work on this issue I think the bug is related to nesting of
RenderBin and the management of osgUtil::StateGraph.  The new change
in RenderBin's draw traversal was related to pushing and pop local
StateSet attached to the RenderBin, so I think something has gone
amiss with keep the state consistent.  Exactly what is amiss I don't
know yet.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to