Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL for 2D graphics tutorial

Started by BradDaBug Oct 5, 2001 at 2:10 PM 11 replies 500+ views
Original Post
BradDaBug
BradDaBug
I''m sure this has been asked loads of times, but are there any good OpenGL for 2D graphics tutorials out there? even better, a library that encapulates all the OpenGL stuff into functions like blit() and stuff like that?
I like the DARK layout!
Drizzt DoUrden
Drizzt DoUrden
NeHe''s 21st tutorial.

I suggest you have an idea of how to do good game programming in C++ and OpenGL already, or decent at the very least.


nehe.gamedev.net
------------------------------Put THAT in your smoke and pipe it
BradDaBug
BradDaBug
You mean i have to learn 3D programming in OpenGL before I can do 2D?
I like the DARK layout!
Drizzt DoUrden
Drizzt DoUrden
Well, you should know how to make quads and use the OpenGL functions.

If you dont know how, take tutorial 1,2,3,4,5,6,7,8,9,10 .... etc. Then 21.
------------------------------Put THAT in your smoke and pipe it
SirKnight
SirKnight
Dont use OpneGL for 2D. OpenGL is a 3d api and its not very good at 2d. If you want 2d then use direct draw.

-SirKnight
Drizzt DoUrden
Drizzt DoUrden
If your trying to make an RPG like Final Fantasy 5 or something... DDraw is probably better. Pong, or space ship games with very few textures are all right with OpenGL. You just draw and texture quads.
------------------------------Put THAT in your smoke and pipe it
BradDaBug
BradDaBug
I was wanting to use 3D cause i heard it was easier to do than isometric 2D drawing with DirectDraw.

But, I might consider going back to DirectDraw. I know DirectDraw better than D3D, and graphics programming is my least favorite part of development.
I like the DARK layout!
mittens
mittens
quote:
Original post by SirKnight
Dont use OpneGL for 2D. OpenGL is a 3d api and its not very good at 2d. If you want 2d then use direct draw.


Please, I''d prefer if you didn''t advise people on what you don''t know. Actually, using DirectDraw for 2D now-a-days (where nearly everyone has a 3D accelerator card of some sort) is pretty stupid. You should be using a 3D API for some simulated 2D gameplay, while keeping all the graphics primarily 3D. Its the best way to go!



------------------------------
Trent (ShiningKnight)
E-mail me
ShiningKnight Games
Maximus
Maximus
quote:
Original post by SirKnight
Dont use OpneGL for 2D. OpenGL is a 3d api and its not very good at 2d. If you want 2d then use direct draw.



Please try and remember that OpenGL was originally a 2D only API, and can handle 2D without any problems at all.
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
Drizzt DoUrden
Drizzt DoUrden
I agree about OGL being easy for 2D but I heard DDraw makes things alittle easier.. like getting rid of the useless colors around the side of the image. I guess, as long as you have an understand of the depth buffer, drawing quads and texturing, collisions, and movement.. you should be able to use OpenGL. I am using OpenGL right now for a DBZ-Pong game In 2D. And, if your making an isometric RPG.. than you should know that Baldurs Gate was made with OpenGL.. and thats one of the best isometric RPG''s around nowadays ( at least.. for now ).

"He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you..."~Friedrich Nietzsche
------------------------------Put THAT in your smoke and pipe it
MButchers
MButchers
quote:
Original post by SirKnight
Dont use OpneGL for 2D. OpenGL is a 3d api and its not very good at 2d. If you want 2d then use direct draw.

-SirKnight


If you dont think OpenGL can handle 2D graphics
to well have a look at Icewind Dale and Baldurs
Gate 2 both of which support OpenGL rendering and
are 2D games.



Zeblar Nagrim
Zeblar Nagrim
quote:


If you dont think OpenGL can handle 2D graphics
to well have a look at Icewind Dale and Baldurs
Gate 2 both of which support OpenGL rendering and
are 2D games.




I do not think OpenGL or Direct3D handle all graphics in the game. But effects and handled by those API.



Zeblar Nagrim, Lord of Chaos

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.