POV-Ray : Newsgroups : povray.newusers : suggestions for grass Server Time
14 Nov 2024 14:17:49 EST (-0500)
  suggestions for grass (Message 1 to 8 of 8)  
From: Roy Lane
Subject: suggestions for grass
Date: 31 Aug 1998 18:43:29
Message: <35EB1895.21B16666@concentric.net>
Can anyone give me a good suggestion for creating a lawn in a scene?

Real newbie here so don't be afraid to talk down to my level.

Roy


Post a reply to this message

From: K  Tyler
Subject: Re: suggestions for grass
Date: 31 Aug 1998 18:54:20
Message: <35EB1B21.84E33C62@pacbell.net>
Roy Lane wrote:

> Can anyone give me a good suggestion for creating a lawn in a scene?
>
> Real newbie here so don't be afraid to talk down to my level.
>
> Roy

  Go to povray.binaries.images and download the grass
image map image I posted there a week ago. If you don't
understand how to apply it let me know and I'll give you an
example.

K.Tyler

P.S. concentric.net that's up in the pacific northwest isn't it ?


Post a reply to this message

From: Roy Lane
Subject: Re: suggestions for grass
Date: 31 Aug 1998 19:08:16
Message: <35EB1E62.182B0E1D@concentric.net>
Thanks K.,
I'm off to get it now, but I know already I'd like to see an example of
it.

Roy

BTW, Concentric is headquartered somewhere on the west coast, but
they're national.  I'm in hurricane country...N.Carolina.


Post a reply to this message

From: K  Tyler
Subject: Re: suggestions for grass
Date: 31 Aug 1998 19:27:18
Message: <35EB22D6.791DB307@pacbell.net>
Roy Lane wrote:

> Thanks K.,
> I'm off to get it now, but I know already I'd like to see an example of
> it.
>
> Roy
>
> BTW, Concentric is headquartered somewhere on the west coast, but
> they're national.  I'm in hurricane country...N.Carolina.

  Is it wet yet ?

plane{y,o
 texture{
  pigment{ image_map{gif "grass.gif" interpolate 2}rotate 90*x}
   finish{ambient .5 diffuse .2 }
    scale 10}}

I haven't checked this but it should work. Play with the scaling
and the rotate by a few degrees. On an infinite plane it looks a little
funky. It would probably look better on something like a flat box
object. This will give you better control of the appearance of the
scaling.

I also have a proceedural texture you can try but it lacks reality.
It is good if used in the background or if your focus isn't on the
grass directly. Any way try this out.

  // Simulated Grass
  plane{y,0 texture{pigment{color rgb<.2,.8,.3>}finish{crand .05 ambient .2
  diffuse .2}normal{waves 1 frequency 1000 scale 70000}scale 6}}

Greetings from Disney Land California.

K.Tyler


Post a reply to this message

From: Roy Lane
Subject: Re: suggestions for grass
Date: 31 Aug 1998 19:59:45
Message: <35EB2A75.8B73EEA5@concentric.net>
K. Tyler wrote:

> Roy Lane wrote:
>
> > Thanks K.,
> > I'm off to get it now, but I know already I'd like to see an example of
> > it.
> >
> > Roy
> >
> > BTW, Concentric is headquartered somewhere on the west coast, but
> > they're national.  I'm in hurricane country...N.Carolina.
>
>   Is it wet yet ?
>
> plane{y,o
>  texture{
>   pigment{ image_map{gif "grass.gif" interpolate 2}rotate 90*x}
>    finish{ambient .5 diffuse .2 }
>     scale 10}}
>
> I haven't checked this but it should work. Play with the scaling
> and the rotate by a few degrees. On an infinite plane it looks a little
> funky. It would probably look better on something like a flat box
> object. This will give you better control of the appearance of the
> scaling.
>
> I also have a proceedural texture you can try but it lacks reality.
> It is good if used in the background or if your focus isn't on the
> grass directly. Any way try this out.
>
>   // Simulated Grass
>   plane{y,0 texture{pigment{color rgb<.2,.8,.3>}finish{crand .05 ambient .2
>   diffuse .2}normal{waves 1 frequency 1000 scale 70000}scale 6}}
>
> Greetings from Disney Land California.
>
> K.Tyler

thanks again K.
I'll try this out.  I tried using a height field that I generated from a
grayscale gif that was just a 100x100 pixel image of random noise.  I think my
biggest problem was scaling.  When rendered it produced long dark lines.  I
guess I'm still a bit lost as to how the image actually gets used when you
scale it.  I realize each pixel/value is used to determine the height, but if I
center it on the origin and then scale it by 100 in x and y does that in effect
make each pixel represent a 1x1 unit on my plane?

Roy


Post a reply to this message

From: K  Tyler
Subject: Re: suggestions for grass
Date: 31 Aug 1998 20:13:23
Message: <35EB2DA3.3CC84E4@pacbell.net>
Roy Lane wrote:

> thanks again K.
> I'll try this out.  I tried using a height field that I generated from a
> grayscale gif that was just a 100x100 pixel image of random noise.  I think my
> biggest problem was scaling.  When rendered it produced long dark lines.  I
> guess I'm still a bit lost as to how the image actually gets used when you
> scale it.  I realize each pixel/value is used to determine the height, but if I
> center it on the origin and then scale it by 100 in x and y does that in effect
> make each pixel represent a 1x1 unit on my plane?
>
> Roy

  I think that would be true. I have heard that some people have figured out
how to do realistic grasses with proceedural methods. I have not seen their
methods nor have I been successful my self at creating one. In the mean time
I go the image map route. Sigh ! As you probably noticed though I included
an example for the grass.gif image map using a height field. I think it looks
pretty good. I would like to find another image of grass that is not quite so
course to add to my collection. The grass.gif image is great for wild grasses
but looks a little to rough for lawns and golf courses.

K.Tyler


Post a reply to this message

From: Roy Lane
Subject: Re: suggestions for grass
Date: 31 Aug 1998 22:08:21
Message: <35EB4880.9A120018@concentric.net>
Here is what I was able to do with it.  This is just the beginnings of
my first scene so don't crush me too hard, :-)  I just cropped out a
portion to show you what the grass was doing and didn't compress it,
just switched from tga to jpg without compression.  And here is the
plane object from my pov:

plane { // lawn
  z,0.025
  texture{
    pigment{ image_map
      {gif "grass.gif" interpolate 4}
      }
    finish{ ambient .5 diffuse .2 }

  }
  scale 10
}

I kept playing with the settings and this is where I stopped.


--
Please reply to<tuk### [at] concentricnet>


Post a reply to this message


Attachments:
Download 'croquet1.jpg' (58 KB)

Preview of image 'croquet1.jpg'
croquet1.jpg


 

From: Guillermo Espitia Rojas
Subject: Re: suggestions for grass
Date: 2 Sep 1998 14:25:03
Message: <35ed7f6f.0@news.povray.org>
Annexed a section of an image that grass contains. The file (gtgrass.pov)
with the code can be obtained in " The Book of Beginnings "

http://www.mediaport.net/Artichaud/Tran/gtran.en.html

Guillermo Espitia




>Can anyone give me a good suggestion for creating a lawn in a scene?
>
>Real newbie here so don't be afraid to talk down to my level.
>
>Roy
>
>
>


Post a reply to this message


Attachments:
Download 'Grass.JPG' (14 KB)

Preview of image 'Grass.JPG'
Grass.JPG


 

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