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


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