Problem with Display.ZAxis Using Different Colors for same Z

Kenneth Evans, Jr. evans at aps.anl.gov
Tue Jun 27 13:51:08 MDT 2006


Bill,

     That worked.  Sort of.  The plot (attached) now looks dirty and it
*does* take a (really) long time to render.

     I see from the tutorial that "By disabling texture mapping we make the
polygons have interpolated colors instead of textures. This removes the
tesselated [sic] texture, like it was seen in the previous examples, and
causes the smoother appearance."  However, I seem to be getting shading
rather than interpolation.

     Thanks,

	-Ken

-----Original Message-----
From: Bill Hibbard [mailto:billh at ssec.wisc.edu] 
Sent: Monday, June 26, 2006 4:49 PM
To: Kenneth Evans, Jr.
Cc: VisAd Mailing List
Subject: Re: Problem with Display.ZAxis Using Different Colors for same Z

Hi Ken,

The mismatch of Z level and color is because the default
is to enable texture mapping, over a surface that is
sub-sampled from the actual data (tis greatly improves
rendering speed for large data). You can disable texture
mapping with:

  GraphicsModeControl mode = display.getGraphicsModeControl();
  mode.setTextureEnable(false);

Good luck,
Bill

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RandomGaussian.2.gif
Type: image/gif
Size: 33523 bytes
Desc: not available
Url : http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20060627/fd4f43d1/attachment.gif 


More information about the visad mailing list