Hi,

I'm working on a zoom/magnifying lens feature, that I am implementing using 
RTT. I'm setting up a slave camera to the main view and rendering to a texture, 
which I place on a quad on the HUD. I've got a few questions:

1. Whats the best way to move the slave camera to magnify different areas? 
Moving the slave RTT Camera viewport? Setting a matrix offset for the slave 
with respect to the main camera? Something else?

2. If I want to show multiple zoom levels of magnification at the same time (on 
adjacent quads on the HUD), do I need to render to texture multiple times, or 
can I somehow index the higher zoom quads into the texture so that a smaller 
chunk of the texture gets put on the same-size quad (effectively blowing it up?)

3. When my HUD resizes (due to a window resize), the size/aspect ratio of the 
quads gets thrown off. How could I handle that to keep it the same? (use a 
MatrixTransform to scale the quad to the right aspect ratio? Resize the quad?)

Cheers,
Nick

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59219#59219





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

Reply via email to