Hi, Chris 

I have a switch with the root nodes for each frame. So for the playback I do 
something like:


Code:

        while( !viewer.done() )    {
                float t = (GetTickCount()-TM)/1000.0;

                if (t >= 0.33)          {
                        if (play)                       {
                                frame++;
                                TM = GetTickCount();
                        }
                }

                if (frame < 0) frame = 0;
                if (frame > 54) frame = 0;

                pScene->setAllChildrenOff();
                pScene->setValue(frame,1);

                viewer.frame();
        }





It's crude but all I'm trying to do is a quick proof of concept. 


In your post above you suggest adding a camera that doesn't actually render.  
Can you point out which of the example projects I should look at? 


Thank you!
Eric

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42885#42885





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to