Hello Antoine,

> I would like to be able to display a triad (or call it a frame - that is the 
> 3 x, y and z orthogonal vectors) always at the same location in my viewer 
> (that is in a corner) in order to always be able to get a sense of the 
> orientation of my origin. This is very widespread in maya, max, blender and 
> such editing softs.
>
> I have no idea how to do that though and could not find it over the internet 
> or in the examples. Anyone can point me to something that could be helpful?

Weird that you haven't found anything, there was a discussion about
this on the mailing list / forum a little while ago (perhaps about a
year ago).

I can tell you how we did it: We have a HUD camera which gives the
location of a mini viewport in the top right corner of the main view,
and that camera has the triad model under it, and it has a cull
callback that takes the orientation of the main camera and rotates to
follow it. In one case we wanted a compass instead of a triad and that
was a bit different, we needed to project the orientation so it was
always on the same plane so the compass would just rotate according to
the rotation of the main camera around the Z axis, but the same class
does both types of viewports.

Hope this helps,

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    [email protected]
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to