Dear All,
      I find during the passed several day, I received less emails than before. 
Is there any problem?
Regards


2010-03-18 



ijustfu 



发件人: Georg Martius 
发送时间: 2010-03-18  18:36:23 
收件人: osg-users@lists.openscenegraph.org 
抄送: 
主题: [?? Probable Spam] Re: [osg-users] Render to Texture with independent 
framerate(Solution) 
 
Hi folks,
I would like to post my solution to the problem of rendering to a texture 
independently on the framerate of the viewer, the code is attached.
My solution is to derived a Viewer from osgViewer::Viewer, added a custom 
offScreenRender() function mimicking frame() and (offScreen)renderTraversal() 
function without statistics and swapbuffer. 
In the offScreenRender() function I exchange the child of the main camera 
 by the off screen rendering node containing only the RTT cameras and switch 
it back afterwards. This works great except that the shadows do not work 
correctly in the RTT camera. It seems that the light position is wrongly 
detected, which is done in the cull traversal as far as I could understand 
from looking at the code. How do I perform this properly in the 
offScreenRenderTraversal()  function?
Cheers,
Georg
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to