I'm porting my application from 1.2 to 2.x too and meet the same problem.
To render an empty scene, I do a viewer->setSceneData(new osg::Node); In osgViewer the function frame() do all the work for you and, anyone can correct me if I'm wrong, you do not need to call any update() anymore but only the frame() function. I didn't find any porting guide. Anyway, I didn't have to do a lot of modification for my app running even if I think they are more elegant way to do what I want appearing in version 2. Best Regards ________________________________ De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de #POH CHENG GUAN# Envoyé : mercredi 5 septembre 2007 05:04 À : [email protected] Objet : [osg-users] OpenSceneGraph 2.19 osgViewer Hi, Is it possible to just render an empty background without loading a model? If I set my viewer->setSceneData(0), osgViewer crashes when it comes to viewer->realize(). Does anyone have a porting guide from version 1.2 to 2.19? The online version is quite brief, in version 1.2, I will call viewer->update(), what is the function that replaces this call for version 2.19? Regards, CG ________________________________ **Disclaimer** The sender of this email is NOT authorized to represent or act on behalf of Nanyang Technological University in any matter or transaction by means of using this email account. Nanyang Technological University will not be responsible for any content or views expressed in this email and this email does not express the views or opinions of the Nanyang Technological University.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

