Jump to content

  • Log In with Google      Sign In   
  • Create Account

OpenGL for 2D graphics tutorial


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
12 replies to this topic

#1 BradDaBug   Members   -  Reputation: 897

Like
Likes
Like

Posted 05 October 2001 - 08:10 AM

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?

Sponsor:

#2 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 05 October 2001 - 08:16 AM

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

#3 BradDaBug   Members   -  Reputation: 897

Like
Likes
Like

Posted 05 October 2001 - 08:18 AM

You mean i have to learn 3D programming in OpenGL before I can do 2D?

#4 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 05 October 2001 - 08:25 AM

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.

#5 SirKnight   Members   -  Reputation: 316

Like
Likes
Like

Posted 05 October 2001 - 08:30 AM

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

#6 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 05 October 2001 - 08:35 AM

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.

#7 BradDaBug   Members   -  Reputation: 897

Like
Likes
Like

Posted 05 October 2001 - 08:51 AM

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.

#8 mittens   Moderators   -  Reputation: 1315

Like
Likes
Like

Posted 05 October 2001 - 04:17 PM

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

#9 Maximus   Members   -  Reputation: 124

Like
Likes
Like

Posted 05 October 2001 - 04:23 PM

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.

#10 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 05 October 2001 - 04:48 PM

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

#11 MButchers   Members   -  Reputation: 123

Like
Likes
Like

Posted 07 October 2001 - 10:06 PM

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.





#12 Zeblar Nagrim   Members   -  Reputation: 150

Like
Likes
Like

Posted 07 October 2001 - 11:58 PM

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

#13 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 08 October 2001 - 01:01 AM

Zeblar Nagrim,

im not so sure because the quality of the graphics
in certain areas of the game ie cinematics are not
such high quality as in software mode so they are
obviously using a different renderer.

Also if it was only using them for the spell FX etc
and not rendering the background then they would
have to render to a bitmap which would force
software rendering = Very slow, however when using
opengl the framerate can go very high without
any obvious problems which leads me to believe that
it is using hardware for all graphics output.

Just a few ideas.

Mark.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS