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

Re: The random colour changing bug

Hi Bill and others,

  Thanks for having a look at this.

  I tried changing the BoundingSphere to MAX_VALUE, POSITIVE_INFINITY,
-1.0, 0.0 and 1.0, all of which produced no noticeable difference.

  We have also now tested on:
- Windows 2000, Matrix G450, Java 1.4.2_05, Java3D 1.3.1 OpenGL
- RedHat Enterprise WS4, ATI Radeon X600, Java 1.4.2_09, Java3D 1.3.1
  which also produce the fault.

Our previous testing was all with Nvidia cards, all of which had the fault.

  It is good to see it happening with Nvidia, ATI and Matrox OpenGL
implementations on both windows and linux.

  This problem is affecting our production of Tropical Cyclone
warning graphics, which can be issued at any time now that we are in
the cyclone season here.  Any help fixing it is appreciated.

  I will look into what is involved in removing the scalar maps,
I expect it won't be fun :)

thanks,

Andrew.


Bill Hibbard wrote:
Hi Andrew,

I found one little bit of dumbness in the AmbientLight:
the BoundingSphere is created with a radius of 2000000.0
(looks like a throwback to McIDAS and Vis5D). You might
experiment with changing:

  BoundingSphere bounds
      new BoundingSphere(new Point3d(0.0,0.0,0.0), 2000000.0);

to:

  BoundingSphere bounds
      new BoundingSphere(new Point3d(0.0,0.0,0.0), Double.MAX_VALUE);

or:

  BoundingSphere bounds
      new BoundingSphere(new Point3d(0.0,0.0,0.0), Double.POSITIVE_INFINITY);

in the createSceneGraph() method of
visad/java3d/DefaultDisplayRendererJ3D.java.

Please let us know if either change solves your problem.
I doubt either will fix the problem because your test
program should be well within the 2000000.0 radius of the
current BoundingSphere, but nothing about this problem
makes sense so its worth a try.

Cheers,
Bill


 
 
  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