POV-Ray : Newsgroups : povray.general : INQUIRY: Wooden Planks Texture : Re: INQUIRY: Wooden Planks Texture Server Time
4 May 2024 03:51:43 EDT (-0400)
  Re: INQUIRY: Wooden Planks Texture  
From: Alain
Date: 5 Apr 2018 17:39:05
Message: <5ac69779@news.povray.org>
Le 18-04-04 à 23:46, Sven Littkowski a écrit :
> Yes, I made already some first thoughts about how to interrupt a
> continuous grain. My idea is 8what I am using already right now for my
> ship) to equip the wood texture with a random-based TRANSLATE that comes
> into effect with each call of the texture.
> 
> I also experimented with BRICKS for TEXTURE, but it seems I did things
> wrong and always got error messages. :-D
> 
> Thanks for sharing that simple code. What a shame for me... :-D
> 
> ---
> Diese E-Mail wurde von AVG auf Viren geprüft.
> http://www.avg.com
> 

Here some code that I used in one of my rojects :
texture{
	pigment{
		wood
		warp{turbulence 0.03725
		omega 0.65725
		lambda 2.425}
		color_map{
		[0.250 color rgb <1.00000, 0.53373, 0.11665>]
		[0.350 color rgb <0.66275, 0.28607, 0.00000>]
		[0.525 color rgb <1.00000, 0.53363, 0.11715>]
		[0.600 color rgb <0.66475, 0.28647, 0.00000>]
		[0.750 color rgb <1.00000, 0.53353, 0.11565>]
		[0.850 color rgb <0.66275, 0.28667, 0.00000>]
		[1.000 color rgb <1.00000, 0.53143, 0.11795>]
		}
	scale <0.205, 0.225, 1.2>
	warp{repeat x*WarpScale offset y*2.427 flip y}
		}
	}
texture{
	pigment{
		wood
		scale 1.01275
		turbulence 0.0435
		omega 0.65
		lambda 3.15
		color_map{
		[0.200 color rgbt <0.56695, 0.17347, 0.00000, 0.8250>]
		[0.350 color rgbt <0.96471, 0.54510, 0.22753, 0.7710>]
		[0.400 color rgbt <0.56341, 0.17547, 0.00000, 0.9150>]
		[0.615 color rgbt <0.96472, 0.54510, 0.22553, 0.7590>]
		[0.700 color rgbt <0.56671, 0.17687, 0.00000, 0.7920>]
		[0.850 color rgbt <0.96485, 0.54510, 0.22453, 0.8975>]
		[1.000 color rgbt <0.56478, 0.17247, 0.00000, 0.9750>]
		}
		scale <0.225, 0.2725, 1.0>
	translate <-0.35, 0.095, 1.25>
	warp{repeat x*WarpScale offset -y*0.321 flip z}
	}
	finish{specular 0.3 roughness 0.12
		reflection{0.001,0.1 fresnel}}
	}
texture{
	pigment{
		gradient x color_map{[0.04 Black][0.04 rgbt 1]}
		//turbulence 0.025 octaves 4 lambda 0.8 omega 0.25
		scale WarpScale}}

The last layer is just to add some gaps between the planks and may be 
omited if you like.


Post a reply to this message

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