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

Home » Public Forums » archive » object graphics - transparent surfaces
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
object graphics - transparent surfaces [message #48861] Tue, 30 May 2006 00:20 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
I'm trying to make some 3d red/blue anaglyphs using object graphics. I
manage to blend the red surface onto the blue using the alpha channel
and /depth_test_disable on the second surface, something like:

oSurface2 = OBJ_NEW('IDLgrSurface', data,x,y, style=2, alpha=.5, $
color=[255,255,255],texture_map=oImage2,shading=1)
oModel2 = OBJ_NEW('IDLgrModel',/depth_test_disable)
oModel2->add,oSurface2

In most cases it works fine, but occasionally I get ugly pure-red bands
on the tops of steep ridges. Looking more closely at the idlgrsurface
alpha_channel documentation, it seems to be saying this technique is
not recommended... some facets may be rendered in the wrong order for
transparency. So is there a better way?

I could render one, read it back, then the other, read it back, blend
them myself, and then display. But that wouldn't be a nice way to make
an interactive object. By the way, I'm using 6.1, just in case anyone
happens to know whether it's been changed since.

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: object graphics - transparent surfaces
Next Topic: Running Windows IDL under wine

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

Current Time: Wed Oct 08 18:19:42 PDT 2025

Total time taken to generate the page: 0.00459 seconds