Re: setTextureEnable(false) function




That did the trick perfectly; thanks!

Donna L. Gresh, Ph.D.
IBM T.J. Watson Research Center
(914) 945-2472
http://www.research.ibm.com/people/g/donnagresh
gresh@xxxxxxxxxx




                                                                                
                                                 
                      Bill Hibbard                                              
                                                 
                      <billh@xxxxxxxxxx        To:       Donna L 
Gresh/Watson/IBM@IBMUS                                          
                      edu>                     cc:       
visad-list@xxxxxxxxxxxxx                                                
                                               Subject:  Re: 
setTextureEnable(false) function                                    
                      12/17/2002 05:14                                          
                                                 
                      PM                                                        
                                                 
                                                                                
                                                 




Hi Donna,

My guess is that you're using a DisplayImplJ2D (i.e., Java2D)
for the Irregular2DSet. Java2D is not so good at interpolating
colors, so the triangles are rendered as solid colors. The way
to get a smooth appearence is to use:

  new DisplayImplJ3D("display", new TwoDDisplayRendererJ3D())

instead of:

  new DisplayImplJ2D("display")

Good luck,
Bill

On Tue, 17 Dec 2002, Donna L Gresh wrote:

> I hope I'm just not missing something stupid... I did look in the
archives
> but didn't find the answer to this question.
>
> I have an Irregular2DSet and an Irregular3DSet. They have the same x and
y
> values, but in the 3D case I also have z to represent height. The
triangles
> connecting the vertices are the same in each case. I map another value to
> rgb color. In the case of the 3D display, the colors are smoothly
> interpolated (which is what I want) *whether or not* I do a
> "setTextureEnable(false)". In the case of the 2D display, the colors are
> "pixelated" (each triangle has a constant color), again, whether or not I
> do a "setTextureEnable(false)". Can anyone help me get the 2D display to
> look as smooth as the 3D display does?
>
> Here's a picture if that helps:
> (See attached file: surfaces.jpg)
> Thanks
> Donna
>
>
> Donna L. Gresh, Ph.D.
> IBM T.J. Watson Research Center
> (914) 945-2472
> http://www.research.ibm.com/people/g/donnagresh
> gresh@xxxxxxxxxx