Hello Zhi Yuan,

What
I want to do is that I want to draw the model once at the first
frame,during the other frames,I just keep the model drawn at the frist
frame(do not redraw the model ).

First of all, one of the basic principles of real-time rendering is that you actually want the scene to render continually, so that changes in viewpoint or the state of objects will be visible on screen.

That being said, there are situations where you don't want this, for example modeling applications will typically only render when there's a change in viewpoint, otherwise the image will stay the same as before. If this is what you want, you can just roll your own frame loop and only draw a frame when you want, that's under your control. Check out the latest OSG version from SVN, there have been improvements to make on-demand rendering better. See

http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/43693

for the details.

If you really want to do it for a single object and not your whole scene, you could probably use impostors (osgSim::Impostor) but I have never used those and couldn't say if they're really what you're looking for.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to