Re: 24-bit color problem on Red Hat Linux 7.1 [message #30417] |
Thu, 25 April 2002 02:01 |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Amar Nayegandhi wrote:
> Hi,
> Thanks for your suggestion. I think I now know what the problem was. I
> have this "32-bit" Matrox G450 graphics card. Earlier, I had configured
> my X-display to 24/8bit, which I think meant that idl was working on an
> 8-bit set up while the rest of my screen was 24-bit (which might explain
> flashing colors *ONLY* when my mouse cursor was on an 'active' colorbar).
> I changed my X-display to 24-bit only, and with a startup file similar to
> the one below, I do get true colors.
>
Ah, so now we know one of the PC graphics cards which actually supports
8bit overlays in a 24bit X display.
IDL "prefers" an 8 bit PseudoColor visual if it can get it. If your display
supports both you have to tell IDL to use the 24bit TrueColor visual
(before you open graphics windows, or do any "hidden" graphics - even
asking IDL which visual it has will cause it to take 8bit PseudoColor). So
you can leave your display set to supporting both 8 and 24bit and get IDL
to use 24bit. There are numerous posts in the past discussing this issue if
you want more details.
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30426 is a reply to message #30417] |
Wed, 24 April 2002 12:57  |
nobody@nowhere.com (S
Messages: 55 Registered: July 2001
|
Member |
|
|
On Wed, 24 Apr 2002 14:10:17 -0400, Amar Nayegandhi
<anayegan@csee.usf.edu> wrote:
> Hi,
> Thanks for your suggestion. I think I now know what the problem was. I
> have this "32-bit" Matrox G450 graphics card. Earlier, I had configured
> my X-display to 24/8bit, which I think meant that idl was working on an
> 8-bit set up while the rest of my screen was 24-bit (which might explain
> flashing colors *ONLY* when my mouse cursor was on an 'active' colorbar).
> I changed my X-display to 24-bit only, and with a startup file similar to
> the one below, I do get true colors.
>
maybe OT, but your X-server allows this split display mode (e.g. an 8-bit
window on a 24-bit desktop)? Do you really have a need for this (some app
that can only run in a lower color mode, for instance)? I usually run my
X-server in 32bpp mode, which is 24-bit color with what I _think_ is an
alpha layer or something similar. Anyways, X usually behaves much better
than if set for 24bpp (which also will give 24-bit color). Something to
think about.
> Further, while I got those flashing colors, I was able to dump graphics
> from a current window to a tiff file. I cannot do that now. Which is my
> follow up question:
> Is there any way in which I can write out a tiff file dumped from a
> window (using the write_tiff command) while I am in true color mode? If
> tvrd() will not work, is there any other way of doing it?
>
> thanks in advance,
> amar
>
>
> On Tue, 23 Apr 2002, Robert Stockwell wrote:
>
>>
>>
>> Amar Nayegandhi wrote:
>>
>>> Hi,
>>> I have a problem using a color table on Red Hat Linux 7.1. I have
>>> downloaded the patch available at the rsinc website to resolve the
>>> striping effect, but there is one more problem.
>>> Any image that I display (for e.g. with a plot/plots command), shows up
>>> in black and white. When I call xloadct or annotate and place my mouse on
>>> the colorbar, I get flashing colors.
>>> What do I need to do to get rid of this problem? My graphics card
>>> supports 24-bit true (direct) color.
>>> Thanks in advance,
>>> -amar
>>
>>>
>>> ****************************************************
>>> Amar Nayegandhi
>>> ****************************************************
>>>
>>>
>>
>> Do you have a device,true=24 statement in your startup?
>>
>> I start with the following:
>>
>> device,true=24
>> device,retain = 2
>> device,decomposed=0
>>
>> Are you sure you are really in 24 bit color mode?
>>
>>
>> Cheers,
>> bob
>>
>>
>>
>
> ****************************************************
> Amar Nayegandhi
> ****************************************************
>
--
Steve S.
steve@NOSPAMmailaps.org
remove NOSPAM before replying
|
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30428 is a reply to message #30427] |
Wed, 24 April 2002 11:26  |
Amar Nayegandhi
Messages: 15 Registered: May 2001
|
Junior Member |
|
|
Hi,
I should do some reading myself before posting a question! tvrd(true=1)
will be the answer to my question.
Sorry for the easy question...
-amar
On Wed, 24 Apr 2002, Amar Nayegandhi wrote:
> Hi,
> Thanks for your suggestion. I think I now know what the problem was. I
> have this "32-bit" Matrox G450 graphics card. Earlier, I had configured
> my X-display to 24/8bit, which I think meant that idl was working on an
> 8-bit set up while the rest of my screen was 24-bit (which might explain
> flashing colors *ONLY* when my mouse cursor was on an 'active' colorbar).
> I changed my X-display to 24-bit only, and with a startup file similar to
> the one below, I do get true colors.
>
> Further, while I got those flashing colors, I was able to dump graphics
> from a current window to a tiff file. I cannot do that now. Which is my
> follow up question:
> Is there any way in which I can write out a tiff file dumped from a
> window (using the write_tiff command) while I am in true color mode? If
> tvrd() will not work, is there any other way of doing it?
>
> thanks in advance,
> amar
>
>
> On Tue, 23 Apr 2002, Robert Stockwell wrote:
>
>>
>>
>> Amar Nayegandhi wrote:
>>
>>> Hi,
>>> I have a problem using a color table on Red Hat Linux 7.1. I have
>>> downloaded the patch available at the rsinc website to resolve the
>>> striping effect, but there is one more problem.
>>> Any image that I display (for e.g. with a plot/plots command), shows up
>>> in black and white. When I call xloadct or annotate and place my mouse on
>>> the colorbar, I get flashing colors.
>>> What do I need to do to get rid of this problem? My graphics card
>>> supports 24-bit true (direct) color.
>>> Thanks in advance,
>>> -amar
>>
>>>
>>> ****************************************************
>>> Amar Nayegandhi
>>> ****************************************************
>>>
>>>
>>
>> Do you have a device,true=24 statement in your startup?
>>
>> I start with the following:
>>
>> device,true=24
>> device,retain = 2
>> device,decomposed=0
>>
>> Are you sure you are really in 24 bit color mode?
>>
>>
>> Cheers,
>> bob
>>
>>
>>
>
> ****************************************************
> Amar Nayegandhi
> ****************************************************
>
>
****************************************************
Amar Nayegandhi
****************************************************
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30429 is a reply to message #30428] |
Wed, 24 April 2002 11:10  |
Amar Nayegandhi
Messages: 15 Registered: May 2001
|
Junior Member |
|
|
Hi,
Thanks for your suggestion. I think I now know what the problem was. I
have this "32-bit" Matrox G450 graphics card. Earlier, I had configured
my X-display to 24/8bit, which I think meant that idl was working on an
8-bit set up while the rest of my screen was 24-bit (which might explain
flashing colors *ONLY* when my mouse cursor was on an 'active' colorbar).
I changed my X-display to 24-bit only, and with a startup file similar to
the one below, I do get true colors.
Further, while I got those flashing colors, I was able to dump graphics
from a current window to a tiff file. I cannot do that now. Which is my
follow up question:
Is there any way in which I can write out a tiff file dumped from a
window (using the write_tiff command) while I am in true color mode? If
tvrd() will not work, is there any other way of doing it?
thanks in advance,
amar
On Tue, 23 Apr 2002, Robert Stockwell wrote:
>
>
> Amar Nayegandhi wrote:
>
>> Hi,
>> I have a problem using a color table on Red Hat Linux 7.1. I have
>> downloaded the patch available at the rsinc website to resolve the
>> striping effect, but there is one more problem.
>> Any image that I display (for e.g. with a plot/plots command), shows up
>> in black and white. When I call xloadct or annotate and place my mouse on
>> the colorbar, I get flashing colors.
>> What do I need to do to get rid of this problem? My graphics card
>> supports 24-bit true (direct) color.
>> Thanks in advance,
>> -amar
>
>>
>> ****************************************************
>> Amar Nayegandhi
>> ****************************************************
>>
>>
>
> Do you have a device,true=24 statement in your startup?
>
> I start with the following:
>
> device,true=24
> device,retain = 2
> device,decomposed=0
>
> Are you sure you are really in 24 bit color mode?
>
>
> Cheers,
> bob
>
>
>
****************************************************
Amar Nayegandhi
****************************************************
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30441 is a reply to message #30429] |
Tue, 23 April 2002 14:51  |
Robert Stockwell
Messages: 74 Registered: October 2001
|
Member |
|
|
Amar Nayegandhi wrote:
> Hi,
> I have a problem using a color table on Red Hat Linux 7.1. I have
> downloaded the patch available at the rsinc website to resolve the
> striping effect, but there is one more problem.
> Any image that I display (for e.g. with a plot/plots command), shows up
> in black and white. When I call xloadct or annotate and place my mouse on
> the colorbar, I get flashing colors.
> What do I need to do to get rid of this problem? My graphics card
> supports 24-bit true (direct) color.
> Thanks in advance,
> -amar
>
> ****************************************************
> Amar Nayegandhi
> ****************************************************
>
>
Do you have a device,true=24 statement in your startup?
I start with the following:
device,true=24
device,retain = 2
device,decomposed=0
Are you sure you are really in 24 bit color mode?
Cheers,
bob
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30442 is a reply to message #30441] |
Tue, 23 April 2002 14:42  |
Amar Nayegandhi
Messages: 15 Registered: May 2001
|
Junior Member |
|
|
Thanks for your suggestion. I have read and implemented the
solution for flashing colors available on the rsinc website, but that does
not solve my problem.
My first problem is that any idl graphics appears grey level (at
any value of loadct) UNLESS I have my mouse cursor positioned on the
colorbar of xloadct or annotate functions. This itself is an odd
behavior. My second problem is that when my mouse cursor is positioned
on an 'active' colorbar (like the one displayed when running xloadct), I
get flashing colors.
I would really like my graphics to be plotted with the colorbar I have
already chosen and not after I place my mouse cursor on an 'active'
colorbar. any help is appreciated.
thanks in advance,
amar
On Tue, 23 Apr 2002, Sean Dettrick wrote:
>
> This is an age-old problem. The solution is in www.rsinc.com
> in the tech-tips section. Search for "flashing".
>
> Sean Dettrick
>
>
> Amar Nayegandhi wrote:
>>
>> Hi,
>> I have a problem using a color table on Red Hat Linux 7.1. I have
>> downloaded the patch available at the rsinc website to resolve the
>> striping effect, but there is one more problem.
>> Any image that I display (for e.g. with a plot/plots command), shows up
>> in black and white. When I call xloadct or annotate and place my mouse on
>> the colorbar, I get flashing colors.
>> What do I need to do to get rid of this problem? My graphics card
>> supports 24-bit true (direct) color.
>> Thanks in advance,
>> -amar
>>
>> ****************************************************
>> Amar Nayegandhi
>> ****************************************************
>
****************************************************
Amar Nayegandhi
****************************************************
|
|
|
Re: 24-bit color problem on Red Hat Linux 7.1 [message #30445 is a reply to message #30442] |
Tue, 23 April 2002 13:35  |
Sean Dettrick
Messages: 12 Registered: April 2002
|
Junior Member |
|
|
This is an age-old problem. The solution is in www.rsinc.com
in the tech-tips section. Search for "flashing".
Sean Dettrick
Amar Nayegandhi wrote:
>
> Hi,
> I have a problem using a color table on Red Hat Linux 7.1. I have
> downloaded the patch available at the rsinc website to resolve the
> striping effect, but there is one more problem.
> Any image that I display (for e.g. with a plot/plots command), shows up
> in black and white. When I call xloadct or annotate and place my mouse on
> the colorbar, I get flashing colors.
> What do I need to do to get rid of this problem? My graphics card
> supports 24-bit true (direct) color.
> Thanks in advance,
> -amar
>
> ****************************************************
> Amar Nayegandhi
> ****************************************************
|
|
|