That did the trick perfectly; thanks!
Donna L. Gresh, Ph.D.
IBM T.J. Watson Research Center
<billh@xxxxxxxxx. To: Donna L
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())
On Tue, 17 Dec 2002, Donna L Gresh wrote:
> I hope I'm just not missing something stupid... I did look in the
> but didn't find the answer to this question.
> I have an Irregular2DSet and an Irregular3DSet. They have the same x and
> values, but in the 3D case I also have z to represent height. The
> 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)
> Donna L. Gresh, Ph.D.
> IBM T.J. Watson Research Center
> (914) 945-2472