POV-Ray : Newsgroups : povray.general : 24 bit heightfields : Re: 24 bit heightfields Server Time
30 Jul 2024 20:25:49 EDT (-0400)
  Re: 24 bit heightfields  
From: Nicolas Alvarez
Date: 11 Dec 2008 19:25:20
Message: <4941af6f@news.povray.org>
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

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