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 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