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

  • To: "'VisAd Mailing List'" <visad@xxxxxxxxxxxxxxxx>
  • Subject: RE: Problem with Display.ZAxis Using Different Colors for same Z
  • From: "Kenneth Evans, Jr." <evans@xxxxxxxxxxx>
  • Date: Tue, 27 Jun 2006 14:51:08 -0500
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@xxxxxxxxxxxxx] 
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

Attachment: RandomGaussian.2.gif
Description: GIF image

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