Hello Lukas,
On 09/08/2011 07:58 AM, Lukas David Jacobs wrote:
> I recently got another problem: I got an input device, which gives me it's
> position in Space (just 3 values, standard opengl coordinates) and a
> quaternion, which represents it's orientation. The problem is, that I need
> the orientation as a vector, so I can draw a line in OpenSG using the data
> from the device. I do not really have a (good) idea what to do here.
ok, your device gives you the origin and rotation of a coordinate system
and you (presumably) want to visualize one of the axis' of this
coordinate system. Build a Geometry that contains a line along the axis
you want to visualize (for x axis you'd use points (0,0,0) (1,0,0)) and
put it under a Transform. Update that Transform's matrix with the data
from the device.
Cheers,
Carsten
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users