Re: [osg-users] osg-users Digest, Vol 32, Issue 33
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
Re: [osg-users] osg-users Digest, Vol 32, Issue 33
post your code. someone might help you out -Nick On Mon, Feb 15, 2010 at 5:29 PM, Julien Valentin julienvalenti...@gmail.com 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg-users Digest, Vol 32, Issue 33
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
Re: [osg-users] osg-users Digest, Vol 32, Issue 33
Also see this: http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/50502 J.P. Delport wrote: 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