POV-Ray : Newsgroups : povray.general : Using a function in a height_field declaration : Re: Using a function in a height_field declaration Server Time
17 Apr 2024 18:55:06 EDT (-0400)
  Re: Using a function in a height_field declaration  
From: yesbird
Date: 14 Feb 2023 08:35:00
Message: <web.63eb8cd543a1dd8868fd655b10800fb2@news.povray.org>
Yet another mystery. In following example 50 is resolution, but how to set range
for x,z ? Only small part of surface is visible.

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

camera
{ location <1,1,1> * 2
  look_at <0,0,0>
  angle 50
}

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

height_field
{
  function 50, 50 { sin (sqrt (x*x + y*y)) / (sqrt (x*x + y*y)) }
  smooth
  scale <1, 0.3, 1>
  pigment { green 0.8 }
}
---------------------------------------------------
YB


Post a reply to this message

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