Hi,

my guess is that the RTT cameras are not fully adapting to the new texture size (even with your calls to dirtyTextureObject and setTextureSize). Have a look through the RTT code path for a method called setupcamera or something similar. You would maybe have to reset the rtt camera (prior to the next renderstage being run) using this. Similar problems exist when one needs to change the camera attachments, I have not found an elegant solution yet. Once you found the method, also search the old mailing list archives, I remember the whole RTT camera reset thing being discussed a while ago.

What you could try (as a hack to pinpoint the problem, not a solution) is to create new RTT camera and attachments after resize and see if the problem goes away.

rgds
jp


Guy Volckaert wrote:
I guess I should have made the problem more clearer. Essentially, when ever the window is resized, the window become fully black (and I don't know why).
The scene graph layout is faily simple, but I decided to provide an image 
anyways (see attached image).

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





------------------------------------------------------------------------


------------------------------------------------------------------------

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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to