POV-Ray : Newsgroups : povray.binaries.images : Tree Photo (wip1) : Re: Tree Photo (wip1) Server Time
5 Nov 2024 04:27:20 EST (-0500)
  Re: Tree Photo (wip1)  
From: Thomas de Groot
Date: 17 Nov 2007 04:42:54
Message: <473eb79e$1@news.povray.org>
"Kirk Andrews" <kir### [at] tektonartcom> schreef in bericht 
news:web.473d9998b3ad60bdd21a49b0@news.povray.org...
>
> One thing I might suggest trying:  to add more interest to your grass, try 
> using
> a pigment function to vary the length and color of the grass.  For 
> example:
>
> #declare TheFunction =
> function {
>  pigment {
>    bumps
>    poly_wave 4
>    color_map {
>      [0 rgb 0 ]
>      [1 rgb 1 ]
>    }
>  }
> }
>
>
> And then, when you are planting your grass (through whatever method you 
> prefer):
>
> (if POS is the current grass position)
>
>  object {GRASS scale (1+TheFunction(POS.x,POS.y,POS.z).red) translate POS}
>
>
> Depending on how you've done your Grass object, you can use a similar 
> method to
> vary the color of your grass.
>
> Just something you might try.
>

Another, alternative, method you might like to try, is using RRand(A,B,seed) 
for putting some randomness in scale, position and color.

Thomas


Post a reply to this message

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