POV-Ray : Newsgroups : povray.general : Endogenic height field : Re: Endogenic height field Server Time
31 Jul 2024 16:23:13 EDT (-0400)
  Re: Endogenic height field  
From: Mike Williams
Date: 4 Dec 2006 00:27:06
Message: <GMTisRADD7cFFwer@econym.demon.co.uk>
Wasn't it Warp who wrote:
>Nicolas George <nicolas$george@salle-s.org> wrote:
>> I often felt the need of such a purely random height field, to serve as a
>> natural floor for a scene. I find the need for an external file somewhat
>> annoying: the file must either be carried around with the scene, or
>> re-generated, it is cumbersome.
>
>> I just found that patterns and pigments could be programatically queried
>> through the use of user-defined functions. Something like:
>
>> #declare height = function { pattern { wrinkles } }
>
>  Read the documentation more carefully. You can create a height_field
>from such a function without the need for an external image file.

Here's a comparison of using an isosurface vs using height_field with a
function.

http://www.econym.demon.co.uk/isotut/patterns.htm#hf

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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