POV-Ray : Newsgroups : povray.binaries.images : The letter, progressing. : Re: The letter, progressing. Server Time
7 Aug 2024 05:19:56 EDT (-0400)
  Re: The letter, progressing.  
From: Jaime Vives Piqueres
Date: 6 Aug 2006 15:29:34
Message: <44d6431e@news.povray.org>
Artemia Salina wrote:
> He is basically using a height_field to get the wood grain for his table,
> but instead of using an image file in the height_field he is using a
> function which supplies a brick patterned pigment.
> 
> height_field{
>  function 1000, 1000 {
>   pigment{ brick color 1 color rgb 0 mortar 2 rotate 90*x scale .001 }
>  }
>  water_level 0.1
>  translate -0.5
>  texture{........}
> }

   Sorry, but this was the metallic grill from the second version. The 
wooden version is that one:

#declare p_base_wood1=
pigment{wood turbulence .05 scale .5 translate 33}
#declare p_base_wood2=
pigment{wood turbulence .05 scale .1 translate 333}
#declare p_wood=
pigment{
  wood turbulence 1
  pigment_map{
   [0.00 p_base_wood1]
   [1.00 p_base_wood2]
  }
  scale .05 rotate 90*y
}
height_field{
  function 512,512{
   pigment{p_wood}
  }
  translate -.5
  scale <50,.1,50>
  texture{t_wood}
}


Regards,

--
Jaime


Post a reply to this message

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