I'm afraid you've hit up against a caverate of using osgFX, it has a frame delay this it requires to compute what extensions are available before the final implementation paths are selected. I would like to improve on this by have all the paths selected via a set of autoregistering set up codes, but right now don't have the window in time to be able to tackle it. Right now you'll just have to call cull and draw twice for the first frame that its drawn.
Robert.
On 10/12/06, John Aughey <[EMAIL PROTECTED]> wrote:
Hello-
I'm using osg within a Qt application that uses osgUtil::SceneView to draw within a QGLWidget window. In paintGL, it calls update, cull, and draw on the SceneView object.
Everything has worked well, except when I use osgFX::Scribe. In my program, it dynamically creates an osgFX::Scribe object and inserts it into the scenegraph in response to user actions. The problem is, the first time update,cull,draw is called the Scribe object doesn't show. But the second time update,cull,draw is called it shows. To verify this, I've copied my update,cull,draw commands twice in paintGL, and when I do it works.
Any thoughts? Should I be doing something extra in paintGL besides update,cull,draw?
Thanks
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/
