POV-Ray : Newsgroups : povray.general : 24 bit heightfields : Re: 24 bit heightfields Server Time
30 Jul 2024 14:19:29 EDT (-0400)
  Re: 24 bit heightfields  
From: Reactor
Date: 11 Dec 2008 16:55:00
Message: <web.49418be0869f689f353f48a70@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> I generated the following heightfield in some program or other. It uses all 24
> bits for elevation information. My question is, how are the colors/height data
> organized? I would like to create a pigment that produces similar maps.
>
> http://i421.photobucket.com/albums/pp292/SharkD2161/Support/Untitled1_hf.png
>
> -Mike

I am intrigued by this idea.  I have been using hf_gray_16 in the past, and it
usually creates enough levels, but an hf_gray_24 might be pretty cool too.

From the documentation:
"When  hf_gray_16 is on, the output file will be in the form of a heightfield,
with the height at any point being dependent on the brightness of the pixel.
The brightness of a pixel is calculated in the same way that color images are
converted to grayscale images: height = 0.3 * red + 0.59 * green + 0.11 *
blue."

It'll take a bit of testing, but if it is that easy...

-Reactor


Post a reply to this message

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