Robert,

I think I found the reason this is jamming up. My database is loaded
when certain conditions are met in a viewer event handler. The viewer
event handler calls the method which turns on the switch to show
osg::Text and load the terrain, but my feeling is that the viewer must
halt while running event handler and therefore the viewer never draws
the osg::Text to send the draw callback. The only solution that I can
come up with is to store the database filename somewhere and do a
delayed load of the database. This is unless, of course, I can force the
viewer event handlers into a thread which is separate from the viewer
itself. Is this a possibility?

Thanks,
John 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Monday, July 31, 2006 11:34 AM
To: osg users
Subject: RE: [osg-users] Callbacks and waiting

Robert,

I want to present a message (osg::Text) to the user just before I do a
osgDB::readNodeFile on a visual database. I turn the switch on to show
the dialog right before loading the database. The dialog shows up only
AFTER the database has been loaded. I just want to hold off loading the
database until the dialog actually shows up. What do you think I can do
to accomplish this? Sorry to take your time on this.

John

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Monday, July 31, 2006 11:26 AM
To: osg users
Subject: Re: [osg-users] Callbacks and waiting

Hi John,

I'm really not sure what you are trying to do and why, this type of
stuff really sounds in your application domain and something you've got
to work out.  I'd recommend just going through the OSG examples.
Try the run_examples.bat as a way of running through them, press escape
to exit each app and move on.

Robert.

On 7/31/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
>
>
>
> Robert,
>
> I created an update callback that sets a member bool to true. In the 
> method which alters the switch to turn on all children, I do a while 
> on the variable that should break when it is set to true. The callback

> is calling the set to true method, but it stops calling when I am in 
> the while loop, so the while loop never breaks. Are there any examples

> anywhere of code that waits for something to actually be rendered to 
> screen? Does it sound like a threading model problem? I can't figure 
> out a method that works for the life of me. Please help!
>
> Thanks again,
> John
> _______________________________________________
> 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/
_______________________________________________
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