Re: weirdness when mapping to RGB

  • To: Tennessee James Leeuwenburg <tjl@xxxxxxxxxx>
  • Subject: Re: weirdness when mapping to RGB
  • From: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Date: Mon, 21 Jul 2003 17:15:36 -0500 (CDT)
Hi Tennessee,

One likely cause is that your data are being displayed
using texture mapping, and your texture is too large for
your graphics card.

Try inserting this in your program:

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

If this fixes the problem, then the problem is a texture too
large for your graphics card.

Cheers,
Bill

On 21 Jul 2003, Tennessee James Leeuwenburg wrote:

> Hi all,
>
> I'm working on a VisAD application, and found a problem when adding a
> ScalarMap of (rng->RGB). I see not a coloured field, but a grey-brown
> solid colour where there should be graded colour.
>
> I was baffled, but found that on other machines, the code worked as
> expected. One of the other programmers in my group suggested it might be
> related to my video card or configuration in some way, and that there
> was a discussion on something similar at one point here.
>
> Can anyone give me some pointers on what causes this issue, and what the
> resolution might be?
>
> I can post screenshots if people think it would be helpful, but I don't
> want to clutter your inboxes.
>
> Thanks,
> -Tennessee
>
>