Forgot to mention examples to look at:

 osgprerender for RTT cameras,

 osgreflect for stencil buffer

 osgpick for tracking mouse movements.

On 6/26/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
On 6/26/07, 石头 <[EMAIL PROTECTED]> wrote:
>    I am sorry I did't explained clearly which type of  the  magnifying glass
> I need to realize.
>
>    Like a telescope, and the circle area(the cursor is the center) of the
> scene is magnifying when My mouse move on the screen.

OK, that's a bit clearer.

There are two basic approach you can take:

  1)  Create a Render to Texture (RTT) Camera to capture the zoomed in view
       and than a textured polygon to render this over the main view.

  2) Use a second Camera for the zoom in view, but use a stencil
buffer to create
      the circular region so that the zoomed in view doesn't
obliterate the background
      view.

Robert.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to