POV-Ray : Newsgroups : povray.binaries.images : grass macro Server Time
14 Aug 2024 01:19:28 EDT (-0400)
  grass macro (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
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 10 Messages Goto Initial 10 Messages

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