POV-Ray : Newsgroups : povray.binaries.images : Dragon : Re: Dragon Server Time
14 Aug 2024 11:17:53 EDT (-0400)
  Re: Dragon  
From: Ive
Date: 2 Dec 2002 12:22:26
Message: <3deb96d2$1@news.povray.org>
> I have to say i really like the floor texture. is that an image/bump map or
> what?
>

No image map, just reflection.
The floor is just made of  height_field tiles and one of the
tiles is created like this:

#declare HF_Resolution = 3;   // 0 to use a box

#local N_Wood1 = pigment { wood
  turbulence 0.1
  octaves 8
  rotate 90*y
  scale <0.08,  0.05,  0.05>*0.6
}

#if (HF_Resolution > 0)
 #declare WoodTile1 = height_field {
  function 128*HF_Resolution, 128*HF_Resolution {
    pigment{N_Wood1}
  }
#else
 #declare WoodTile1 = box { 0, 1
#end
  texture{T_Wood1}
  translate -0.5
  scale <20,  0.01,  20>
}

The tiles are rotated and put together to create the checkered
floor look and I did use only two different height_fields for the
complete floor because due to the rotation the repetition is not
very noticable.

-Ive


Post a reply to this message

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