POV-Ray : Newsgroups : povray.general : Colour in shadow! : Re: Colour in shadow! Server Time
29 Jul 2024 14:17:09 EDT (-0400)
  Re: Colour in shadow!  
From: Alain
Date: 11 Apr 2011 13:20:40
Message: <4da33868@news.povray.org>

> i have created a object with the following code:
>
> #declare Window =
> union{
>    box{<0,0,0.1>,<  1.50,1.50,0.1>
>          texture {
>          pigment {image_map { png "net.png"}}
>          }  }
>    box{<0,0,0.11>,<1.5,0.05,0.21>}
>    box{<0,1.50,0.11>,<  1.50,1.55,0.13>}
>    box{<0,0,0.11>,<0.05,1.50,0.13>}
>    box{<1.50,0,0.11>,<1.55,1.50,0.13>}
>    box{<1.50,1,0.11>,<0,1.05,0.13>}
>    texture {
>          pigment{ color White}
>          finish { ambient 0.9 phong 0.5}
>          }
>          }
> and called with
>
> object{ Window
>          scale<1,1,1>*1
>          rotate<0,0,0>
>          translate<4,2.3,2.401>
>          rotate y*90}
>
>
> This creates a window that looks exactly how i want it, the only thing being
> that, when the window is in the shadow of something, eg a tree im trying to do,
> it still stays bright white rather than going dull, does anyone know how to do
> this?
>
>

Don't use ambient!

If you use version 3.6, use double_illuminate in your finish for your 
window. That way, it will get it's illumination from the light reatching 
it's back side.

Way beter, but you beed version 3.7, is to use the new backside diffuse 
illumination.
To use it, you change the diffuse value like this:
finish { ambient 0 diffuse 0.1, 0.9 }


Also add interior_texture{pigment{rgbt 1}} to the boxes making your 
glass. This is advisable with both double_illuminate anf the backside 
diffuse illumination.
texture{
	pigment{White}
	finish{ambient 0 diffuse 0.1 0.9}
	}
interior_texture{ pigment {rgbt 1}}





Alain


Post a reply to this message

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