Nope. I meant glFramebufferTexture(..). And no, this particular function is not called there. Go check this. glFramebufferTexture1D(..), glFramebufferTexture2D(..), glFramebufferTexture3D(..), glFramebufferTextureLayer(..) are not the same thing...
Wojtek Lewandowski ----- Original Message ----- From: Tim Moore To: OpenSceneGraph Users Sent: Wednesday, March 10, 2010 2:05 PM Subject: Re: [osg-users] problems about layer rendering On Wed, Mar 10, 2010 at 12:21 PM, Wojciech Lewandowski <lewandow...@ai.com.pl> wrote: this will set up multiple render targets with 3 independent color buffers. However, I am not sure if this will propely work with gl_Layer produced in Geometry shader. These OpenGL examples I saw usually set up layered framebuffer rendering with one glFramebufferTexture call. For example see this link (its sample code to render 6 faces of cubemap simultaneously) http://pastie.org/796448: However, this brings another problem: glFramebufferTexture functinality is not used by OSG yet. glFramebufferTexture calls are used in FrameBufferObject.cpp to attach a "FrameBufferAttachment." Are you thinking of another use for glFramebufferTexture? Tim ------------------------------------------------------------------------------ _______________________________________________ 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