[osg-users] osgWidget now checked into OSG SVN trunk

Robert Osfield robert.osfield at gmail.com
Tue Jul 15 12:19:44 PDT 2008


Hi JS and Jeremy,

On Tue, Jul 15, 2008 at 8:14 PM, Jeremy Moles <jeremy at emperorlinux.com> wrote:
> >From my experience, if you have a 1024x768 orthographic
> "camera-in-camera" setup for your HUD, and then you make the window
> fullscreen, the orthographic camera still has a resolution of 1024x768,
> even though your new "dimensions" are 1280x1024. With a UI, you really
> need to have constnt awareness of your absolute pixel width and height,
> even if your code doesn't directly use it.
>
> It's all up to the ResizeHandler though; if you wanted to ALWAYS work in
> some coordinate space like 1024x768, it should be possible just by using
> (or perhaps not even using) a different ResizeHandler. The one I created
> in ViewerEventHandler, however, tries to make sure the WindowManager
> object always knows the exact pixel dimensions of the View.

Camera in a Viewer will get resized automatically, by Camera's in the
scene graph won't be.  An event callback on such cameras might be able
to catch resizes.

Robert.



More information about the osg-users mailing list