|
![](/i/fill.gif) |
James Taylor <jim### [at] blueyonder co uk> 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
|
![](/i/fill.gif) |