Hi JS and Jeremy,

On Tue, Jul 15, 2008 at 8:14 PM, Jeremy Moles <[EMAIL PROTECTED]> 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.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to