POV-Ray : Newsgroups : povray.binaries.images : My Chessboard : Re: My Chessboard Server Time
29 Dec 2024 00:33:06 EST (-0500)
  Re: My Chessboard  
From: Warp
Date: 26 Aug 2008 07:32:14
Message: <48b3e9be@news.povray.org>
alphaQuad wrote:
> And the normals
> 
> camera { location <0, 5, -10> look_at 0 angle 35 }
> light_source
> { <100, 200, -150>/50, 1
>   fade_distance 6 fade_power 2
>   area_light x*3, y*3, 12, 12 circular orient adaptive 0
> }
> 
> #declare PlankNormal =
>   normal
>   { gradient x 2 slope_map { [0 <0,1>][.05 <1,0>][.95 <1,0>][1 <0,-1>] }
>     scale 2
>   };
> 
> plane
> { y, -.25
>   pigment
>   { wood color_map
>     { [.4 rgb <.9, .7, .4>]
>       [.6 rgb <1, .8, .6>]
>     }
>     turbulence .5
>     scale <1, 1, 10>*.5
>     rotate y*20
>   }
>   normal
>   { average normal_map
>     { [1 PlankNormal]
>       [1 wood .5 slope_map { [0 <0,0>][.5 <.5,1>][1 <1,0>] }
>          turbulence .5 scale <1, 1, 10>*.5]
>     }
>     rotate y*20
>   }
>   finish { specular .5 reflection .2 }
> }

  It would be nice (and polite) if you mentioned where you got that code
from.


Post a reply to this message

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