POV-Ray : Newsgroups : povray.binaries.images : grass macro Server Time
13 Aug 2024 19:22:34 EDT (-0400)
  grass macro (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: Kevin Loney
Subject: grass macro
Date: 21 Jan 2003 00:49:19
Message: <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?

--
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


Attachments:
Download 'grass.jpg' (236 KB)

Preview of image 'grass.jpg'
grass.jpg


 

From: Mike Williams
Subject: Re: grass macro
Date: 21 Jan 2003 01:21:22
Message: <3e2ce6e2@news.povray.org>
Will you be making this macro available?

"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?
>
> --
> 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: Marc Jacquier
Subject: Re: grass macro
Date: 21 Jan 2003 03:58:22
Message: <3e2d0bae$1@news.povray.org>
Yess great :)
May we have an idea of the features of your macro (use of trace? image_map
mask? anyelse?)
Marc

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?
>
> --
> 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: Kevin Loney
Subject: Re: grass macro
Date: 21 Jan 2003 09:58:54
Message: <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: 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

Goto Latest 10 Messages Next 4 Messages >>>

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