Hi OSG-User,

I'm very new on osg and have the task to create a HUD which should overlay a 3D 
object from the actual scene.

I have a map with a flight object on it. This object is a 3D model, it can 
follow paths on the underlying map which can be set by the user. The map could 
contain buildings and trees and so on, so that it is possible that the model of 
the flight object could be behind another object. Conditioned through this 
circumstance the user could not see the flight object at all time. Now we'd 
like to at a 2D overlay to the scene with a fixed size, so that this overlay is 
always on top of all other objects (like a HUD).

To solve this issue, I had a look on overlayNode but it seems that this isn't 
the correct element to use or is it possible to view the object used by overlay 
node always on top of all other objects? It have to be in one line from camera 
to flight object.

My next idea is to calculate the position of the object on the screen by using 
the object position and camera position. Is this possible and useful?

I attached a picture to symbolise my problem. If there are further questions 
please feel free to aks.

Thanks

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




Attachments: 
http://forum.openscenegraph.org//files/skizze_123.jpg


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

Reply via email to