Skip to main content
gamedev.net
🔒 Locked

dynamic grass

Started by darkzim Nov 3, 2004 at 6:45 PM 2 replies 1.1k views
Original Post
darkzim
darkzim
How can I do some kind of dynamic grass on my terrain(heightmap, OpenGL)? I need something more than just a bunch of textured billboards, but I'm lost on where to go. :) Should I use some kind of "fur" effect that I've seen in some apps or what? -Thanks
---------------------------------darkzim
darkzim
darkzim
After doing a bit more research, I realized that it may be possible to use particles to render grass fields.. I think I may look into this more.
---------------------------------darkzim
Buzzy
Buzzy
You might be able to get some ideas from here.
Mayrel
Mayrel
I haven't tested this, but I think it might work:

If you've got connectivity information for your mesh (i.e. you know which other faces each face is touching), then it should be trivial to determine which edges you're seeing 'edge on' (i.e. one face is facing you, the other is facing away). Then, for each edge that is 'edge on', place a quad with a side-view grass texture with its bottom on the edge and the top however far up you want the grass to be.

You could do it for all edges, but the above technique should draw notably less geometry. With a suitable top-down grass texture for the terrain itself, it might be convincing.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.