|
 |
In article <3A0B61CC.86B37226@hotmail.com>, Pabs <pab### [at] hotmail com>
wrote:
> Why not just use shaders to specify the isosurface funcs?
I assume you mean replace functions with shaders...that would most
likely be slower. Isosurface functions are designed to take a simple
equation and return a float value, shaders take all sorts of
instructions and calculate a color. It would also be harder to write the
scene code...functions are a lot simpler than shaders.
I think a syntax like this would be most useful:
#declare Sphere =
function(x, y, z, Px, Py, Pz, R)
{
r - sqrt((x-Px)^2 + (y-Py)^2 + (z-Pz)^2)
}
The "x, y, z" variables would be the default, but you could specify your
own variables to use instead.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |