POV-Ray : Newsgroups : povray.unofficial.patches : Error Using MegaPOV : Error Using MegaPOV Server Time
2 Nov 2024 09:20:47 EDT (-0400)
  Error Using MegaPOV  
From: David Heys
Date: 20 Dec 1999 16:59:37
Message: <385EA54D.29FF3D14@gci.net>
Why is it that the following code works fine in Superpatch, but
generates an error (cannot load function (Pig1)) in Megapov (version
0.1)?

///////////////////////////////////
#include "colors.inc"

camera{
 location <0,2,-15>
 look_at <0,2,0>
}

light_source{
 <40,30,-25>
 rgb 1
}

plane {y,-10
 pigment {
  checker
  pigment {Wheat}
  pigment {rgb<0.46,0.42,0.4>}
  scale 18
 }
 rotate 45*y
 hollow
}

#declare Pig1=
 function{
  pigment{
   bozo
   color_map{[0 rgb 1][1 rgb 0]}
   scale .3
  }
 }

isosurface {
 function {(x^2+z^2)/8 +(Pig1( (x/4) , (y/6) , (z/4) )*0.5)}
 bounded_by {sphere {0,8}}
 sign 1
 threshold 1
 max_gradient 15
 scale <1,3,1>
 pigment {Goldenrod}
}
/////////////////////////////////////////////

--
Keeper of the family pets.
"You want fish? I got fish. I got fish, and eels, and turtles, and
snails, and frogs, and dragons and cats..."


Post a reply to this message

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