POV-Ray : Newsgroups : povray.binaries.images : grass macro Server Time
14 Aug 2024 01:19:05 EDT (-0400)
  grass macro (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Marc Jacquier
Subject: Re: grass macro
Date: 21 Jan 2003 11:42:59
Message: <3e2d7893@news.povray.org>
Mnnn smells good :)
suggestion: soil fertility based on pigment determining color and growth.

Marc


3e2d602e@news.povray.org...
> Yes I plan on making it available.
>
> features (at the moment):
> -Two methods of placement (random scatter and grid)
> -Use of pigment for placement
> -All blades are unique with random bend and length
> -Everything is traced
>
> features (I plan on adding):
> -more control over the properties of the blades (At the moment it's only
> setup for my irtc entry)
> -color control
> -wind
> -I'm taking suggestions
>
> --
> Kevin
> http://www.geocities.com/qsquared_1999/
> #macro _(r)#if(r<12)#local i=asc(substr("oqshil
> acefg",r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
> pigment{rgb 10}}_(r+1)#end#end _(1)//KL
>
>


Post a reply to this message

From: Slashdolt
Subject: Re: grass macro
Date: 21 Jan 2003 12:05:05
Message: <web.3e2d7cd28cb0cca55543301f0@news.povray.org>
Looks very nice.

Something that I've been experimenting with using GT's grass macro is to
create a set of green grass, and then a set of dead grass within it, by
simply making them both occupy the same space.  The end result seems to look
much more realistic.  Probably by adding some yellowish, some brown, etc.,
the realism could even be enhanced further.

I could post an example, if I can ever figure out how to get my newsreader
working... :-/

Slash


Post a reply to this message

From: John Smith
Subject: Re: grass macro
Date: 21 Jan 2003 12:10:00
Message: <3e2d7ee8$1@news.povray.org>
"Kevin Loney" <klo### [at] pt2mcom> wrote

> -I'm taking suggestions

-Animatable wind
-Animatable growth, seasonal colors and geometry
-One of those solar powered automatic mowers


Post a reply to this message

From: Ross Litscher
Subject: Re: grass macro
Date: 21 Jan 2003 12:52:52
Message: <3e2d88f4$1@news.povray.org>
Slashdolt <nomail@nomail> wrote in message
news:web.3e2d7cd28cb0cca55543301f0@news.povray.org...
> Looks very nice.
>
> Something that I've been experimenting with using GT's grass macro is to
> create a set of green grass, and then a set of dead grass within it, by
> simply making them both occupy the same space.  The end result seems to
look
> much more realistic.  Probably by adding some yellowish, some brown, etc.,
> the realism could even be enhanced further.
>
> I could post an example, if I can ever figure out how to get my newsreader
> working... :-/
>
> Slash
>
>
>

thats a good idea. it seems shorter, young blades of grass are whitish-green
in color. the random length that is in this macro would be accentuated with
color variation, i think.


ross


Post a reply to this message

From: Shay
Subject: Re: grass macro
Date: 21 Jan 2003 14:20:34
Message: <3e2d9d82@news.povray.org>
"Kevin Loney" <klo### [at] pt2mcom> wrote in message
news:3e2cdf5f@news.povray.org...
> something I'm working on for my irtc entry. 5000 blades of grass, less
than
> 20 minutes to render. comments, criticisms, suggestions?
>

Looks very nice. How many triangles per blade of grass?

 -Shay


Post a reply to this message

From: Carn
Subject: Re: grass macro
Date: 21 Jan 2003 15:50:05
Message: <web.3e2db1618cb0cca5bdeecd0a0@news.povray.org>
Shay wrote:
>
>Looks very nice. How many triangles per blade of grass?
>
> -Shay
>

Who said anything about triangles =) Each blade is a union of four cones, I
plan on changing it to meshes however, cones were easier to implement at
the time.

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshil
acefg",r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
pigment{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message

From: Greg Edwards
Subject: Re: grass macro
Date: 22 Jan 2003 15:37:50
Message: <13qd9sqs418os.1pyvpmv78gdgr$.dlg@40tude.net>
On Tue, 21 Jan 2003 15:45:22 EST, Carn wrote:

> Shay wrote:
>>
>>Looks very nice. How many triangles per blade of grass?
>>
>> -Shay
>>
> 
> Who said anything about triangles =) Each blade is a union of four cones, I
> plan on changing it to meshes however, cones were easier to implement at
> the time.

Try sphere_sweeps. It would be slow but look great!


Post a reply to this message

From: Gail Shaw
Subject: Re: grass macro
Date: 23 Jan 2003 15:03:08
Message: <3e304a7c@news.povray.org>
"Kevin Loney" <klo### [at] pt2mcom> wrote in message
news:3e2cdf5f@news.povray.org...
> something I'm working on for my irtc entry. 5000 blades of grass, less
than
> 20 minutes to render. comments, criticisms, suggestions?
>
> --

Very nice. What's the memory usage?

Gail
--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)///GS


Post a reply to this message

From: Kevin Loney
Subject: Re: grass macro
Date: 23 Jan 2003 15:48:16
Message: <3e305510@news.povray.org>
these are the stats for 5000 blades of grass without rad or the isosurface
that
I used for the ground

----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Cone/Cylinder                   454979           38580      8.48
Isosurface                      109192          109192    100.00
Isosurface Container            109192          109192    100.00
Bounding Box                   6009716          800041     13.31
Vista Buffer                  14963855        10388767     69.43
----------------------------------------------------------------------------
Smallest Alloc:                 25 bytes   Largest:           786456
Peak memory used:         21574535 bytes
----------------------------------------------------------------------------
Time For Parse:    0 hours  3 minutes  33.0 seconds (213 seconds)
Time For Trace:    0 hours  0 minutes   6.0 seconds (5 seconds)
    Total Time:    0 hours  3 minutes  38.0 seconds (218 seconds)
----------------------------------------------------------------------------

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg"
,r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
pigment{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message

From: Andrew Coppin
Subject: Re: grass macro
Date: 23 Jan 2003 16:39:57
Message: <3e30612d@news.povray.org>
Well, I'm impressed!

Nice work.
Andrew.


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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