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

Home » Public Forums » archive » Re: PV-WAVE: shade_surf question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PV-WAVE: shade_surf question [message #1160] Wed, 14 July 1993 05:45
glenn is currently offline  glenn
Messages: 5
Registered: May 1993
Junior Member
In article YgEmuPO00X0M824KgZ@andrew.cmu.edu, "Todd M. Kulick" <kulick+@CMU.EDU> writes:
> My goal is to render shaded surface images of actual
> landscapes. I have elevation and color data (LANDSAT). The color
> data is 24-bit (RGB) color data. I am trying to use the 'shade_surf'
> procedure with the 'shades=' option to accomplish my goal. I best-fit
> the 24-bit color data so that my 'shades' data is of N colors, not
> 256**3. It is my understanding that the 'shade_surf' procedure will
> only take byte arrays for the 'shades=' option. If anyone knows of a
> neat (or even non-neat) way of overlaying 24-bit color data onto my
> elevation data I would be very interested. Still, this is not my only
> problem. Even once I concede to best-color-fit my data (which is fine
> since I may end up displaying the final image on a PsuedoColor device
> anyway) I cannot achieve my goals. :(
>

Since shade_surf only works in 8 bit, to create a 24 bit image you should
call it 3 times; once for the red, once for the green and once for the blue
images. Separate your input RGB data into the red, green and blue. Use each
of those in turn for shade_surf and combine the 3 component images to give
you a 24bit image.

Unfortunately, there is not a decent procedure in waveCL to convert 24 to 8
bit images. So, I output the image as a 24bit TIFF file. Then use the public
domain program 'xv' to view it. 'xv' will let you view 24bit images in a
variety of modes and is highly recommended. I use this technique for
producing 24bit, full colour images, from the wave raytracer.

---
------------------------------------------------------------ ------------
Dr Glenn Carver Email: glenn@atm.ch.cam.ac.uk
Centre for Atmospheric Science Phone: (44-223) 336521
Chemistry Department Fax : (44-223) 336362
Cambridge University
UK
------------------------------------------------------------ ------------
[Message index]
 
Read Message
Previous Topic: PV-WAVE: shade_surf question
Next Topic: Simple question - angstrom sign

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

Current Time: Sun Nov 30 04:30:18 PST 2025

Total time taken to generate the page: 0.00884 seconds