Hm. Yet another way to do this, without rewriting your entire camera
management code, would be to simply set the view matrix on one camera to
be the same as the view matrix from the camera managed by your camera
manipulator. You'd do this in your main loop, after the event traversal,
so in a camera update callback, for example.
-Paul
David Glenn wrote:
Greetings All!
This I hope will be more straight forward and easier to answer than the first
question I asked.
BTW: Thanks!
Basically I have a window with two overlapping views. Both have there own tree.
one has some terrain on it and on top of that I have a view that has a tree
with all of the objects (plains, trains, etc that move around) the two views,
since they both appear as like one scene, have a camera that are at the same
spot in space and when I move the cameras around I want them to be able to move
together in sync like they where sharing the same camera manipulator.
If there where any examples if this in sample code, I must have missed it!
Can someone give me any guidance to do this?
...
Thank you!
Cheers,
D Glenn
------------------------
D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your
Desk!
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24313#24313
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org