POV-Ray : Newsgroups : povray.unofficial.patches : Platform-dependent isosurfaces? : Re: Platform-dependent isosurfaces? Server Time
2 Sep 2024 06:19:52 EDT (-0400)
  Re: Platform-dependent isosurfaces?  
From: Alex Vandiver
Date: 23 Apr 2000 00:18:35
Message: <39027933.16BDF1E8@tiac.net>
Well, I have found the culprit.  In a way, it *IS* an accuracy problem -- more
specifically, it is a division by zero problem.  The following code produces the
problem a little more handily:

#version unofficial MegaPov 0.4;
isosurface{
  function{(1/0)}
  contained_by {sphere{0,1}}
  threshold .5 pigment {rgb 0} finish {ambient 0}
}
camera {location <2,0,0> up y look_at <0,0,0>}

Apparently the Solaris and Linux compiles freak out upon seeing the division by
zero and return white -- no matter the color they are "supposed" to return.
Interestingly, adding "method 2" to the above isosurface "fixes" the problem, but
probably only because of the low value of MaxGradient.  Is there a test which
could be added to the method 1 section to stop infinite values from "whiting out"
the isosurface?
-Alex V.


Post a reply to this message

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