OpenGL ES 2.0. Sprite Sheet Animation

Posted by Project Dumbo Dev on Game Development See other posts from Game Development or by Project Dumbo Dev
Published on 2013-11-01T20:09:16Z Indexed on 2013/11/02 16:03 UTC
Read the original article Hit count: 207

I've found a bunch of tutorials on how to make this work on Open GL 1 & 1.1 but I can't find it for 2.0.

I would work it out by loading the texture and use a matrix on the vertex shader to move through the sprite sheet.

I'm looking for the most efficient way to do it. I've read that when you do the thing I'm proposing you are constantly changing the VBO's and that that is not good.

Edit: Been doing some research myself. Came upon this two Updating Texture and referring to the one before PBO's. I can't use PBO's since i'm using ES version of OpenGL so I suppose the best way is to make FBO's but, what I still don't get, is if I should create a Sprite atlas/batch and make a FBO/loadtexture for each frame of if I should load every frame into the buffer and change just de texture directions.

© Game Development or respective owner

Related posts about textures

Related posts about sprites