Hello,
I try to render in a texture with osg. And it works. I thougth that is
no problem. I have a NVIDIA GeForce 8800 GT. Now I try to start my
program on another computer and it doesn't work. This computer use a ATI
FireGL V5600 graphic card. It seems that the problem is a driver
problem. Have somebody experience about this problem?
*CheckFramebufferStatusEXT()* returns
*FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB*
Maybe help a driver update? But what can I do when the update doesn't
help? Or there are another way to render in a texture without
frame-buffer-object?
Now my code part:
// pre render camera
::osg::ref_ptr< ::osg::Camera> camera = new ::osg::Camera;
// setup camera
camera->addChild( texcoordObject );
camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
camera->setClearColor( ::osg::Vec4(1,1,1,1) );
camera->setProjectionMatrixAsOrtho2D(0.0,1.0,0.0,1.0);
camera->setClearMask( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
camera->setViewport(0,0,width,height);
camera->setRenderOrder(osg::Camera::PRE_RENDER, 0);
camera->setRenderTargetImplementation( osg::Camera::FRAME_BUFFER_OBJECT );
camera->attach(osg::Camera::COLOR_BUFFER, texture->getImage(), 0, 0);
// add camera to root node
_rtt->addChild(camera.get());
Cheers, Martin
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org