standard matrix with aspect ratios

Hi-

I have a 3D display with a particular aspect setting.  I
want to create a matrix that would correspond to the
overhead view (z pos on top), with the aspect ratio applied.
I can't just call getMatrix() because the box might be
rotated.

I looked at the code down in ProjectionControlJ3D which does
this when you use setAspect, but I'd like to avoid the
java3D specific references.

I'm wondering if I can get the same effect with some combination
of multiply_matrix.  I'm thinking that the default box would be:

make_matrix(0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

but I'm not sure how to apply the aspect ratio to this.

Any help would be appreciated.

Thanks,

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
        "Time makes everyone interesting, even YOU!"
*************************************************************



  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: