   OpenGL-2D Questions
  Hi, I'm new in the world of game development, so I have some questions:What is the better way to do 2D animation with OpenGL, load bmp and show frame by frame, ... ?What is the better format of images for make animations in OpenGL, bmp, png, ...?How can I do 2D animations with transparent areas, using masks or ... ?xD   
  - What is the better way to do 2D animation with OpenGL, load bmp and show frame by frame, ... ?Use sprites polygons (quads) with a normal = camera's vector, play with the texture mapping torender a different chunk of the texture for the animation.- What is the better format of images for make animations in OpenGL, bmp, png, ...?mmm... Use a png or a bmp loader but don't use jpeg.- How can I do 2D animations with transparent areas, using masks or ... ?Use the alpha blending option of your 3d driver... DirectX3D or OpenGL.;Quote:What is the better way to do 2D animation with OpenGL, load bmp and show frame by frame, ... ?Yup, that should work (you'll probably want to upload the image as a texture and then use OpenGL's texture-mapping capabilities to actually render the image).Quote:What is the better format of images for make animations in OpenGL, bmp, png, ...?Just use whatever image format meets your needs (in terms of image quality, file size, alpha channel support, and so on).OpenGL itself doesn't support loading of image files directly, so you'll have to either write your own code for this step, or use an external image-loading library.Quote:How can I do 2D animations with transparent areas, using masks or ...?Typically you would use an alpha channel along with alpha testing and/or blending.   ;Thanks for the answers xnewagex, jyk, really really thanks, but you can supply some examples, or links where I can learn how do it. ;);  First of, try to search GD for answers to questions like that last one ;)GD itself is a great resource for examples and the like of almost any kind.Secondly, you might be interested in NeHe's tutorials.   