Hi,

I received a weird visual results which I don't know how to handle.

I'm trying to add a cage/cockpit where the camera is placed in to scene,
the camera renders to a texture and a HUD camera display the view with some
distortions.

The cage renders fine in the RTT, but when the camera passes origin, it is
like an orthographic slice of the cage is displayed above the HUD camera.

The code where I add the cage look like this:

[code]
osg::MatrixTransform* aTransform( new osg::MatrixTransform() );
osg::ref_ptr<ACallback> aCB = new ACallback(  );
osg::ref_ptr<osg::Node> aCaget = osgDB::readNodeFile( "myObject.osg" );
aTransform->addUpdateCallback( aCB );
aTransform->addChild( aCage );
scene_root->addChild( aTransform );
[/code]

What do I have to do, to remove the orthographic projection?

Kind regards
Patrik
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to