Animated Grass with Vertex Displacement

This is a very easy way to animate the grass of a scene in a realistic way. You render the grass the usual way with intersecting quads distributed randomly on the terrain you want the grass on. Then in the vertex shader, the top two vertices are displaced with the combination of four sinus waves. This gives a waving grass.

Grass Sprite Rendering

The result might look like this (this really depends on the quality of the textures used for grass).

Animated Grass suitable for a game

In the original paper, you can find a source code for the shaders and full description of the technique.
http://ati.amd.com/developer/shaderx/shaderx_animatedgrass.pdf

Please share:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Current
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • StumbleUpon
  • Twitter
  • Reddit
  • Technorati
  • Yahoo! Bookmarks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>