PDA

View Full Version : OpenGL or DirectX?



yaro_dup1
03-05-2003, 11:21 AM
Hi,

In some games I saw there is an option called Renderer:
OpenGL
DirectX
I can choose one of them but what does it mean? Does the game is written on OpenGL and also on DirectX ????

thx

mikael_aronsson
03-05-2003, 12:26 PM
Hi !

Yes, if you can select OpenGL or DirectX (I guess it says Direct3D), then the application/game has two rendering engines, one for OpenGL and one for Direct3D.

Mikael

Orzech
03-06-2003, 01:19 PM
http://www.opengl.org/discussion_boards/ubb/smile.gif I admire those people. Building a game with 2 other rendering engines is hard a work, I suppose. You need 2x time more to do that.

HalcyonBlaze
03-06-2003, 01:58 PM
Yeah no kidding! I mean who would want to take the time to program in D3D if you can already do it in OpenGL??? Just messing! Yeah it's pretty cool how they support both APIs. It isn't necessarily twice the work though. I mean yeah it's a LOT of work getting both of them implemented, but a graphics engine is only a small part of the whole game engine. But it's the most fun part!!!

- Halcyon

MrShoe
03-06-2003, 03:26 PM
Correction, it would NOT take 2x the time, because the vast vast vast majority of a game is not API calls. If you create a good abstraction layer for rendering, then adding support for an additional API would maybe increase project completion time by 5%-10%.

Orzech
03-06-2003, 10:40 PM
But still there aren't many games written on both OpenGL and DirectX. If you choose single graphics library you can optimize your project for the specific API. Is there any sens of making a game in both ways if one of them would be faster?

delsydsoft
03-06-2003, 11:18 PM
Some companies might do it to make up for inefficient drivers on some cards. I know that S3's OpenGL ICD was REALLLY slow on our laptops at work, but their DirectX performance was a lot better.