POV-Ray : Newsgroups : povray.newusers : Help! Server Time
6 Sep 2024 02:21:36 EDT (-0400)
  Help! (Message 1 to 5 of 5)  
From: Psychomek
Subject: Help!
Date: 3 Jun 1999 03:31:04
Message: <3756211B.94B93D21@cyberhighway.net>
Is there ANY tutorials about how to map out mathematical equations in
povray?
Like G=R/((sin R^2+y)/(cos(phi)*(sqrt(phi*z)))) {I think this equation
is right had to convert from proper format to linear format and i took
part of the equation form My Electronic Math book from college} please
if anyone can help please do so!


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

From: Bob Hughes
Subject: Re: Help!
Date: 3 Jun 1999 11:59:43
Message: <37569842.2ABA4968@aol.com>
G=
  R/  //all below is calculated then divided into R
    (  //D
     (  //C
      sin(R^2+y)/ //third
       (  //B
        cos(phi)*  //second
         (  //A
          sqrt(phi*z)  //first, due to being deepest enclosed part
         )  //A
       )  //B
     )  //C
    )  //D

You had a missing parenthesis after "sin", typo? Other than that I'm
clueless, I always surround everything I can with parenthesis when in
doubt about which will get applied first, second, etc. Doing as I did here
shows how the parts go together, like I often do when writing any other
statement out. Although here I've labeled it all too.
The following URL was interesting to find, has a link to the POV-Ray
Online
Tutorial amid some other mathematical links.

http://tqd.advanced.org/teacherscorner/geometry.html

http://home.pacbell.net/tylereng/links.htm#Math

In the same search I got the Ken Tyler links web page, above.
Hope I've done the example correctly, even if absurd; who's next to step
in and show the way? (and greatly more qualified to do so)


Psychomek wrote:
> 
> Is there ANY tutorials about how to map out mathematical equations in
> povray?
> Like G=R/((sin R^2+y)/(cos(phi)*(sqrt(phi*z)))) {I think this equation
> is right had to convert from proper format to linear format and i took
> part of the equation form My Electronic Math book from college} please
> if anyone can help please do so!

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

From: Spider
Subject: Re: Help!
Date: 3 Jun 1999 14:46:55
Message: <3756BF7C.CAAB5E0F@bahnhof.se>
Psychomek wrote:
> 
> Is there ANY tutorials about how to map out mathematical equations in
> povray?
> Like G=R/((sin R^2+y)/(cos(phi)*(sqrt(phi*z)))) {I think this equation
> is right had to convert from proper format to linear format and i took
> part of the equation form My Electronic Math book from college} please
> if anyone can help please do so!
Map out ?? I'm afraid I don't understand..

is it the isosurface patch you are meaning ?? or how to take a equation
and generate xyz coords from it's returns? please tell me more.

//Spider


Post a reply to this message

From: david sharp
Subject: Re: Help!
Date: 3 Jun 1999 20:09:09
Message: <37570AE9.3A4A@interport.net>
Psychomek wrote:
> 
> Is there ANY tutorials about how to map out mathematical equations in
> povray?
> Like G=R/((sin R^2+y)/(cos(phi)*(sqrt(phi*z)))) 
[ ... ]

Well, I don't know of a tutorial, and this reply is sure not meant to
be one, but you could make, as a most straightforward possibility,
a 'landscape' with z and y being coordinates on a plane and the
resulting value of G being used to give the height above the 
plane. then you could put a little sphere there (at <y,G,z>)
Do this for enough y,z pairs and you have a 'G landscape'. or
make the 'G landscape' over a R, phi plane. 
A problem you will have to solve is that your formula appears to
define a 4-d landscape so you will have to do something with
two of R,phi,z,y like hold them at a constant value (eg R=1, phi=1)
while letting the other two vary.

What I am describing would look something like this in your
scene file:

#declare z=1; // will be held constant
#declare y=1; // "    "   "    "
#declare R=0;

union{
  #while (R < 2)
	#declare phi=0;	
	#while(phi<=2*pi)
		#declare G=R/((sin (R^2+y))/(cos(phi)*(sqrt(phi*z))));
		sphere {<R*cos(phi),G,R*sin(phi)>, .1}
		#declare phi=phi+.02;
	#end
	#declare R=R+.02;
  #end

  pigment{Yellow}
}

Be aware that I just pulled the numbers out of my, uhm, ear
and they have no significance or pretense at being appropriate.


Post a reply to this message

From: Psychomek
Subject: Re: Help!
Date: 3 Jun 1999 23:12:13
Message: <375735EE.342A763A@cyberhighway.net>
Spider wrote:

> Psychomek wrote:
> >
> > Is there ANY tutorials about how to map out mathematical equations in
> > povray?
> > Like G=R/((sin R^2+y)/(cos(phi)*(sqrt(phi*z)))) {I think this equation
> > is right had to convert from proper format to linear format and i took
> > part of the equation form My Electronic Math book from college} please
> > if anyone can help please do so!
> Map out ?? I'm afraid I don't understand..
>
> is it the isosurface patch you are meaning ?? or how to take a equation
> and generate xyz coords from it's returns? please tell me more.
>
> //Spider

It is an Isosurface patch i want to do and and as for David Sharp's post it
is a 4 dimensions (and "morphing" Isosurface patch).  but bear in mind i am
new to animation and hope i can figure this out.


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

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