|
From: Nelson S. <nel...@gm...> - 2011-05-06 12:05:02
|
Hi,
We would like to add a function to get the camera's current orientation
and position and would like to know where this should be placed ?
Should we use the Runtime API's getViewpoint() but update it's
orientation and position or should we place this somewhere else ?
Since during the user's interaction the viewpoint is kept intact we need
a way to get a viewpoint that reflects the current position and orientation.
We have this working now by converting the inverse of the view matrix to
quaternions thus getting the rotation axis.
To get the position we just apply the inverse of the view matrix to
point (0,0,0).
Thanks in advance.
Nelson Silva
|