I've been thinking about using set of PNG images (representing frames) and continuously change between them to look like an animation.
Is there a simpler/better way? (maybe using GIF?)
|
As it currently stands, this question is not a good fit for our Q&A; format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
OpenGL can do more things that I care to shake a stick at in a comment. Among the thing it can do in relation to images is transform a given image (using shaders), clip an image and zoom an image(texture mapping). So if what you want to do is create some kind of wavy mist, yes you can do this without drawing a million pictures of mist and loading them: You use a shader to calculate the motions procedurally on the GPU. Here is an example of creating waves using OpenGL If on the other hand you want to do good old fashion sprite sheets for character animations for example, that's very valid as well, and you do it by taking one big image with all the steps in the animation and displaying part of the image every time. Here is an example of this being done in CSS Excuse me for assuming, but if you need to ask this question you usually don't know enough about OpenGL to start using it right away. OpenGL is much harder than people are lead to believe. It might be a good idea to use some kind of library that uses OpenGL behind the scenes. |
|||
|