POV-Ray : Newsgroups : povray.general : Surface from XYZ data : Re: Surface from XYZ data Server Time
30 Jul 2024 16:26:35 EDT (-0400)
  Re: Surface from XYZ data  
From: New2Povray
Date: 14 Oct 2008 18:05:00
Message: <web.48f516cf825a59e12d75b4a20@news.povray.org>
Dear Christian

Thankyou for your help. The Z=sin(X*Y) function is for illustrative purposes
only and is not what I would like to plot. I can't fit a function to my
experimental data because of the noise - it can be approximated by a series of
Bessel functions of the second kind, but I would like to render the original
unaltered data only. I guess a way to do this as you hinted - is to output the
data as an image file from another program and use the pixel height to render
the surface. Though I would still like to know if there is another straight
forward way to render surfaces!

Cheers





Christian Froeschlin <chr### [at] chrfrde> wrote:
> > 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.