NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: ISo surface ...with custom color

Try:

  display.getGraphicsModeControl().setTextureEnable(false);

Good luck,
Bill

On Mon, 23 Jun 2003, Rakesh Rathod wrote:

> hi bill,
>         Gourand shading is fine for me but i am not getting any kind of 
> shading. I used following code with yellow color...but it didn't produced 
> good visualiztion of a 3D surface with a single color.
>
> // create Constantmaps for speed and add its reference to display
>     ConstantMap[] altitudeCMap = {new ConstantMap(altitudeRed, Display.Red),
>     new ConstantMap(altitudeGreen, Display.Green),
>     new ConstantMap(altitudeBlue, Display.Blue),};
>
>     // Add reference to display
>     display.addReference( lati_alti_ref, altitudeCMap );
>
> thanks,
> Rakesh
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!


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