RE: Problem with Display.ZAxis Using Different Colors for same Z

  • To: "Kenneth Evans, Jr." <evans@xxxxxxxxxxx>
  • Subject: RE: Problem with Display.ZAxis Using Different Colors for same Z
  • From: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Date: Wed, 28 Jun 2006 17:52:22 -0500 (CDT)
Thanks Ken. This says that the clamping limits curved_size
to be either 2 or 3 with your data set. And you may only
see a subtle difference between these two. I cannot recall
why we clamped it to be at least 2. You might try modifying
this clamping statement to allow curved_size to be 1, and
see what happens. I haven't worked much with VisAD the past
couple years, so if this continues to be a problem we may
have to wait for Tom Rink's return (safe trip, Tom).

Cheers,
Bill

On Wed, 28 Jun 2006, Kenneth Evans, Jr. wrote:

> Bill:
>
> gmc.setCurvedSize(size); size=0   --> From my code
> <no output from buildCurvedTexture>
>
> gmc.setCurvedSize(size); size=1
> buildCurvedTexture(Before): curved_size=1 size=100
> buildCurvedTexture(After): curved_size=2 size=100
> buildCurvedTexture(Before): curved_size=1 size=100
> buildCurvedTexture(After): curved_size=2 size=100
>
> gmc.setCurvedSize(size); size=2
> buildCurvedTexture(Before): curved_size=2 size=100
> buildCurvedTexture(After): curved_size=2 size=100
> buildCurvedTexture(Before): curved_size=2 size=100
> buildCurvedTexture(After): curved_size=2 size=100
>
> gmc.setCurvedSize(size); size=3
> buildCurvedTexture(Before): curved_size=3 size=100
> buildCurvedTexture(After): curved_size=3 size=100
> buildCurvedTexture(Before): curved_size=3 size=100
> buildCurvedTexture(After): curved_size=3 size=100
>
> gmc.setCurvedSize(size); size=100
> buildCurvedTexture(Before): curved_size=100 size=100
> buildCurvedTexture(After): curved_size=3 size=100
> buildCurvedTexture(Before): curved_size=100 size=100
> buildCurvedTexture(After): curved_size=3 size=100
>
> BTW: As of today I can build it, thanks to Tom Whittaker.  I was using
> visad.jar.  I am using a different classpath now.  Is there a way to find
> which version of VisAD I am using at any given time.  I looked but didn't
> see anything.
>
>       -Ken
>
> -----Original Message-----
> ...
> If you are energetic, you might put some print statements
> into the buildCurvedTexture() method at the end of the
> visad/ShadowFunctionOrSetType.java file, to print the
> value of curved_size before and after the clamping statement:
>
>   curved_size = Math.max(2, Math.min(curved_size, size / 32));
>
> You might also print the value of size, which is the size
> of the smaller texture patches.
> ...
>
>

==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================