POV-Ray : Newsgroups : povray.advanced-users : Media transparency? : Re: Media transparency? Server Time
28 Jul 2024 20:35:27 EDT (-0400)
  Re: Media transparency?  
From: Warp
Date: 10 Feb 2004 04:47:49
Message: <4028a8c5@news.povray.org>
Maurya Shah <mau### [at] hotmailcom> wrote:
> Can anyone please suggest how the transparency of the media can be
> specified?

  The color specifies both the color and the transparency of the media.

  In chromatic terms, the hue/saturation of the color specify its color,
and the brightness specifies its transparency.

  That is, for example if you want an orange media you would use
rgb <1, .5, 0>. If you want to make it more transparent, diminish its
brightness. For example if you want to increase its transparency
by half, use rgb <.5, .25, 0>.

  The color of the density specifies how the light passing through it
is filtered.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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