Hi,

I think I got it now.

I combine both hud and callback approach.

I created a slave camera similar to the one in the example, then add a update 
callback to it.
In the callback I update the view matrix of the slave camera relate to the 
master camera's view matrix. so the views are basically the same between the 
slave and master camera, but for slave camera it was translated so it always 
look at my 3D axis object's center (which is (0, 0, 0) in my case to make it 
simple).

It seems work fine now, but I would happy to know if there are other ways to do 
this.


Thank you!

Cheers,
Jimmy

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





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

Reply via email to