POV-Ray : Newsgroups : povray.general : tile-able hieghtfields : Re: tile-able hieghtfields Server Time
5 Aug 2024 00:18:08 EDT (-0400)
  Re: tile-able hieghtfields  
From: Warp
Date: 10 Jan 2003 20:17:52
Message: <3e1f70c0@news.povray.org>
James Taylor <jim### [at] blueyondercouk> wrote:
> The basic end result I'm aiming for is a round_box

  I would say that the best and more versatile thing you could do is
to create a HF_RoundBox() macro which creates a mesh-heightfield with
the shape of a rounded box, with the same principle as the other HF_*
macros.
  Of course it's a rather laborious job to do, specially if you are
not very strong at math, but by looking at how the other HF_* macros
are made, it shouldn't be too difficult.
  I would say that the HF_Sphere() macro is closest to what you want to
do. Copying and modifying it might be the easiest way.

  Of course you can ask the author of the macros to kindly help you... :)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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