Hi,

I'm trying to write something like a flightsimulator for simulating a sensor. 
For this I have some world data for my scene. 

Now I'm trying to create a camera. But the camera doesen't look to where I want 
it to look at. I get the following values

- the position in lat[deg], lon[deg] and height[meter]
- the orientation in pitch, roll and yawn in [rad]
- the field of view in [rad] splittedt in fov_x_begin, fov_x_end etc
- the distance sensing in [meter]

from a server. Position and orientation are changing constantly, but first of 
all I would be happy if I get the right view with some default values.

I tried it with setViewMatrix() and setHomePosition() but nothing happens. 
Maybe I used it wrong but maybe someone can tell me how I have to realize it. 

Im using osg 2.8.1 with vc8. The camera coordinate have to be with positive 
z-Axis as the camera view, +y-Axis up and +x-axis to the left.


Thank you!

Cheers,
Diana

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





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

Reply via email to