Hello Stephane,
Stephane Routelous wrote:
> Hi,
>
> any idea/pointers how I can implement a window zoom ?
> I'm using the SimpleSceneManager with the trackball navigator.
hm, I'm not sure what exactly you mean by "window zoom", could you give
some more details, please?
Zooming to some rectangular part of the what is currently shown, can be
done by modifying the camera frustum.
An overlay, showing a zoomed in view could be done with a second
viewport that renders the scene with a different camera frustum. For
doing the same thing in pixel space you could render your scene to an
FBO, draw the whole scene as texture on a viewport filling quad and a
smaller part on another quad with appropriately tweaked texture
coordinates, so that the relevant part of the "scene texture" gets
stretched.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users