POV-Ray : Newsgroups : povray.newusers : adding transparency to complex object Server Time
26 Nov 2024 05:25:36 EST (-0500)
  adding transparency to complex object (Message 1 to 2 of 2)  
From: Maurizio Vitale
Subject: adding transparency to complex object
Date: 22 Oct 2004 23:24:43
Message: <m3sm86jevl.fsf@philips.com>
I'd like to have a complex object becoming more and more transparent
over time in order to reveal the interior. Is it possible in povray to
"apply" transparency to a compound object (where individual components
have already their textures applied)?

Eg. given:

object {
  union {
    box{<0,0,0>,<1,1,1> texture{pigment{Red}}}
    box{<0,0,0>,<1,1,1> texture{pigment{Yellow}}}
  }
  ...
}

is there anything I can put in place of the '...' in order to get a
cube with a redish transparent tint and one with a yellowish tint?

Thanks a lot,

       Maurizio


Post a reply to this message

From: Florian Brucker
Subject: Re: adding transparency to complex object
Date: 23 Oct 2004 04:12:31
Message: <417a126f@news.povray.org>
> I'd like to have a complex object becoming more and more transparent
> over time in order to reveal the interior. Is it possible in povray to
> "apply" transparency to a compound object (where individual components
> have already their textures applied)?
Nope, not possible. The best thing you can do is something like that

#local TRANSMIT = 0.5;
#local FILTER = 0;

#local Tex1 = texture {
	pigment { Red filter FILTER transmit TRANSMIT }
}

#local Tex2 = texture {
	pigment { Green transmit TRANSMIT/2 }
}

etc.

HTH,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.