Re: [osg-users] Render To Texture problem in a Reflection algorithm

2007-12-02 Thread Himar Carmona
Hi, do both graphics cards support Frame_Buffer_object ? The problem could be in the renderfallback (i.e. PIXEL_BUFFER_RTT) if they do not support it? Try the different RTT methods if these seems to be the problem. Also , i think you maust set the viewport for FBO to work (i suppose it is set i

[osg-users] Render To Texture problem in a Reflection algorithm

2007-12-02 Thread zhangguilian
Hi, In an algorithm of reflection I used Render To Texture, part of the code is: Texture2D* reflectionTex=new Texture2D;//rtt texture reflectionTex->setTextureSize(512, 512); reflectionTex->setInternalFormat(GL_RGBA); reflectionTex->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINE