POV-Ray : Newsgroups : povray.newusers : Tips on making good wood textures? : Re: Tips on making good wood textures? Server Time
28 Jul 2024 14:27:38 EDT (-0400)
  Re: Tips on making good wood textures?  
From: Bill Pragnell
Date: 15 Oct 2008 08:55:01
Message: <web.48f5e7d8b1b74b03d5b77e4a0@news.povray.org>
Kyle <hob### [at] gatenet> wrote:
> You may want to take a look at IsoWood.

He might have been asking about basic texturing, in which case IsoWood would be
overkill and maybe a little advanced.

Woods.inc is not a helpful file if you want to learn how to make a wood texture
- the different components of the textures are too far-flung and it's difficult
to see how they're constructed.

The best way to learn is experimentation, substituting your own colour schemes
and transformations to an existing texture. I don't know of any wood tutorials
as such, but, assuming you know the basics of POV-Ray's texturing, here's a
simple wood texture, and an object to apply it to:

#declare Wood1 = texture {
  pigment {
    wood turbulence 0.05
    color_map {
      [0 color LightWood]
      [1 color MediumWood] }
    translate x*10
    scale <1, 1, 5>
  }
  finish { ambient 0 phong 1 phong_size 15 }
  normal {
    wood 0.1 turbulence 0.05
    translate x*10
    scale <1, 1, 5>
  }
}

torus { 20, 10 texture { Wood1 } }

(LightWood and MediumWood are defined in colors.inc). The translation moves the
centre of the grain away from the origin, and the scale stretches the slight
turbulence along the grain. The normal is entirely optional, but shows off the
possibilities quite well (notice how it's exactly the same as the pigment
except for the color_map).

Assuming this was what you were after, have a play with the colours and
transformations and see what you can come up with. Keep the docs handy and you
can't go far wrong!

Bill


Post a reply to this message

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