comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 16-bit color in IDL/Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: 16-bit color in IDL/Linux [message #9786] Fri, 22 August 1997 00:00
Robert S. Mallozzi is currently offline  Robert S. Mallozzi
Messages: 1
Registered: August 1997
Junior Member
Mike Ressler wrote:

> Hello,
>
> I'm sure this has been asked before, but I couldn't find anything
> in the FAQ or any of the IDL Web pages I know about. Can IDL be
> made to work with a 16-bit TrueColor visual in the Linux version?
> A colleague asked me about this and I had no more success than he
> did in making it work. We would both start X with a 16-bit visual
> (verified by xwininfo and running image display things like xv),
> but as soon as we tried to display an image with tv in IDL, it
> would seg fault and dump us back at the unix prompt.
>
> We are both running IDL 5.0 - I've got Redhat Linux with the 2.0.30
> kernel, he has Caldera with presumably the same kernel. Any advice,
> tricks, or confirmation that it just plain won't work will be
> greatly appreciated. Thanks.
>

I put this in my .Xdefaults. It allows plots and widgets, but image
routinessuch as SHADE_SURF will not work correctly. If anyone has
succeeded in getting
full IDL functionality at 16bpp, I would like to hear about it.

-bob

# IDL
#
# For 16 bpp
idl.visual: PseudoColor
# IDL backing store
idl.retain: 2


--
Dr. Robert S. Mallozzi
University of Alabama in Huntsville
http://cspar.uah.edu/~mallozzir/
Re: 16-bit color in IDL/Linux [message #9804 is a reply to message #9786] Wed, 20 August 1997 00:00 Go to previous message
tdarnell is currently offline  tdarnell
Messages: 3
Registered: August 1997
Junior Member
In article <33F9CE8B.14@cougar.jpl.nasa.gov>,
Mike Ressler <ressler@cougar.jpl.nasa.gov> writes:

> I'm sure this has been asked before, but I couldn't find anything
> in the FAQ or any of the IDL Web pages I know about. Can IDL be
> made to work with a 16-bit TrueColor visual in the Linux version?

I've only just begun using LINUX on my PC so I am certainly no expert there,
however, perhaps I can offer something useful on the IDL side. As you
probably know, IDL selects the visual class the first time it connects to
the X server. Since you seem pretty sure about the color levels the server
is using, the problem is one of making IDL see it when it first creates a
window. I presume you are using XFree86 along with some window manager, so I
would start by making a startup procedure that IDL executes everytime you
enter it with the following in it:

DEVICE,True_Color=24
;DEVICE,Direct_Color=24
;DEVICE,pseudo_color=8
;WINDOW,XSIZE=512,YSIZE=512,COLORS=256
;WINDOW,XSIZE=512,YSIZE=512,COLORS=2L^24
WINDOW,XSIZE=512,YSIZE=512,COLORS=256
WDELETE

HELP,/DEVICE

You can then uncomment out the lines (this is my start.pro) to experiment
with different visual classes to see if one works. Unfortunately I don't
believe you can say DEVICE,TRUE_COLOR=16, but I could be wrong, I've never
tried it. Try a color level less that 16, say the pseudo_color=8 mode to
make sure there are colors to spare and then go up. The window manager you
are using might even support direct_color.

If none of this worked, I'd be inclined to try another window manager because
there are so many available for LINUX. I'm sure there is a problem with what
IDL expects to get from it and what it is actually getting.

If none of this works, my apologies, I hope you'll post what actually ended
up working, along with your setup (window manager, etc) because I'll be
shifting to LINUX soon. :-)

HTH,

--
Tony Darnell
High Altitude Observatory
(tdarnell@hao.ucar.edu) Boulder, CO
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: informazione
Next Topic: polar contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:20:59 PDT 2025

Total time taken to generate the page: 0.32256 seconds