POV-Ray : Newsgroups : povray.general : Q: Can't finish my tiles : Q: Can't finish my tiles Server Time
11 Aug 2024 03:29:21 EDT (-0400)
  Q: Can't finish my tiles  
From: ingo
Date: 13 Sep 1999 14:24:11
Message: <37dd414b@news.povray.org>
While working on tiles texture, I ran into a problem. I want to give the
tile and the joint a different finish but cant get it done. There is no
sutch thing as a finish_map, and turning the pigment_map into a
texture_map won't work because the warps only work with pigments.
I'm stuck, is there a way out?

Ingo
--
#version 3.1;
global_settings{assumed_gamma 1.0}
light_source {<500,500,-500>, 1}
camera{
  location  <0,0,-1.3>
  look_at   <0,0,0>
  right x   // On commandline set +w equal to +h
  angle 90
  orthographic
}

#declare TilePigm= pigment

   wood
   rotate <0,32,33>
   translate <0,45,0>
   scale 1/1.5
   turbulence 0.6
   octaves 6
   omega 0.2
   lambda 0.5
   colour_map {
      [0.6, rgb <0.9,0.9,0.9>]
      [0.8, rgb <0,0,0.4>]
      [1.0, rgb <0.2,0.5,1>]
   }
}

#declare TilePigm= pigment {
   TilePigm
   warp {repeat x}
   warp {repeat y}
   translate <1,0,0>
}

#declare Tnorm= normal {
   boxed
   slope_map {
      [0.01, <0.3,0>]
      [0.03, <0.0,2>]
      [0.10, <1.0,0>]
   }
   warp {repeat x flip x}
   warp {repeat y flip y}
}

#declare Tile=
ture{ 
   pigment {
      boxed
      pigment_map {
         [0.03, rgb 0.5]
         [0.03, TilePigm]
      }
      warp {repeat x flip x}
      warp {repeat y flip y}
   }
   normal {
      average
      normal_map {
         [2, Tnorm]
         [1, granite 0.1 scale 0.2]
      }
   }
   finish {phong 0.7 phong_size 77}
}

plane {
   -z, 0
   texture {Tile}
}


Post a reply to this message

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