Proud Member
Proud Member

Reputation: 40496

How to animate warping / bending textures?

I want to animate grass on the ground. Each blade of grass is represented in a bitmap as a straight (non-bended) object. The goal is then to bend the bitmap left/right in banana shape without steps.

The grass can bend very slowly. I could use hundreds of images for intermediate frames but I want to do something more sophisticated.

Are there solutions that allow to bend and warp bitmaps / textures in OpenGL ES? If not, how would you do it?

Upvotes: 0

Views: 253

Answers (1)

ClayMontgomery
ClayMontgomery

Reputation: 2832

First, you need to decide if you really want to animate the textures, or the geometry. Morphing the geometry is the better approach and it can be done programatically or by using authoring tools. The authoring tools approach requires some sort of game engine and importing files with geometry, texture coordinates and animation data.

Upvotes: 1

Related Questions