HI Sonya,

On 18 July 2014 07:51, Sonya Blade <[email protected]> wrote:

> I figured out that part, there was a scale difference with main model if I
> scale it up to
> 25 times in each direction then model is visible. But still it is vague
> how we can setup the
> hud camera viewing direction or up vector, I'll appreciate your guidance
> on that.
>

The Camera's View matrix defines the up vector.  Have a look at online
documentation on OpenGL modelview matrices/gluLookAt for more info - the
OSG just sets and passes on the modelview matrix so all these OpenGL are
relevant.



>
> Along with that I'd like to know whether it's possible to assign the
> manipulator to the
> hud camera if so how can I do it, but preferably I want only the rotation
> and zooming
> and not the paning ?
>

If you HUD is managed via a View then you'll be able to assign a
CameraManipulator to the View to control it.  However, all of the osgGA
manupulators are designed around a perspective view rather than an
orthographic and will not be directly usable for an orthographic view that
has very specific needs and constraints.  I would recommend either writing
your own CameraManipiulator for the task or to not use a CameraManipulator
and just assign the HUD Camera's View matrix directly in your own code.

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

Reply via email to