Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: changing the default zoom properties

Hi Vladimir,

> Does somebody know a easy way to change the default zoom properties in
> order to keep the axes
> on screen when zooming?

I'm not completely sure what you are refering to, but suspect
it is graphics that disappear beyond the fore and aft clipping
planes when you zoom in with SHIFT/left mouse button.  This is
hard to do much about.  The fore and aft clipping planes
define the dynamic range for Java3D's Z-buffer values, and
moving them way out results in image artifacts due to lack of
Z-buffer resolution.  Also, when you zoom in some graphics may
end up behind the viewer's eye which is tough to correct in
any case.

One approach is to provide your own zoom control that adjusts
the ProjectionControl matrix to combine translation with zoom
to keep objects in your scene from getting to close to (or
behind) the viewer.  You can experiment with this in VisAD by
manually translating in X or Y (CTRL/left mouse button), then
rotating that translation back into the Z away from you, then
zooming.

You might be able to get some wisdom on this subject from
java3d-interest@xxxxxxxxxxxxx

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690