POV-Ray : Newsgroups : povray.binaries.animations : Re: more metallic paint (mpeg1 796k) : Re: more metallic paint (mpeg1 796k) Server Time
19 Jul 2024 07:37:49 EDT (-0400)
  Re: more metallic paint (mpeg1 796k)  
From: Tek
Date: 23 May 2003 15:14:12
Message: <3ece7304$1@news.povray.org>
Here ya go. It's pretty simple. I used a pigment pattern so the scaling and
turbulence on the granite wouldn't affect the checkers.

union {
 cylinder { -y/2, -y*2/3, 4 }
 torus { 4, 1/2 translate -y }
 no_shadow

 pigment {
  pigment_pattern {
   granite poly_wave .3 scale <1,1,.3>*3 rotate <45,45,0> scale 1/10 warp {
turbulence .1 octaves 6 } scale 10
  }
  warp { repeat x offset y } warp { repeat z offset x } //break up the pattern
at the edge of the tiles
  pigment_map {
   [0 rgb .2]
   [.9 checker rgb 1, rgb 0]
  }
 }
 finish {
  diffuse 0.5 ambient 0
  reflection { 0.1, 0.5 falloff 5 }
 }
}

--
Tek
http://www.evilsuperbrain.com


Post a reply to this message

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