POV-Ray : Newsgroups : povray.bugreports : Function bug with POV-Ray 3.7.1-alpha.8638272 Ubuntu 14.04 : Function bug with POV-Ray 3.7.1-alpha.8638272 Ubuntu 14.04 Server Time
25 Apr 2024 10:21:23 EDT (-0400)
  Function bug with POV-Ray 3.7.1-alpha.8638272 Ubuntu 14.04  
From: William F Pokorny
Date: 16 Jun 2016 10:25:03
Message: <5762b6bf$1@news.povray.org>
The code that follows should be rendering a sphere, but it doesn't for 
me in POV-Ray 3.7.1-alpha.8638272. It would be useful if others running 
the current master branch could confirm whether the same is seen - 
especially if seen in windows. Thanks.

Bill P.

//---------------------- Start SDL ----------------------------
// Function bug with POV-Ray 3.7.1-alpha.8638272 Ubuntu 14.04
global_settings { assumed_gamma 1 }
background { color rgb <0.5,0.5,0.5> }
camera { location <0,0,-12> look_at 0 sky y }
light_source { <100,300,-100> 1 }
#declare fn00 = function(x,y,z,r) { -exp(-(x*x+y*y+z*z)/r) }
#declare fn01 = function(x,y,z,r) { -exp(-(x*x+y*y+z*z)/r)+0.005 }
#declare fn02 = function(x,y,z,r) { -exp(-(x*x+y*y+z*z)/r)+0.00005 }
#declare fn03 = function(x,y,z,r) { -exp(-(x*x+y*y+z*z)/r)+0.000005 }
isosurface {
   function { fn00(x,y,z,1) }
   contained_by { box { -3,3 } }
   threshold -0.09
   accuracy 0.001
   max_gradient 2.0
   pigment { rgb <0.7,0.4,0.1> }
   finish { phong 1 }
}

// 3.7-stable and 3.6.1 render the sphere.
// Believe -0.00012340980408667956 is max value at container side.
// fn01=fn03 suggests values coming back too negative.
// Tried compile with optimization/fastmath off and no change.
//------------------- End SDL ----------------------------


Post a reply to this message

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