POV-Ray : Newsgroups : povray.general : Math functions in POV Server Time
16 Nov 2024 19:19:53 EST (-0500)
  Math functions in POV (Message 1 to 5 of 5)  
From: Daniel Sobral
Subject: Math functions in POV
Date: 28 Apr 1998 03:02:50
Message: <35457F16.1C7DF943@alfa.ist.utl.pt>
Does anyone knows how to make nice 3D graphics of mathematical
functions of 2 variables? Ex: f(x,y) = sin(x^2 + y^2)
I have seen the tutorials, but the results I got were awfull
(I'm doing it with PovRay because it's cheaper)

Thank you


Post a reply to this message

From: Thomas Willhalm
Subject: Re: Math functions in POV
Date: 28 Apr 1998 03:35:49
Message: <qqm4szel7oq.fsf@uni-konstanz.de>
Daniel Sobral <l45### [at] alfaistutlpt> writes:
> 
> Does anyone knows how to make nice 3D graphics of mathematical
> functions of 2 variables? Ex: f(x,y) = sin(x^2 + y^2)
> I have seen the tutorials, but the results I got were awfull

IMO you have mainly three possibilities:

1. In case of an easy function you can try the built-in objects poly, cubic
and quartic (section 7.5.4.2 of the docs).

2. For more complicated functions like sin(x^2 + y^2) you can approximate
the function with objects like spheres, cylinders, (smoothed) triangles or
even bicubic patches.

3. You get the "isosurface patch" for POV-Ray. It is availible at
http://www.public.usit.net/rsuzuki/e/povray/iso/index.html
Among other interesting features this patch includes arbitrary parametric 
surfaces. For an explanation follow the link to the site
http://atrey.karlin.mff.cuni.cz/~0rfelyus/povray.html

I hope this helps
ThW

-- 
Tho### [at] uni-konstanzde
http://www.informatik.uni-konstanz.de/~willhalm/
Tschieses lavs ju


Post a reply to this message

From: Alan Grainger
Subject: Re: Math functions in POV
Date: 28 Apr 1998 15:16:28
Message: <6i59uj$7s9$1@oz.aussie.org>
I have a program which you type in a function in the form f(x,z) = sin(x^2 +
z^2), and it will outputs a smooth-triangle mesh for POV-Ray.  Since I don't
know the URL where you can find it, it is attached to the message after
this.

--
Alan Grainger
Member of DNRC
E-mail - scy### [at] geocitiescom
Homepage - http://alansworld.home.ml.org


Post a reply to this message

From: Alan Grainger
Subject: POV Graph [228k]
Date: 28 Apr 1998 15:18:02
Message: <6i5a4m$7sb$1@oz.aussie.org>
Here it is:

--
Alan Grainger
Member of DNRC
E-mail - scy### [at] geocitiescom
Homepage - http://alansworld.home.ml.org


Post a reply to this message


Attachments:
Download 'povgraph.zip' (228 KB)

From: Mark Arrasmith
Subject: Re: Math functions in POV [my .pov file]
Date: 28 Apr 1998 16:06:57
Message: <6i5cuk$80p$1@oz.aussie.org>
Well, Alan has a cooler solution than mine but here is how I work with 3d
math functions.  It uses standard triangles (not smoothed ones).  An image
of sin(x^2 + y^2) is at
http://arrow.math.twsu.edu/programming/pov/3dmath.jpg if you can to look.
The source is an attachment to this message.

Mark Arrasmith
arr### [at] mathtwsuedu


Daniel Sobral wrote in message <35457F16.1C7DF943@alfa.ist.utl.pt>...
>Does anyone knows how to make nice 3D graphics of mathematical
>functions of 2 variables? Ex: f(x,y) = sin(x^2 + y^2)
>I have seen the tutorials, but the results I got were awfull
>(I'm doing it with PovRay because it's cheaper)
>
>Thank you


Post a reply to this message


Attachments:
Download '3dmath.pov.txt' (5 KB)

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