Re: [osg-users] [osgPPU] FIX: osgPPU rendering not working in the first frame

2011-11-18 Thread Alexander Irion
Hello Art, glPushAttrib / glPopAttrib works as well, but it's not available in GLES and I also use osgPPU with GLES. However in GLES there are no 3D textures, only 2D and cube maps. Regards, --Alex -- Read this topic online here:

Re: [osg-users] [osgPPU] FIX: osgPPU rendering not working in the first frame

2011-11-18 Thread Art Tevs
Hi Alex, ok, this is of course pretty bad. Actually, I think the correct way would be to apply the texture to the osg::State within the FBO::apply(). This would ensure that the state is tracked correctly. Of course, unfortunately this requires a patch to the main osg core. In general, I

Re: [osg-users] [osgPPU] FIX: osgPPU rendering not working in the first frame

2011-11-17 Thread Art Tevs
Hi Alex, hmm, ok, it seems to be a solution, however I am not sure if this is a general one. I mean, what if for example the input texture is not 2D and the output texture is also not 2D. Then fbo will still overwrite current binding. I would propose to try following solution: