POV-Ray : Newsgroups : povray.newusers : Transparent Objects : Re: Transparent Objects Server Time
27 Sep 2024 18:28:14 EDT (-0400)
  Re: Transparent Objects  
From: William Tracy
Date: 27 May 2007 19:56:03
Message: <465a1a93$1@news.povray.org>
> The Sky declaration is:
> 
>  union{
>   sphere{0,5
>    hollow no_shadow
>    texture{
>     pigment{
>      function{fp(x,y,z).gray}
>      poly_wave light_exponent
>      color_map{
>      [0.0 rgb 0]
>      [1.0 rgb light_ambient]
>      }
>     }
>   finish { ambient light_ambient diffuse 0 }
>    }
>   }
>   sphere{0,4.999
>    hollow no_shadow
>    texture{
>     pigment{p_image_filtered}
>   finish { ambient light_ambient diffuse 0 }
>    }
>   }
>  }

Have the inner sphere become increasingly transparent to reveal the 
outer sphere.

If p_image_filtered is a texture declared in Pov, you can add change the 
transmit value of the colors as mentioned earlier in the thread.

If it's an image, you can use the transmit bitmap modifier, described here:
http://povray.org/documentation/view/3.6.1/337/

(While I was looking that up, I accidentally ran across the 
interior_texture option. I didn't know about that--it looks really useful!)

-- 
William Tracy
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|a|f|i|s|h|i|o|n|a|d|o|@|g|m|a|i|l|.|c|o|m|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|w|t|r|a|c|y|@|c|a|l|p|o|l|y|.|e|d|u|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
You know you've been raytracing too long when you actually contemplate 
spending $$$ at a printing bureau to litho some of your raytraces for 
your non-computer-literate relatives.
George Erhard


Post a reply to this message

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