Robert,

We are using getOrCreateStateSet()->setRenderBinDetails. What we have is
this:

osg::group1->osg::group2->osg::group3->osg::geode->osg::geometry, where
group3 contains multiple geode->geometry children.

group3 has setRenderBinDetails called without specifying
INHERIT_RENDERBIN_DETAILS,
Which means it is setting to USE_RENDERBIN_DETAILS by default, correct?

geode has setRenderBinDetails called, specifying
INHERIT_RENDERBIN_DETAILS.

None of the other stuff has renderbin details set in the statesets,
HOWEVER, there may be other statesets in the chain that do exist (I call
getOrCreate). Maybe they all exist regardless of whether I call
getOrCreate, but I am not sure of this.

The geode/geometry subtrees also have a texture associated with them.
They also have GL_DEPTH_TEST disabled, so that we should see the most
recently drawn (highest renderbin #) when two geometries overlap or
would normally conceal one another. This is not what's happenning
however. Any ideas why this might be the case? I have been over the code
and I'm quite sure that I've described the situation more accurately.

John Argentieri
Software Engineer
GENERAL DYNAMICS
C4 Systems 
(407) 281-5568
[EMAIL PROTECTED]

"This email message is for the sole use of the intended recipient(s) and
may contain GDC4S confidential or privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If
you are not an intended recipient, please contact the sender by reply
email and destroy all copies of the original message."


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Wednesday, December 12, 2007 2:42 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] INHERIT_RENDERBIN_DETAILS

Hi John

I'm afraid there is too little info provided to know what might be up
and how to fix it.  StateSet::RenderBinDetails is what should be used to
control overall draw order, but you make not mention of this.

Robert.

On Dec 12, 2007 7:08 PM, Argentieri, John-P63223
<[EMAIL PROTECTED]> wrote:
>
>
>
> Hello all.
>
> We are using inherit renderbin details to assign a nested set of
priorities.
> We have a group node with a top-level priority which contains several 
> geodes with priorities using the inherit flag. Each of the geodes has 
> a textured polygon geometry. We want to have the polygons depth test 
> disabled and drawn in a certain order so that they will show the last
drawn on top.
>
> OSG is not drawing these in order as it should. Any ideas what the 
> problem might be? We haven't used the override renderbin details flag 
> anywhere, so it is bizarre that things are happening this way. We can 
> turn on blending and lower the alphas and see that both our polygons
are there.
>
> John Argentieri
> Software Engineer
> GENERAL DYNAMICS
> C4 Systems
> (407) 281-5568
> [EMAIL PROTECTED]
>
> "This email message is for the sole use of the intended recipient(s) 
> and may contain GDC4S confidential or privileged information. Any 
> unauthorized review, use, disclosure or distribution is prohibited. If

> you are not an intended recipient, please contact the sender by reply 
> email and destroy all copies of the original message."
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to