Hi,

use this as a starting point and look at the thread referenced there as well.

http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/49423

jp

Julien Valentin wrote:
Hello,
I would like to make a prerender camera that loop over the rendering of its son's geometries until an event happens and then display the result as a texture with the main camera..

mainloop(){
      while(condition){
           tex=prerender_camera.draw() //render to texture using fbo
     }
     maincamera.draw()  //render the main scene using texture tex
}

(The condition depends on the post draw opengl state : an occlusion query.. )
I have try a few tricks without success
Can you help me for this?.


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

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to