|
![](/i/fill.gif) |
Nicolas Alvarez wrote:
> I put the image directly into a heightfield, and I think I got the correct
> height, but only at 16 bits. I can't see any way (without hacking the
> code) to get 24 bits of precision in a heightfield.
>
> The only way to put data in a heightfield without passing a filename is
> using bitmap functions (function 200,200 { ... }), and those also support
> only 16-bit.
But using some creative coding, I can get an isosurface out of a
heightfield. I lose almost all interpolation though; it looks like a
heightfield without the "smooth" parameter.
Isosurface function:
function(x,y,z) {
y -
Map(x,y,z).red +
Map(x,y,z).green / 256.0 +
Map(x,y,z).blue / 65536.0
}
Post a reply to this message
|
![](/i/fill.gif) |