Re: [osg-users] [osgPPU] osgPPU cube map sample
Hi Sebastian, no, I can not confirm that. On my machines the yellow cube-map part is also showed. Which osg version do you have? Which osgPPU version do you have? I see on you screenshot, that some of the faces not rendered at all. This shouldn't be either the case. Maybe you somehow enabled face culling there?! Unit texture?? Can you point me on the source line you are talking about. All I can see is the parameter unit, which defines the texture unit (so an integer) of the texture. The source code was originaly a code from osg cubemap reflection example and was just modified to show output of the osgPPU. Hence it might be little bit confusing with parameters there. Cheers, Art -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24112#24112 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] osgPPU cube map sample
Hi again art It seems that you maybe have a bug in the cube sample when I launch the app, the yellow color (cube nb 5) is never displayed on the central sphere. can you confirm ? Another question I did have a look at your code and I do not understant what is the cube texture unit for ? Does it contains the 6 face cube dynamic textures, but why did you code it if you do not use it ? Thank you! Cheers, Sebastien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23797#23797 Attachments: http://forum.openscenegraph.org//files/sans_titre_158.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] osgPPU cube map sample
Hi, Thank you for the explanation Sebastien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23712#23712 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPPU] osgPPU cube map sample
Hi, I would like to know what is the aim of the cube map sample. When I launch this sample, I've got some satellite objects that are moving arround a bigger sphere, this sphere seems to be mapped with an envmap made of 6 colors (red, green etc...). But the envmap is not dynamic (ie the sattelite objects do not reflect in the bigger sphere). Is it normal behavior ? Thank you! Cheers, Sebastien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23685#23685 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] osgPPU cube map sample
Hi, Well I had a look in the code shader, you set gl_fragColor with a color depending on the face index osgppu_CubeMapFace. The corresponding update code is in void UnitInOut::init() method. That's why the bigger sphere holds colors. But the samplerCube input is unused in this sample, why ? Is this texture holds the reflection of the satellite objects ? Sebastien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23686#23686 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPPU] osgPPU cube map sample
Hi Sebastian, the purpose of the cube map demo was not to show the reflection, but to show that with osgPPU one can also use CubeMaps to render the results to. So using this example one can build its own reflection effect by processing relfected data through osgPPU for example. Cheers, Art -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23694#23694 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org