iDevGames Forums
2D Sprite Tutorial in OpenGL - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: 2D Sprite Tutorial in OpenGL (/thread-7092.html)



2D Sprite Tutorial in OpenGL - DJBlufire - May 10, 2003 02:23 AM

I'm having trouble getting started in this and I need some direction. None of the stuff on NeHe really provides exactly what I'm looking for. Can anyone recommend a good tutorial or something that demonstrates how to work with 2D images or sprites in OpenGL?


2D Sprite Tutorial in OpenGL - OneSadCookie - May 10, 2003 02:28 AM

Do, like, the first tutorial (where you draw a triangle or a square or something), then skip right on ahead to the texturing tutorial. Then type [font=monaco,courier]man gluOrtho2D[/font] into your terminal.


2D Sprite Tutorial in OpenGL - Patrick - May 10, 2003 10:39 AM

Also, you might want to check out SpriteWorld 3.0b1's source code, which has a working hardware implementation using OpenGL.
http://www.pairlist.net/pipermail/swml/2002/001805.html


2D Sprite Tutorial in OpenGL - DJBlufire - May 10, 2003 06:09 PM

Thanks Patrick, I think I found what I needed from the OpenGL code in SpriteWorld.

Also, this page was a big help, in case anyone else ever asks. Smile


2D Sprite Tutorial in OpenGL - arekkusu - May 12, 2003 12:46 AM

Or you could just look at how Apple does it:

http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/Red_Rocket.htm