|
Hi Robert, Robert Osfield schrieb: 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.Now for the real question:See osgmulitplecameras for an example of using CameraNode to add in extra viewports/cameras. 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? byeI 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. Oliver |
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
