Hi Robert.

I have an object that is behind an osg::Switch. The switch will normally
be set to all children off. When I turn it on I want to get a callback
once a child is drawn. For right now, the child that I am interested in
is a osg::Text drawable, so I can use the callbacks associated with
drawables. I have been looking at the osgcallback example. Do I want to
use a draw callback, update callback, cull callback, or what? I just
want to ensure that the object behind the switch actually gets drawn to
the screen before I execute the next line of code. You da man.

Thanks,
John 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, July 31, 2006 8:39 AM
To: osg users
Subject: Re: [osg-users] Question about adding elements to the scene
graph

On 7/31/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
> I want to be able to add an element that is a simple heads up display 
> with some information on it just before performing a database load. I 
> can add it just fine, but the problem is, it does not get rendered 
> until after the database is loaded. Is there a way for me to force the

> code to wait until a recently added object is actually rendered?

This all is down to your application, its totally under you control
when add elements to the scene and when you render the scene.   It
that you are using osgviewer and expecting it to behave you want?
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to