POV-Ray : Newsgroups : povray.general : Converting function syntax to 3.5 : Converting function syntax to 3.5 Server Time
4 Aug 2024 22:18:15 EDT (-0400)
  Converting function syntax to 3.5  
From: Xplo Eristotle
Date: 30 Jan 2003 19:14:39
Message: <3e39bfef@news.povray.org>
So I've got this scene written for MegaPOV 0.7 with the following code 
in it:

#declare worldnet5 = function
   {
   pigment
     {
     marble
     color_map
       {
       [ 0.0 color rgb 0 ]
       [ 1.0 color rgb 1 ]
       }
     rotate <0, 0, 90>
     }
   }

#declare worldnet7 = function { pigment { radial frequency 48 turbulence 
4 } }

#declare worldnet9 = function { (min(worldnet7+.9, worldnet5) * 
(worldnet7 * worldnet5)^3) * 100 }

...and I was trying to make it work in POV-Ray 3.5. Well, changing the 
power operator to pow() was a no brainer, but it kept giving me parsing 
errors for worldnet9, no matter how I tried to fix it. Finally I gave up 
and looked through the documentation to see exactly what was going 
wrong. The documentation is far from easy reading, but the impression 
that I got was that what I'm trying to do may not be possible at all.

As far as I'm concerned, whoever changed functions for 3.5 butchered a 
perfectly good syntax.. but that's not the point, the point is, *is* it 
possible to write this function in 3.5, and if so, how should it look?

-Xplo


Post a reply to this message

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