Hi Robert,

Robert Osfield schrieb:
Now for the real question:
2. I have the following situation: I want to look at a scene at the same time from different positions (cameras). For now, I defined two sceneviews with two independent cameras. The scene data of the sceneviews are set to the same node, which is the scene's root node. Is there any other possibility to use two different cameras but with only one sceneview?
See osgmulitplecameras for an example of using CameraNode to add in extra viewports/cameras.
I've take a look at this example and added an extra camera with an extra viewport. Now my problem is (similar to the example below) that the first camera is correct, but the second camera is not. I build an object which has the same position like the camera. This should be used like a first person's view. Now, when I move only the object, the second camera is moving correctly. But when I move the scene, the second camera stays at its position and the scene is moving away.

What am I doing wrong? Do I forget a matrix, which gives me the translation of the scene? Where do I get that matrix, if there's such a matrix?

I have already tried to use two cameras. In this case, I had two camera positions and the lookat vectors. When I set the positions and the lookat vectors to the first camera (the camera of the sceneview), everthing is correct. But when I set it to the other camera (an additional camera which is in the graph), the result is not correct. It seems like any matrices are changing the position and the orientation of the camera, although I set the camera matrix with makeLookAt(...). How can I prevent this?
I can't comment on what might be wrong here, it your app.
bye
Oliver
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to