Hi,

A simple problem:

When I try to modify the viewport zone during execution: the new  
viewport content is displayed on top of the old one. Do you know why  
the old one is not cleared?

I guess I should use a specific "clearing" function, but can't find  
the right one.

Not my real application (I don't do this every frame), but the same  
problem happens for this situation:

...
// In a previous function
viewer_.getCamera()->setViewport(0,0,1280,1024);  // initial size
...
while (!viewer_.done())
{
     viewer_.getCamera()->setViewport(100,100,300,300);

     // Draw the next frame.
     viewer_.frame();
}

Thanks in advance!
J-A

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

Reply via email to