Re: VisAD on Panoram

> Might be a problem in J3D....
> I searched Sun's JDC and found the following posted on 19 Jun 00:
> Proposed API Change for Default Physical Screen Size
> In order to fix a problem when running Java 3D on a monitor with a 
> non-standard
> aspect ratio (e.g., portrait mode or HDTV resolution), we propose to
> modify the default values of physical screen width and height, such that the
> default physical aspect ratio is the same as the pixel aspect ratio.
> . . .

Excellent, James.  You hit the nail on the head.  Thank you.

This led me to add a new method to DisplayImplJ3D:

  public void setScreenAspect(double height, double width);

I don't have a non-standard monitor for testing, but this
did change aspect ratio on my standard montior.  For a
double wide screen, try:

  display.setScreenAspect(0.27, 0.70);

and for a triple width screen, try:

  display.setScreenAspect(0.27, 1.05);

Unfortunately, this solution for aspect on wide screens
requires applications to be modified.  But that should change
when Sun makes the Java3D changes described in the web page
James found.

Please let me know if this does not solve the aspect problem
on wide screens.

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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