Hello,

I've implemented a RTT example with osg and I my scene object is the 
cessna.osg. Without the RTT-Implementation I have around 4500 fps. But with the 
RTT I have only 380 fps. My Texture is 512 x 512. What is the Problem?

I have got a GeForce 470 and a intel processor i7 820. I guess the hardware is 
ok. My Implementation is:

osg::Vec3 eye(40,-40,40);
osg::Vec3 point(0,0,0);

c->addChild(in);
c->setReferenceFrame(osg::Transform::ABSOLUTE_RF);

c->setProjectionMatrixAsPerspective(30.0,1.0,0.1,100.0);
c->setViewMatrixAsLookAt(eye,point,osg::Vec3(0,0,1));
c->setClearColor(osg::Vec4(0.4,0.0,0.0,0.0));
c->setViewport(0,0,512,512);
c->setClearMask( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
c->setRenderOrder(osg::Camera::PRE_RENDER, 0);
c->setRenderTargetImplementation( osg::Camera::FRAME_BUFFER_OBJECT );
c->attach(osg::Camera::COLOR_BUFFER, img, 0, 0);

Is my implementation the problem?

In OpenGL I can use glCopyTexImage2D(...). There are a Wrapper in OSG for this 
functionality?

Cheers,

Martin
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to