POV-Ray : Newsgroups : povray.general : Surface from XYZ data : Re: Surface from XYZ data Server Time
30 Jul 2024 16:23:46 EDT (-0400)
  Re: Surface from XYZ data  
From: Christian Froeschlin
Date: 14 Oct 2008 16:52:13
Message: <48f5067d$1@news.povray.org>
> success, the surface could not be mathematically represented 

> Z=sin(X*Y).

Looks like a mathematical representation to me. If your
surface is of the form z=f(x,y) it can be rendered as an
height_field object. Note that the function must be
scaled such that z is in the range from 0.0 to 1.0.

height_field
{
   function 512, 512 {0.5+0.5*sin(1.5*x*y)}
   pigment {color White}
   translate -0.5*x
}


Post a reply to this message

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