POV-Ray : Newsgroups : povray.general : isosurface bushes Server Time
28 Nov 2024 12:35:00 EST (-0500)
  isosurface bushes (Message 1 to 5 of 5)  
From: albe99
Subject: isosurface bushes
Date: 26 Dec 2006 11:25:01
Message: <web.45914c76ecda17eeb5468cb60@news.povray.org>
I see this at Jaime Vives Piqueres's site:
http://www.ignorancia.org/uploads/tools-and-objects/geomorph/wips/demo_geomorph-08.jpg

so, how can I create isosurface bushes like those? and particullary, how can
I displace the brushes on the landscape? (I'd like to see a code sample..)

I hope someone can help me..thank you very much..
Alberto.


Post a reply to this message

From: Thomas de Groot
Subject: Re: isosurface bushes
Date: 27 Dec 2006 03:06:25
Message: <45922981$1@news.povray.org>
"albe99" <alb### [at] hotmailit> schreef in bericht 
news:web.45914c76ecda17eeb5468cb60@news.povray.org...
>I see this at Jaime Vives Piqueres's site:
>
http://www.ignorancia.org/uploads/tools-and-objects/geomorph/wips/demo_geomorph-08.jpg
>
> so, how can I create isosurface bushes like those? and particullary, how 
> can
> I displace the brushes on the landscape? (I'd like to see a code sample..)
>

For placing objects on a surface, use the trace() function. There are demo 
scenes coming with POV-Ray in the scenes\language directory. Also, see the 
thread "Use slope pattern for planting distribution?" in the 
povray.advanced-users. On 13-12-2006 I put there a piece of code that does 
it. Please read also the whole thread as there is info there.... and see the 
relevant documentation of course :-)

Thomas


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: isosurface bushes
Date: 27 Dec 2006 05:57:53
Message: <459251b1$1@news.povray.org>
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


Post a reply to this message

From: albe99
Subject: Re: isosurface bushes
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

From: albe99
Subject: Re: isosurface bushes
Date: 27 Dec 2006 08:30:00
Message: <web.459274fe2eebb3e08893b8490@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote:
> For placing objects on a surface, use the trace() function. There are demo
> scenes coming with POV-Ray in the sceneslanguage directory. Also, see the
> thread "Use slope pattern for planting distribution?" in the
> povray.advanced-users. On 13-12-2006 I put there a piece of code that does
> it. Please read also the whole thread as there is info there.... and see the
> relevant documentation of course :-)
>
> Thomas

...very interesting..thank you Thomas..
Alberto.


Post a reply to this message

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