POV-Ray : Newsgroups : povray.general : 3d functions Server Time
10 Aug 2024 01:24:24 EDT (-0400)
  3d functions (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Pabs
Subject: Re: 3d functions
Date: 14 May 2000 22:50:29
Message: <391F661A.190894C5@hotmail.com>
Tom Melly wrote:

> I'm looking for 3d functions and images of the results of those functions -
> anyone know a good link?
>
> The sort of thing I'm after is z = x^2 + y^2

If you want to render those functions you might try the parametric surfaces
available in MegaPOV
-something like
parametric{
function u ,  v, u^2+ v^2
0 , 1
-1,1
}


Post a reply to this message

From: Tom Melly
Subject: Re: 3d functions
Date: 15 May 2000 04:58:29
Message: <391fbc35$1@news.povray.org>
"Pabs" <pab### [at] hotmailcom> wrote in message
news:391F661A.190894C5@hotmail.com...
>
> If you want to render those functions you might try the parametric
surfaces
> available in MegaPOV
> -something like
> parametric{
> function u ,  v, u^2+ v^2
> 0 , 1
> -1,1
> }
>

Sounds good and thanks for the help everyone - I was playing with using
formulas to generate the y value for a bicubic_patch -

for example

#macro ReturnY(nNum, rNum)
  #local nTemp1 = (nNum/200)+1;
  #local rTemp1 = (rNum/200)+0;
  #local loopCount = 0;
  #while (loopCount < 5)
    #local nTemp2 = 2*(nTemp1 * rTemp1);
    #local rTemp2 = (rTemp1 * rTemp1) - (nTemp1 * nTemp1);
    #if (rTemp2 > 1)
      #local rTemp2 = rTemp2 - 0.5;
    #end
    #local nTemp1 = nTemp2;
    #local rTemp1 = rTemp2;
    #local loopCount = loopCount + 1;
  #end
  #declare yResult = rTemp1 * 10; // this is the final result
#end

#macro MakePatch(xOffset, zOffset, wavePigment)
  object {
    bicubic_patch { type 1 flatness 0.01 u_steps 3 v_steps 3,
      #local zPos = 0;
      #while (zPos < 4)
        #local xPos=0;
        #while (xPos<4)
          ReturnY(zPos+zOffset, xPos+xOffset)
//          #debug concat("Y Value is:",str(yResult,5,25),"\n")
          <xPos+xOffset, yResult, zPos+zOffset>
          #local xPos = xPos + 1;
        #end
        #local zPos = zPos + 1;
      #end
      pigment{wavePigment}
      finish{ambient 0.5}
    }
  }
#end


Post a reply to this message

From: Chris Huff
Subject: Re: 3d functions
Date: 15 May 2000 07:52:18
Message: <chrishuff_99-B0DD8F.06554715052000@news.povray.org>
In article <391F661A.190894C5@hotmail.com>, Pabs <pab### [at] hotmailcom> 
wrote:

> If you want to render those functions you might try the parametric 
> surfaces available in MegaPOV

Actually, for this particular one, I would use the isosurface.
isosurface {
    function {x^2 + y^2 - z}
    threshold 0
    ...
}
Though there are a lot of equations only suitable for parametric shapes.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Gail Shaw
Subject: Re: 3d functions
Date: 15 May 2000 10:26:58
Message: <39200932@news.povray.org>
Bill DeWitt wrote in message <391d46c0@news.povray.org>...
>
>"Tom Melly" <tom### [at] tomandluf9couk> wrote in message
>news:391c20e0@news.povray.org...
>> I'm looking for 3d functions and images of the results of those
>functions -
>> anyone know a good link?
>>
>> The sort of thing I'm after is z = x^2 + y^2
>>
>>
>
>    I can't find the link or discussion now, but I remember that Gail was
>talking to me about how to convert some formulas from a page into
isosurface
>formats. Maybe you can find the discussion and the link is there...
>


Unfortunatly that discussion was in the middle of March in p.o-t (subject
French curves)
so it's long gone.

try http://www.astro.virginia.edu/~eww6n/math/math0.html    (CRC Concise
Encyclopedia of Mathematics)
or http://www.kampsax.dtu.dk/~ra/polyhedra/polyhedra.html

Maybe Ken can help.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Alexander Enzmann
Subject: Re: 3d functions
Date: 15 May 2000 11:23:57
Message: <392017A4.A16E98B6@mitre.org>
Pabs wrote:
> 
> Tom Melly wrote:
> 
> > I'm looking for 3d functions and images of the results of those functions -
> > anyone know a good link?
> >
> > The sort of thing I'm after is z = x^2 + y^2
> 
> If you want to render those functions you might try the parametric surfaces
> available in MegaPOV
> -something like
> parametric{
> function u ,  v, u^2+ v^2
> 0 , 1
> -1,1
> }

Why on earth would you want to use an Isosurface when the guy asked for
a paraboloid?  The built in quadrics will suffice (and be a tad faster
to boot).

Xander


Post a reply to this message

From: Ron Parker
Subject: Re: 3d functions
Date: 15 May 2000 12:37:41
Message: <slrn8i0al2.3oh.ron.parker@linux.parkerr.fwi.com>
On Mon, 15 May 2000 10:33:09 +0200, Gail Shaw wrote:
>
>Unfortunatly that discussion was in the middle of March in p.o-t (subject
>French curves)
>so it's long gone.

Not necessarily.  I have a complete archive of that group, starting
sometime around March 7.  If you'd like me to mail it or repost it,
just say the word.

Obviously, for copyright and other reasons, I won't mail it or repost it
for just anyone; Gail will have to approve.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
These are my opinions.  I do NOT speak for the POV-Team.


Post a reply to this message

From: Peter Popov
Subject: Re: 3d functions
Date: 15 May 2000 16:58:54
Message: <5sl0isgrmnb7ei0i2mcofqse94ef253slo@4ax.com>
On Mon, 15 May 2000 10:33:09 +0200, "Gail Shaw" <gsh### [at] monotixcoza>
wrote:

>Unfortunatly that discussion was in the middle of March in p.o-t (subject
>French curves)
>so it's long gone.

I have a complete archive of the messages on this server and I found
the posts in question. Ron has one, too, but I don't know if he
started doing his in time to have this thread (but I guess he'll reply
if he does anyway :) ). Drop me a line if you want it reposted.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Chris Huff
Subject: Re: 3d functions
Date: 15 May 2000 17:25:30
Message: <chrishuff_99-E75507.16290015052000@news.povray.org>
In article <392017A4.A16E98B6@mitre.org>, xan### [at] mitreorg wrote:

> Why on earth would you want to use an Isosurface when the guy asked for
> a paraboloid? 

Ease of use(you can use the equation directly, instead of typing in a 
bunch of coefficients), more flexibility if it ever needs to be more 
than a plain paraboloid.


> The built in quadrics will suffice (and be a tad faster to boot).

They might be faster...but maybe not. This is a pretty simple equation, 
and remember that isosurface superellipsoids often render faster than 
the superellipsoid primitive. The quadric primitive might be similar.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Ken
Subject: Re: 3d functions
Date: 15 May 2000 17:35:35
Message: <39206D12.C87A2751@pacbell.net>
Tom Melly wrote:
> 
> I'm looking for 3d functions and images of the results of those functions -
> anyone know a good link?
> 
> The sort of thing I'm after is z = x^2 + y^2

Some of these might help...

http://www.multimania.com/artphil/

http://members.aol.com/stbenge/iso_shapes/iso_shapelib.html

http://www.uib.no/People/nfytn/mathgal.htm

http://www.3dvue.net/doc/objets.htm

http://www.ipfw.edu/math/Coffman/steinersurface.html

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Ken
Subject: Re: 3d functions
Date: 15 May 2000 17:41:13
Message: <39206E63.ED16E038@pacbell.net>
see also: http://www.swin.edu.au/astronomy/pbourke/

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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