|
![](/i/fill.gif) |
The following scene bombs out with an error message:
#version unofficial MegaPov 0.4
#include "colors.inc"
isosurface{
// function {pow(x,2)} also bombs out
// function {sin(x)} does not bomb out.
function {mod(x,2)}
threshold 10
accuracy 0.01
contained_by
{sphere {0, 160}}
pigment {Green}
}
camera
{
location <0, 5, -300>
look_at <0, 5, 0.0>
}
light_source {<12, 3, -51.8056> color White}
light_source {<0, 2251.8056, 0> color White}
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Greg M. Johnson" wrote:
> The following scene bombs out with an error message:
>
> #version unofficial MegaPov 0.4
> #include "colors.inc"
> isosurface{
> // function {pow(x,2)} also bombs out
> // function {sin(x)} does not bomb out.
> function {mod(x,2)}
This is due to the fact that the functions supported in the former
isosurface patch were different from the ones in the official version
and it's still partly the case in Megapov. The list of functions
supported by function{} can be found in the Megapov doc, and at least
pow can be expressed by ^.
G.
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <390734EC.48958850@inapg.inra.fr>, Gilles Tran
<tra### [at] inapg inra fr> wrote:
> This is due to the fact that the functions supported in the former
> isosurface patch were different from the ones in the official version
> and it's still partly the case in Megapov. The list of functions
> supported by function{} can be found in the Megapov doc, and at least
> pow can be expressed by ^.
Another (apparently undocumented) feature in MegaPOV is the ability to
use the ^ operator outside isosurface functions.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |