[osg-users] Changing viewport while running

2008-03-13 Thread ja . boulay
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

Re: [osg-users] Changing viewport while running

2008-03-13 Thread Robert Osfield
Hi J-A, If the viewport is smaller than the window and there is nothing else clearing the window then you will see a left over contents of the window. To handle cases like this there is a clear in GraphicsContext that you can enable via the GraphicsContext::setClear*() methods. The