[osg-users] about compass

Robert Osfield robert.osfield at gmail.com
Tue Mar 11 02:30:48 PDT 2008


On Tue, Mar 11, 2008 at 7:05 AM, IceSharK <iceshark at gmail.com> wrote:
> Hi~
>
> scene have a model and a compass which using camere hud.
>
> how to rotate compass follow model's rotation making by user input ?

You need to use extract the rotation part of the the master camera's
view matrix to give you the rotation, then use this when computing the
rotation matrix for your compass model.

Robert.


More information about the osg-users mailing list