Hi, everyone:

I’m a beginner of OSG, and a problem about “Camera” puzzled me a lot,
there’re a lot of classes about camera which makes confused.

Those are Producer::Camera & Producer::CameraGroup(which I think is a group
of cameras), osgProducer::OsgCameraGroup,osg::CameraNode

And then I read the article “Of Cameras And Scenes” of Don Burns from: 

 <http://donburns.net/OSG/Articles/CamerasAndScenes/CamerasAndScenes.html>
http://donburns.net/OSG/Articles/CamerasAndScenes/CamerasAndScenes.html

don said camera should be independent with SceneGraph, which make sense to
me. And there’s also what puzzles me, what’s the relation between
osg::CameraNode and Producer::Camera, and what’s the relation between
osgProducer::OsgCameraGroup and Producer::CameraGroup.

For example, if I want to get the eye position, which way should I use?

SceneView->getCamera()->getViewMatrixAsLookAt()

Or from the Producer::camera::getViewMatrix()

If it’s the later way, how can I get the Producer::camera object from my
SceneView object?

If I want to get the near far clip plane, should I use
“SceneView->getCamera()->getProjectionMatrixAsPerspective()”?

If so, then camera seems to be a node of the scenegraph.

If not, how can I get the eye position and near far clip plane?

 

I really need help to get me out of this bitter puzzled situation.

Thanks in advance.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to