Is OpenGL good for games?

Started by
27 comments, last by JnZ 22 years, 7 months ago
The thing is, I''m starting to make a 3D-engine, butt, I''m not sure witch is better OpenGl or Direct3D? Please reply!

Advertisement
Really, it is completely a matter of preference. What is right for some, may not be right for you. OpenGL isn't better than Direct3D, and Direct3D isn't better than OpenGL. Both have advantages/disadvantages, strengths and weaknesses. Both would be equally good for a 3D game engine. You should find out some information on both, and decide for yourself which is better.

Edited by - Midnight Coder on August 21, 2001 2:56:38 AM
Well witch is faster?
OpenGl or Direct3D?

Dude! they are totally equall now. With DX8. OpenGl and directx are totally equall APIs it''s just a preference of the programmer now.
~Wave
"Well witch is faster?"
- This is totaly driver dependant. My TNT 1 is a bit faster with OpenGL especially in windowed mode... What about the other cards?

"OpenGl and directx are totally equall APIs it''s just a preference of the programmer now."

-Under Windows, it is now true. But for other OS, you don''t have choice: there is only OpenGL.


Its a matter of preferences as to which is better but whether or not to marry a 600 pound woman is a matter of preference too, so that doesn't mean preferring direct3D can't be considered insane by the rest of us.

So its a matter of preference, but whatever you decide never be seduced away from OpenGL by the shit storm of bad publicity surrounding OGL extensions. Nvidia claims that there texture shader extension for OpenGL is "a bit more powerful" than Direct3D's pixel shaders. why is this? I guess its because Nvidia can write there own standards for their own hardware with OpenGL. Of course when ATI comes out with some hardware that can do texture shading, then OpenGLer's will have to deal with 2 extensions until texture shaders get unified into an EXT or ARB class extension. But OpenGLer's will be able to expose the nuances of both the ATI and NVIDIA texture shaders where as the Direct3Der's are stuck with whatever the 3D graphics geniuses at Microsoft think should be standard. BTW texture shaders are easy to use in OpenGL*. so dealing with the extension, and God forbid 2 extensions for the same thing, is no big deal; getting the most out of the hardware is a good thing and the extension scheme lets you do that . That's just texture shaders though; I guess you should find out as much as possible about both API's. Here's a good site for OGL: www.opengl.org. I'm sure you've seen the DirectX msdn site www.msdn.microsoft.com/directx; if not you can download the documentation and see what that's all about.

* there aren't any new functions, just several new constants that you pass as parameters to some already existing functions so putting together a texture shader is fairly easy you could probably get something going from scrath in one afternoon on your first try. Coming up with something that looks good might be difficult but thats a matter of art not API.

Edited by - grady on August 21, 2001 6:17:52 AM
----------------------------www.physicsforums.comwww.opengl.org
This sounds like a smooth way to start a Direct3D vs. OpenGL war. For all the previous ones, do a search of "Direct3D or OpenGL" threads.... You''ll find a very good amount of them.

------------------------------
Trent (ShiningKnight)
E-mail me
Shining Darkness- A division of Chromesphere Studios
Allright, this is the fourth time i answered this SAME EXACT question in the last 24 hours. Direct X is better if you are trying to make 2D games because 1)there are barely any tutorials on making 2D games in opengl 2) there no books on making 2D games in openGl. OpenGL is goood because it is multiplatformed. If you want to learn opengl, then read kevi and Daves(members of the GDNet staff) book called OpenGL Game Programming. For direct X, andre lamothes Tpis and Tricks of the Gurus or something like that, so i am told. 2D games can be made with OpenGL, but good luck finding out how, I have been trying for almost 20 days, searching al over the net, but all I can find is NeHe''s 21st tutorial. And yes, direct x does make 3d games, they can do everything the same way, just 2D with openGL is harder to find out how to do, and to do in general. If you are looking to get into the Game Development bussiness, I would suggest learning Direct X first, then OpenGL, knowing both would reallly help.
Good Luck.

"I''''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''''Urden
------------------------------Put THAT in your smoke and pipe it
Hmm, If I was you (which I''m not), I would go for OpenGL.
It''s way easier to use (and faster than D3D on some graphic-cards

But, I would still use some DX components like DInput and DSound.

And the thing that OpenGL can be ported to Linux and Mac is great for a bigger group of users (when you finally release a game).

Good Luck!
Drizzt DoUrden:

Actually DirectGraphics is in the same state of capabillities with OpenGL now, 2D graphics is achieved by simply texturing a quad (essentially billboarding) and holding your camera to a fixed position. And then you use methods like Alpha Blending etc... to achieve your required affect. You move your "sprite" around the world by using the same 3D transformation techniques such as translations and rotations. Why not just use DX7 and use DirectDraw? Well firstly your 2D game now is accelerated meaning you can get away with alot more. Secondly you can still make use of the 3D features and create some nice effects which were hard to do or impossible using just bitmaps. And I wouldn''t say that "OpenGl in 2D is hard to do", it doesn''t take an einstein to work out how you can trick the user into thinking it''s 2D and that''s what it is all about .

This topic is closed to new replies.

Advertisement