[osg-users] osgViewer::CompositeViewer PreDrawCallback

Argentieri, John-P63223 John.Argentieri at gdc4s.com
Thu May 22 09:30:29 PDT 2008


That would probably do it. Thanks, Robert. 

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Thursday, May 22, 2008 11:59 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgViewer::CompositeViewer PreDrawCallback

Hi John,

On Thu, May 22, 2008 at 4:28 PM, Argentieri, John-P63223
<John.Argentieri at gdc4s.com> wrote:
> I took the time to look this up, so that I wasn't pulling at straws. 
> We have some objects which are drawn as either transparent or opaque 
> depending on which view they are in.
>
> When we received the PreDrawCallback, we wanted to set the rendering 
> hint to transparent -- I think the problem is that the objects are 
> already sorted into bins at that particular time.

Would a cull callback not do the trick.  You can get the current view
from the CullVisitor.

Robert.
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g


More information about the osg-users mailing list