Home »
Public Forums »
archive »
Re: EYE question in the IDLgrView
Re: EYE question in the IDLgrView [message #66015] |
Tue, 07 April 2009 11:50 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
llo wrote:
> Hi group,
>
> I try to do a zoom in, zoom out in an IDLgrView that draws some
> graphic objects.
> I tried to do the zoom using the EYE property. If I want ZOOM In I
> decrease the position of the EYE and if I want ZOOM out I increase the
> distance between the eye and the center of the viewplane rectangle.
>
> Why nothing seemed to happen ? I mean, I've a PERSPECTIVE projection
> and it should works but no results...
>
> The ZNear and Zfar are the default values.
> Does anybody knows why I don't obtain a good zoom action? There is an
> another way to do that?
Moving the eye location doesn't change the zoom much. What you need to
do is change the viewplane_rect. Reducing the viewplane_rect will "zoom
in" and enlarging it will "zoom out". I recommend checking out this
page in general:
http://www.acoustics.washington.edu/~towler/RHTgrCamera.html
and you can look at the zoom method of camera__define found here:
http://www.acoustics.washington.edu/~towler/programs/camera_ _define.zip
I recommend using my camera code for all of your object graphics
composition needs so you may want to consider that. Start with the
camera__define package as it is far simpler and doesn't require any DLMs.
You can also simply use the ZoomIn and ZoomOut methods of IDLgrWindow.
I haven't used them myself and reading the docs you still manipulate the
viewplane_rect.
-Rick
|
|
|
Current Time: Fri Oct 10 07:20:59 PDT 2025
Total time taken to generate the page: 1.60008 seconds