POV-Ray : Newsgroups : povray.general : Colour in shadow! Server Time
29 Jul 2024 16:32:42 EDT (-0400)
  Colour in shadow! (Message 1 to 3 of 3)  
From: Ian Snook
Subject: Colour in shadow!
Date: 10 Apr 2011 19:50:00
Message: <web.4da2416e42a4b003413a4eea0@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?


Post a reply to this message

From: Stephen
Subject: Re: Colour in shadow!
Date: 11 Apr 2011 00:42:18
Message: <4da286aa$1@news.povray.org>
On 11/04/2011 12:46 AM, Ian Snook wrote:

>          finish { ambient 0.9 phong 0.5}

>
>
>
> 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?
>
>
Your ambient is too high, try values between 0 and 0.3.

-- 
Regards
     Stephen


Post a reply to this message

From: Alain
Subject: Re: Colour in shadow!
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.