POV-Ray : Newsgroups : povray.general : Using a function in a height_field declaration : Re: Using a function in a height_field declaration Server Time
25 Apr 2024 20:18:21 EDT (-0400)
  Re: Using a function in a height_field declaration  
From: yesbird
Date: 14 Feb 2023 05:45:00
Message: <web.63eb65fe43a1dd8868fd655b10800fb2@news.povray.org>
> Another quick example.
>

Do not see anything, except "Black Square" by kazimir Malevich:

------------------------------------------
#version 3.8;
global_settings { assumed_gamma 1 }

#declare Fn02 = function { pattern { granite scale 0.5 } }
#declare Orange = srgb <1,0.50196,0>;
#declare HF00 = height_field {
     function 800, 800 { Fn02(x,y,z) }
     smooth
     pigment { color Orange }
     translate <-0.5,0,-0.5>
     scale <2,0.05,2>
}

camera
{ location <10,10,10>
  look_at <0,0,0>
  angle 90
}

light_source
{ <10,10,10>, rgb <1,1,1>
}
------------------------------------------
YB


Post a reply to this message

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