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

Home » Public Forums » archive » Re: semi-transparent colors and z buffer
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: semi-transparent colors and z buffer [message #39916] Fri, 25 June 2004 13:43
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Patrick writes:

> I am using the map_set and plots command to create an image through
> the Z buffer. I have 2 datasets to be semi-transparently overlayed
> onto the map. But when this is done the data overlays the map, hiding
> the map data. Have searched around the web and seen several
> transparency examples, but I cannot seem to get any of them to work.
> Any suggestions?

There is only one way to get transparency in IDL, as
far as I know, and that is to use two different images
and alpha blend their values. In your case, you could
draw the map on one image and the plots on another image
and blend the two. This would be easier in object graphics,
where images have alpha channels. Or, you could do it
in direct graphics but you will have to write the alpha
blending part by hand. (See any decent computer graphics
text.)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: semi-transparent colors and z buffer
Next Topic: Re: Drawing map in 3D plot

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

Current Time: Fri Oct 10 10:56:37 PDT 2025

Total time taken to generate the page: 1.11926 seconds