POV-Ray : Newsgroups : povray.advanced-users : Get function from a height_field to define height dependent colors? : Get function from a height_field to define height dependent colors? Server Time
28 Jul 2024 10:30:49 EDT (-0400)
  Get function from a height_field to define height dependent colors?  
From: Icetoaster
Date: 18 May 2006 17:35:01
Message: <web.446ce78e2fa6fdce71103870@news.povray.org>
Hi,

I like evaluate values from a height_field image:
something like
#declare f=function(x,y) { height_field { tga "mountains.tga" } }

with x,y between [0,1].

Is this possible?

I like to use this function to define colors dependent from the height
(e.g. starting with blue for sea level, green for middle values, gray for
high values, and white for snow on top of the mountains.

A second idea is to calculate a gradient from this function, in order to
define the color from the steepness of the landscape (e.g. on steep
passages there is no grass because there is no soil...).

Thanks for help,
Icetoaster


Post a reply to this message

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