Hi,

I'm using OSG ActiveX example and I have the following problem. 

While using OSG::TrackBallManipulator and moving forward with Camera it stucks 
in the midle of the scene.When I continue to move forward it still stuck.

It happens only in ActiveX and works fine in any other OSG application. 

It looks like I have problem with ViewPort or Projection:

This is the code from ActiveX example.


Code:

osg::ref_ptr<osg::Camera> camera = new osg::Camera;
        camera->setGraphicsContext(_gc);
        camera->setViewport( new osg::Viewport(_traits->x, _traits->y, 
_traits->width, _traits->height) );
        camera->setProjectionMatrixAsPerspective( 30.0f, 
(double)_traits->width/(double)_traits->height, 1.0f, 10000.0f );
        camera->setClearMask( GL_DEPTH_BUFFER_BIT );




Could you please help?

Thank you!

Cheers,
Danny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27338#27338





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

Reply via email to