POV-Ray : Newsgroups : povray.beta-test : Translation question Server Time
31 Jul 2024 06:20:24 EDT (-0400)
  Translation question (Message 1 to 2 of 2)  
From: Patrick Dugan
Subject: Translation question
Date: 8 Sep 2001 15:00:07
Message: <3b9a6ab7@news.povray.org>
If this is not the appropriate place to post this, please don't kill me.
I'm not sure exactly where I should so bear with me...

I have a set of statements used with Megapov 0.7 and I want to use them
within the Povray 3.5 beta.  Here are the statements:

////////////////////////////////////////////// START OF STATEMENTS
//////////////////////////
#declare R0=4;
#declare FUNC1=function {"sphere",<R0>}
#declare TH=function{"TH"}
#declare R=function{"R"}
#declare R2=function{sqrt(x*x+z*z)}
#declare PH=function{"PH"}

#declare Meteor =
isosurface {
 function
{FUNC1(x,y+x*x*0.01,z)-max(noise3d(cos(TH)*sin(PH)*5,cos(PH)*5,sin(TH)*sin(P
H)*5)^1.5,0.05)*1.5}
 eval
 max_gradient 16.7
 contained_by{ sphere {<0,0,0>,R0+1.5}}
 accuracy 0.01
 texture {Meteor_Texture}
}
////////////////////////////////////////////// END OF STATEMENTS
//////////////////////////


I honestly did not come up with this function but simply modified one to get
what I wanted within Megapov.  I did change the #declares to these:

#declare R0=4;
#declare FUNC1=function {"sphere"(R0)}
#declare TH=function{"TH"(1)}
#declare R=function{"R"(1)}
#declare R2=function{sqrt(x*x+z*z)}
#declare PH=function{"PH"(1)}

and there are no errors reported with the declares now, but I know that
doesn't mean they are right.  Povray now reports that the function statement
within the isosurface is wrong and despite trying my best (which isn't much
at best.) I cannot get this working.  Can anyone show me what the whole
thing SHOULD look like?


Thank you.

Sincerely,
Patrick Dugan


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Translation question
Date: 8 Sep 2001 15:26:40
Message: <3b9a70f0@news.povray.org>
In article <3b9a6ab7@news.povray.org> , "Patrick Dugan" 
<pat### [at] netinsnet> wrote:

> and there are no errors reported with the declares now, but I know that
> doesn't mean they are right.  Povray now reports that the function statement
> within the isosurface is wrong and despite trying my best (which isn't much
> at best.) I cannot get this working.  Can anyone show me what the whole
> thing SHOULD look like?

The documentation would obviously the first place to look into for help:

In particular section 3.4.4, 6.1.6.x, 6.5.4.x and of course the sample
scenes that come with the beta.

The short answer to your problem is to simply remove the quotes.  For the
time of the beta version they have a different meaning that is not relevant
for the operation of POV-Ray.


    Thorsten


Post a reply to this message

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