Re: [osg-users] [osgPPU] osgPPU cube map sample

2010-02-13 Thread Art Tevs
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

Re: [osg-users] [osgPPU] osgPPU cube map sample

2010-02-08 Thread Sebastien Nerig
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

Re: [osg-users] [osgPPU] osgPPU cube map sample

2010-02-05 Thread Sebastien Nerig
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

[osg-users] [osgPPU] osgPPU cube map sample

2010-02-04 Thread Sebastien Nerig
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

Re: [osg-users] [osgPPU] osgPPU cube map sample

2010-02-04 Thread Sebastien Nerig
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

Re: [osg-users] [osgPPU] osgPPU cube map sample

2010-02-04 Thread Art Tevs
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