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
|