We achieved something like that by adding a view/camera to our
compositeviewer, and by having the 'target' node part of the graph of that
camera's scene. Then at each frame we calculate how we need to move the
camera (view matrix) based on the location of the object.

--
Alexandre Vaillancourt


2013/8/1 Robert Osfield <[email protected]>

> Hi Hen? Drik?  Could you sign with how you like to be addressed so we
> know how to address you thanks.
>
> On 19 July 2013 08:27, Hen Drik <[email protected]> wrote:
> > 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 attached a picture to symbolise my problem. If there are further
> questions please feel free to aks.
>
> The easist way to do this would be to put an AutoTransform, that will
> contain the HUD suibgraph, alongside the objects you are wanting to
> following - the key is putting them below any transforms that are used
> to move the objects around.  By setting the RenderBin of the subgraph
> to draw after the main scene and disable the depth test you'll be able
> to make sure it gets drawn on top of the 3D objects.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to