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

Home » Public Forums » archive » NG Transparency Bug
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
NG Transparency Bug [message #73853] Tue, 30 November 2010 12:30
David Grier is currently offline  David Grier
Messages: 35
Registered: July 2010
Member
Dear Folks,

The following code appears to exercise a bug in IDL 8.0.1
(both Mac and Linux). It's supposed to draw a tilted
transparent disk on a set of 3D axes. In fact, the disk
completely blocks the occluded axis objects.

Interestingly, if you add other objects such as colored orbs
to the plot, they can be seen properly through the transparent
disk.

So, this seems to be a bug with how axes are rendered through
transparent objects.

Or am I missing something?

I would be very grateful for a workaround.

TTFN,

David


; ==== snip here for ====
; transparency bug demo
p = plot3d([-1,1],[-1,1],[-1,1], /nodata) ; create plot

(p.axes)[0].location = [0,0,0] ; center axes to demonstrate problem
(p.axes)[1].location = [0,0,0]
(p.axes)[2].location = [0,0,0]

theta = findgen(100)/99 * 2 * !pi ; add a tilted transparent green disk
beta = !pi/6.
x = cos(theta) * cos(beta)
y = sin(theta)
z = cos(theta) * sin(beta)
disk = polygon(x, y, z, target = p, $
/data, /fill_background, fill_color='lime_green', $
fill_transparency = 80)

; ... and voila! you can't see the axes through the transparent disk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Thread-Pool for operators?
Next Topic: Re: X window error

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

Current Time: Wed Oct 08 15:12:42 PDT 2025

Total time taken to generate the page: 0.00565 seconds