Re: [osg-users] [osgPPU] CubeMap reflection
Hi Vincent, take a look into the osgreflection example shipped with OSG. One of this examples shows the cubemap reflection implementation. You cannot achieve reflection with osgPPU, since it does not know anything about your cameras or other stuff. The cubemap exampel showed with osgPPU is just to show that you can also use CubeMap textures as input/output with osgPPU. Cheers, Art -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32393#32393 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] CubeMap reflection
Hi Art and Vincent, On Tue, Oct 5, 2010 at 2:18 PM, Art Tevs arti_t...@yahoo.de wrote: take a look into the osgreflection example shipped with OSG. One of this examples shows the cubemap reflection implementation. Just for clarification, the osgreflection examples use a multi-pass stencil buffer based approach for planar reflections, while the osgprerendercubemap uses a render texture based approach with a cube map for reflections. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] CubeMap reflection
Hi Art, I agree, I couldn't get it working. The only way I found was to let osgPPU process my computation until the normals and then use it as output texture on the geometry that has the reflection and refraction shader like one do in the example osgvertexprogram. Vincent Le 05/10/2010 15:18, Art Tevs a écrit : Hi Vincent, take a look into the osgreflection example shipped with OSG. One of this examples shows the cubemap reflection implementation. You cannot achieve reflection with osgPPU, since it does not know anything about your cameras or other stuff. The cubemap exampel showed with osgPPU is just to show that you can also use CubeMap textures as input/output with osgPPU. Cheers, Art -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32393#32393 ___ 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] [osgPPU] CubeMap reflection
Hi, your are right Robert. I got something working by having a look to osgvertexprogram (for reflection/refraction, I just converted the ARB shader into a glsl one) and some other shader examples that process normals. Thanks ! Vincent ... Thank you! Cheers, Vincent -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32401#32401 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPPU] CubeMap reflection
Hi, I'm not very experienced with shaders and I'm trying to write a reflection shader for the cubemap exemple. I tried to compute the normals and so on, but I don't get the result I'm expecting. Do have someone a shader (and the modified c++ source code) that is working in this demo ? Thanks a lot in advance, Vincent ... Thank you! Cheers, Vincent -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31958#31958 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org