POV-Ray : Newsgroups : povray.general : Brick wall with thick glossy paint : Re: Brick wall with thick glossy paint Server Time
25 Apr 2024 08:06:36 EDT (-0400)
  Re: Brick wall with thick glossy paint  
From: Mike Horvath
Date: 28 May 2019 12:39:47
Message: <5ced6453$1@news.povray.org>
On 5/27/2019 8:22 AM, Bald Eagle wrote:
> I suppose you could use an image map as a blurred / smoothed heightfield or
> normal map.
> 

I have two functions.

	#undef f_Height
	#local f_Height = function {f_wrinkles(x*(BUSY+TRANS), y*(BUSY+TRANS), 
z*(BUSY+TRANS))}
	#undef f_What
	#local f_What = function
	{
		max
		(
			abs(x)-(W-ROUGH*f_Height(x, y, z)),
			abs(y)-(H-ROUGH*f_Height(x, y, z)),
			abs(z)-(D-ROUGH*f_Height(x, y, z)/4)
		)
	}

How do I feed them to a heightfield? For instance, the following creates 
an error:

	height_field
	{
		function  1, 1
		{ f_What(x,0,y).gray * 0.04 }
		smooth
		texture
		{
			pigment{ color srgb <0.6,0.55,0.5>}
			normal { bumps 0.1 scale 0.005}
			finish { phong 0.1 phong_size 400}
		}
	}


Thanks.


Post a reply to this message

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