POV-Ray : Newsgroups : povray.general : isosurface bushes : Re: isosurface bushes Server Time
31 Jul 2024 18:25:58 EDT (-0400)
  Re: isosurface bushes  
From: albe99
Date: 27 Dec 2006 06:25:00
Message: <web.4592570c2eebb3e0df6ff5fd0@news.povray.org>
Jaime Vives Piqueres <jai### [at] ignoranciaorg> wrote:
> Hi Alberto:
>
> >
http://www.ignorancia.org/uploads/tools-and-objects/geomorph/wips/demo_geomorph-08.jpg
> >
> > so, how can I create isosurface bushes like those?
>
>    Those are very simple:
>
> #declare tree1=
> isosurface{
>   function{f_sphere(x,y,z,1) + f_granite(x*.125,y*.125,z*.125)*.9 -
> f_granite(x*2,y*2,z*2)*.9}
>   max_gradient 1
>   contained_by{sphere{0,2}}
>   texture{t_tree1}
>   double_illuminate
> }
>
>    and the texture is a simple granite pattern with several greens on
> the  color map. About placing them over the landscape, see the trace()
> function on the docs: it's very easy to use against any object (a
> heightfield in this case).
>
> --
> Jaime

very good! now I can try to make it...thank you very much for this useful
code..
Alberto.


Post a reply to this message

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