Hi Aditi, You just need to call setUseDisplayList(false) once on each drawable at set up time, and thereafter it'll just use immediate more rendering of your data, calling drawImplementation on each frame. The CPU overhead isn't normally prohibitive.
A drawable doesn't have a osg::State, but it is passed the current osg::State for the current graphics context via the drawImplementation(State&) method. Robert. On 6/21/06, Aditi Goswami <[EMAIL PROTECTED]> wrote:
Hello all, Can anyone explain me when is the drawImplemnetation function of a Drawable class called? I am trying to use it and it is called only once.. I tried to setUseDisplayList() to false but then this function is called for each frame putting unneccesary load on cpu. I need to call the drawImplementation function on user inputs.. how can i do this? Also, is there is a function to retrieve osg::State of a drawwable? I found a getState function in the SceneViewer class which returns osg::State.. does that mean i need to change my windowing system? Is there a way out? Thanks Aditi -- _______________________________________________ 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/
