POV-Ray : Newsgroups : povray.unofficial.patches : mod(x,2) not liked by 0.4 Server Time
1 Nov 2024 23:15:58 EDT (-0400)
  mod(x,2) not liked by 0.4 (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: mod(x,2) not liked by 0.4
Date: 26 Apr 2000 09:46:36
Message: <3906F232.CD9D3EA1@my-dejanews.com>
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

From: Gilles Tran
Subject: Re: mod(x,2) not liked by 0.4
Date: 26 Apr 2000 14:25:05
Message: <390734EC.48958850@inapg.inra.fr>
"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

From: Chris Huff
Subject: Re: mod(x,2) not liked by 0.4
Date: 26 Apr 2000 15:51:22
Message: <chrishuff_99-ABCE43.14542226042000@news.povray.org>
In article <390734EC.48958850@inapg.inra.fr>, Gilles Tran 
<tra### [at] inapginrafr> 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] 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

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