Hello, I'm under the general assumption that: a) The openGL context is only valid during the Viewer::Frame (maybe during realize?) and all context-sensitive calls should happen during this draw time. b) Modifying the scene graph during the draw time is bad. c) Modifying the scene graph during the update callback is good; update callback doesn't have a valid OpenGL context.
My question is, how does one add openGL context-sensitive hierarchy to an existing scenegraph at runtime? For example, lets say based on a keypress, I want to query some openGL extentions, create some vertex buffers, build a little scene graph, and add this to the scene root. What is the best practice for doing this? Thanks for any insight! Erik Johnson
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

