Jump to content
  • Advertisement
Sign in to follow this  
Banzai10

Getting Started

This topic is 4864 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys im new at this forum.. My big question is... What is better to start OpenGL or DirectX... What language is better to game programming??? ------------------------------------------------------ Yeah that is... Cya....... ------------------------------------------------------- And sorry for my poor english... Im brasilian...

Share this post


Link to post
Share on other sites
Advertisement
All personal preferrence. The things you need to know are...
-DirectX is windows only.
-OpenGL doesnt do input sound networking and a few other things that DirectX does.
-C++, though industry standard, is generally not an easy langauge to start with.
-People will give you a thousand different opinions. Ignore them and choise the one you are comfortable with.
Plus, there are many different API's you can use besides DirectX and OpenGL. SDL seems the most recommended. If you need any more info, just ask.

Share this post


Link to post
Share on other sites
Hi... again...

Im not new on C++ programming...

Im new just on Graphics programming.. and

i want to know whati is better DirectX or OpenGL..

But u told me that DirectX is better than OpenGL..

But SDL where come to this history... SDL is better than both??

Or just better to start??

Tnx for help me and

---------------------------------------------------

Sorry for my poer english

Im brasilian

----------------------------------------------------

Share this post


Link to post
Share on other sites
SDL is a 2D Graphics library which is implemented with OpenGL, so you can use both together.

You can't say DirectX is better only because it can do other stuff than graphics.
There is no better between those two it just depends on your requirements, OpenGL is platform independent, but DirectX gives you input,sound,networking,... besides graphics.

Choose the one you like, means go and search for some DirectX and OpenGL tutorials and work with both and than decide which one you want

Share this post


Link to post
Share on other sites
I have learned that in the world of programming, nothing is "better" than something else. What will work always depends on your situation. There is never a difinitive answer. The best thing to do is try everything: look into both OpenGL and DirectX to see what would work for you.

Share this post


Link to post
Share on other sites
Maybe you can read through this article to get a better impression of DX and OGL

http://www.gamedev.net/reference/articles/article1775.asp


I think the best way to choose your API is to create a simple programm which draws a triangle on screen with both of them and then to pick your api of choice by deciding which code you like more. If you wan't to develop a platform independetn game OGL will be your API of choice because your bound to Windows with DX.

But as the previous posters said already it's not a question anyone can answer you ... it's just your personal choice.


cheers,
Marcel

Share this post


Link to post
Share on other sites
So tnx for help guys..

I will read about both API's and i will choose...

Tnx... so i will start studing OpenGL.. and after i will go to DirectX...

Anoter question...

OpenGL is a 2d and 3d API???

directX too??

-----------------------------------------------

Sorry for my porr english...

---------------------------------------------

Share this post


Link to post
Share on other sites
Direct X and OpenGL are both 3D API's but there are several methods to use them for 2D Games, Direct X has an own Sprite Interface for instance and you can also use so called Texture Quads with both API's, but this shouldn't bother you for now.

If you're fine with C++ and as soon as you get the basics you'll come over these topics.

Just check out some beginner tutorials on both API's you'll find all the information you need there. Best point to start is the Articles Center on gamedev and for openGL you should check NeHe. --> http://nehe.gamedev.net/

cheers,
Marcel

Share this post


Link to post
Share on other sites
Quote:
Original post by ext
SDL is a 2D Graphics library which is implemented with OpenGL


Wrong, my friend. SDL can be use to SET UP rendering for OpenGL. If you don't specify that you want to use OpenGL when you create the window, then it uses DirectX (if it's in Windows) or X11 (in Linux).

Share this post


Link to post
Share on other sites
I don't have any links, but I have seen posts and articles that compare the features of both OpenGL and DX3D. I prefer OpenGL, many users prefer DX3D. It is a matter of opinion. In general, most of the features tend to be the same, so mostly what OpenGL can do, DX can do, and vice versa. Each has there own processes and storylines that got them where they are today, which do reflect in how the API is used and updated, but that info is also in the same articles and posts. Anyone have the links?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!