On 12/5/2011 6:20 PM, bart gallet wrote: > I am experimenting with viewers and threads and I would like to launch a > viewer (osgViewer::Viewer) from a separate thread (OpenThreads::Thread) - > thus a thread that is not the main thread - but it doesn't work. The > application stalls. > Should this be able to work or am I abusing the API here?
I think you're off the intended path. OpenGL really wants to focus only on a single thread, and you have to associate the context with a thread. OSG likes to set up the threading itself the way it likes so it knows where the main draw thread can be found whenever it needs it. The question would be what are you really trying to accomplish with this and is there another way to skin this cat? -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

