|
 |
I just can't get this to work. Accuracy, method and max_gradient (over 2000)
have no effect at all. The artifact stays there.
The right half of the front-side of the box is shadowed. It depends on
the location of the camera (eg. if the camera is moved a bit to the right, the
shadowed area moves as well).
Another interesting effect happens when you uncomment the last light_source
in the example scene. Since it's inside the isosurface, it shouldn't illuminate
anything. However, it not only illuminates the isosurface itself but also
the floor.
Any explanation / fix suggestion?
---------8<---------8<---------8<---------8<---------8<---------8<------
#version Unofficial MegaPov 0.6;
#declare ObjectFunc =
function { pigment { boxed color_map { [0 rgb 1][0 rgb 0][1 rgb 0] } } }
isosurface
{ function { ObjectFunc(x,y,z) }
contained_by { box { -1.01,1.01 } }
max_gradient 2000
threshold .5
pigment { rgb x+y }
}
camera { location <0,5,-10>*.7 look_at 0 angle 35 }
light_source { <100,200,-150>, 1 }
plane { y,-1 pigment { checker rgb 1, rgb .5 } }
//light_source { 0, x }
---------8<---------8<---------8<---------8<---------8<---------8<------
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
 |