POV-Ray : Newsgroups : povray.general : Brick wall with thick glossy paint : Re: Brick wall with thick glossy paint Server Time
24 Apr 2024 23:49:06 EDT (-0400)
  Re: Brick wall with thick glossy paint  
From: Thomas de Groot
Date: 29 May 2019 02:30:04
Message: <5cee26ec$1@news.povray.org>
On 28-5-2019 18:39, Mike Horvath wrote:
> 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}
>          }
>      }
> 

Have you tried:   function 1, 1 {f_What(x,0,y).hf*0.04}  ?

-- 
Thomas


Post a reply to this message

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