POV-Ray : Newsgroups : povray.newusers : Grass (New Problem) : Re: Grass (New Problem) Server Time
30 Jul 2024 20:26:19 EDT (-0400)
  Re: Grass (New Problem)  
From: Gilles Tran
Date: 18 Sep 2003 05:36:24
Message: <3f697c98$1@news.povray.org>

news:3f68fccf@news.povray.org...
>
> Would that be correct then? Just alternate the #include line between
> grass patches?
>

No, just parse and declare the patch once and then use the resulting object
as many times as you want.
#declare MyGrass=object{#include "fgrass1.inc" texture{...}}

object{MyGrass translate ... rotate ...}
object{MyGrass translate ... rotate ...}
object{MyGrass translate ... rotate ...}

In fact there's a makeprairie macro at the end of the main macro file that
does exactly that, but of course you can write the patch placement loop
yourself so that the grass goes where you want it to be.

G.

-- 

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

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