[osg-users] transparent objects in front of video in camera node with POST RENDER
Hello, I implemented the example from the book OSG3 Cookbook where is described how to play a Video in background of a 3D Scene. There they used POST_RENDER to achieve the behind effekt. Is it so possible to use BLEND in this setup, so that a 3D Object is semitransparent to the Video ? Cheers, David ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] transparent objects in front of video in camera node with POST RENDER
Hi David, If you want to blend the 3D objects ontop of a background image/video then the best way would be to change the background Camera RenderOrder to PRE_RENDER and disable the clear of the colour buffer for the main Camera so that is doesn't overwrite the background. Robert. On 7 January 2013 13:37, DavidHornung horn...@googlemail.com wrote: Hello, I implemented the example from the book OSG3 Cookbook where is described how to play a Video in background of a 3D Scene. There they used POST_RENDER to achieve the behind effekt. Is it so possible to use BLEND in this setup, so that a 3D Object is semitransparent to the Video ? Cheers, David ___ 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] transparent objects in front of video in camera node with POST RENDER
Hi, thank you for the tip, but now I have the Effekt that my transparent object is first transparent to the video and then gets its full color, like the color gets added each time David. Hi David, If you want to blend the 3D objects ontop of a background image/video then the best way would be to change the background Camera RenderOrder to PRE_RENDER and disable the clear of the colour buffer for the main Camera so that is doesn't overwrite the background. Robert. On 7 January 2013 13:37, DavidHornung horn...@googlemail.com wrote: Hello, I implemented the example from the book OSG3 Cookbook where is described how to play a Video in background of a 3D Scene. There they used POST_RENDER to achieve the behind effekt. Is it so possible to use BLEND in this setup, so that a 3D Object is semitransparent to the Video ? Cheers, David ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org