Hi Ant,

I can't guess exactly what you've done wrong, but when doing this type
of HUD style work it's important to make sure that the Camera's view
and projection matrices are set appriately as well as any transforms
in the scene graph so that the geometry coords you set up in end up in
the correct positions.

The osghud and osgmovie examples are probably good places to start
when looking how to do this.

Robert.


On Fri, May 28, 2010 at 1:35 PM, Ant Kennedy <[email protected]> wrote:
> Hi All,
>
> I was hoping someone would be able to help with a slight issue I have been 
> having.
>
> I currently have a scene which is loosely based on osgMovie. essentially I 
> have my geode which is centered in the screen but I would like to scale it up 
> keeping the same aspect ratio. I have archived this by using 
> setProjectionMatrixAsOrtho2d but when I call this my geode is the correct 
> size but the geode is not displayed in the centre of the viewport.
>
> Instead the centre of the geode now appears to be at 0,0 of the viewport i.e. 
> bottom left hand corner and only 1/4 of the geode is displayed. I have tried 
> translating the geode but this has no effect. If anybody has any ideas they'd 
> be much appreciated
>
>
> Cheers,
> Ant[code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=28323#28323
>
>
>
>
>
> _______________________________________________
> 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