Hi Peteakos, The osg::Drawable by default creates an OpenGL display list to wrap up the OpenGL calls done in the drawImplementation() and then calls this OpenGL display list on subsequent frames.
You can disable the use of display lists by calling drawable->setUseDisplayList(false); Robert. On 14 September 2012 13:33, Peterakos <[email protected]> wrote: > Hello. > > I create a class which inherits from drawble and i implement the > drawImplenetation method. > But as it seems it is called only once at start. > > I want it to be called in every frame. > Do i have to create a DrawCallback and set it to Drawable ? > > and what would the Drawable::drawImplementation contain if i implement the > drawing code in DrawCallback::drawImplemenetation ? > > thank you for your time. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

