PDA

View Full Version : 2D Sprite Tutorial in OpenGL


DJBlufire
2003.05.10, 06: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?

OneSadCookie
2003.05.10, 06: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 man gluOrtho2D into your terminal.

Patrick
2003.05.10, 02:39 PM
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

DJBlufire
2003.05.10, 10:09 PM
Thanks Patrick, I think I found what I needed from the OpenGL code in SpriteWorld.

Also, this page (http://www.delphi3d.net/articles/viewarticle.php?article=sprites.htm) was a big help, in case anyone else ever asks. :)

arekkusu
2003.05.12, 04:46 AM
Or you could just look at how Apple does it:

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