Board index » delphi » DirectX vs. OpenGl vs. GDI
Terry Thompso
![]() Delphi Developer |
Fri, 14 Jun 2002 03:00:00 GMT
|
Terry Thompso
![]() Delphi Developer |
Fri, 14 Jun 2002 03:00:00 GMT
DirectX vs. OpenGl vs. GDI
I am new to programming graphics in Delphi. Would someone explain the pros
and cons of using DirectX, OpenGl and the Windows GDI and when one would choose to use any of the above? Thanks. |
Jason Wallac
![]() Delphi Developer |
Fri, 14 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIEasy enough: DirectX: Everyone can use it... (DirectX is made up of OpenGL and MS's OpenGL: Very fast, and very specialized: You show me an OpenGL game, and Window GDI: Slow, pointless, etc, etc... Doesn't count... -- Jason Wallace Quote"Terry Thompson" <terrythomp...@erols.com> wrote in message Quote> I am new to programming graphics in Delphi. Would someone explain the |
Philipp Crocol
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIOk, I'm not a guru but would say that: OpenGl is used for 3d graphics and independent from the OS ( - but Delphi still is , so that isn't important) DirectX offers many possibilities (look at D3d, DDraw, DInput, DSound...) To compare it with OpenGL and the GDI you can look at D3d and DDraw. D3D is more difficult than OpenGl and works only with win32. DDraw is - for *really* fast graphics - much better than the GDI, but for usual graphics it is enough, and it is very easy to program. Philipp |
Jon Jacob
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIIf you do not have a need for speed and you are not producing complex three-dimensional graphics, then you can probably get by with GDI. If you need smooth animation with more complexity than the GDI is suitable for, but you are strictly 2-D, you might consider DirectX, but the API is VERY daunting. For 3-D the choice is between Direct3D (a subset/extension of DirectX) and OpenGL. Here your trade-offs are: 1) There is a lot more Direct3D code "out there" (mostly C++) for the same reasons there is more Visual C++ code than there is Delphi code. 2) OpenGL is MUCH easier to use. It is also multi-platform. The graphics part of your code will be pretty much portable to various flavors of Unix and to the Mac. Eventually even the Delphi part will be somewhat portable to Linux (an open-source version of Unix). There is also a vast amount of OpenGL code that has been written (mostly in C, and a lot in C++, and even some using MFC); my book can help you get started using Delphi and OpenGL. Jon QuoteTerry Thompson wrote in message <849b1r$pv...@forums.borland.com>... |
Terry Thompso
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIIs there any difference in terms of performance between Direct3D and OpenGL? I want to develop an architectural drawing app (similar to FloorPlan and QuoteJon Jacobs <jqjac...@gte.net> wrote in message Quote> If you do not have a need for speed and you are not producing complex |
Dana Dil
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIHi Jon, Here is a loaded question. For developing 3D games...which would YOU Enjoying your book. Thanks for writing it for the Delphi Community. Take Care, Quote"Jon Jacobs" <jqjac...@gte.net> wrote in message Quote> If you do not have a need for speed and you are not producing complex |
Jon Q. Jacob
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuote>Here is a loaded question. For developing 3D games...which would YOU development. I have no qualms about using OpenGL for games. Carmack of Id Software uses OpenGL and, as a matter of policy, will NOT use DirectDraw/Direct3D. I subscribe to the OpenGL game developer mailing list and find that a lot of game developers are using OpenGL. I recently bought MindRover and really like it. I was watching it being developed as I monitored the list. I MIGHT use DirectDraw/Direct3D if someone held a loaded gun to my head, but then again... Quote>Enjoying your book. Thanks for writing it for the Delphi Community. Jon |
Steve Mayn
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuoteTerry Thompson wrote: Quote> to be somewhat smooth, but don't need thesame level of smoothness that would the better of the two, mainly because it is easier to program with. The API for Open GL is glorious (and portable). The Direct3D API is rather {*word*193}. John Carmack (creator of Quake), has some choice words to say about the D3D vs. OpenGL debate, that may sway your opinions. If anyone knows about these things, then he should!. Check out: Hope this helps, -- |
Jason Wallac
![]() Delphi Developer |
Sat, 15 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDINot to burst your bubble, but those comments were made about DirectX back when DirectX 2 was out (4 revisions ago!) -- DirectX is the better of the two, as it works on all systems... OpenGL doesn't.... -- Jason Wallace Quote"Steve Mayne" <st...@mayneware.com> wrote in message Quote
|
Steve Mayn
![]() Delphi Developer |
Sun, 16 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuoteJason Wallace wrote: using OpenGL and DirectX right up to version 5, and still I find the OpenGL API better to use. OpenGL can be easily ported to UNIX as well (that's what I mean when I say 'portable') - what do you mean when you say DirectX works on all systems and OpenGL doesn't? I'm just throwing in my 2 pennies worth, sorry to tread on your toes. Regards, |
Pete Goodwi
![]() Delphi Developer |
Fri, 21 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuoteDana Dill wrote: Tournament works extremely well with my Riva TNT card at 1024 x 768 with hardly any loss of frame rate. Quake has to run at a lower frame rate (640 x 480 or 800 x 600) to get even acceptable performance. I used to code for OpenGL but found it messy with Delphi. Now I've tried D3D and I can see that D3D is a lot more to learn than OpenGL, and that OpenGL is Pete |
Jeremy Darlin
![]() Delphi Developer |
Sat, 22 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIHello Pete, acctually the problem is that you card dosn't support FireGL (A dirivitive of OpenGL) witch is what was used for Quake. I have a FireGL 3000 AGP card that supports: OpenGL, FireGL, and DirectX (Dosn't hurt that its also 64 meg, btw the cost $4000.00). I have no problem running any graphics program, but when I try to run the same programs on my VooDoo3 PCI I see a little difference in frame rates, yes the DiretX is faster, but again this is because of hardware support. Microsoft has money and theirfor they have the support. The biggest question in writing a 3D graphics program should be how many platforms do you want it to run on. My game (Eon Clash) can currently be compiled and ran on allmost 6 platforms simply by using OpenGL and staying away from "Windows Only" commands. Quote"Pete Goodwin" <ime...@yfi.co.uk> wrote in message Quote> Dana Dill wrote: |
Pete Goodwi
![]() Delphi Developer |
Sun, 23 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuoteJeremy Darling wrote: platform that is popular but very non-standard and decidedly NOT open. Windows, in all its shape and gory, I mean glory. People want what works, what looks good and what they can afford. Windows gives I realise the market in Linux is slowly growing. But, for all the hype, its Pete. |
Jeremy Darlin
![]() Delphi Developer |
Sun, 23 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIFinally a conversation worth having... Yes, as a matter of fact other OS's have done what PC's have done, take Mac for instance. I know that everyone reading this just went "YUCK", but face it Windows is modled after Mac (Not the reverse) and Mac has been doing 3D with better image quality for years. This means that allmost all the graphics developers are using Mac. (OOPs that wasn't supposed to get out) Yes, alot of good graphics have been done by the PC (Lately) but allmost all the ones you look at and go WOW come from Mac. Including some of your wonderfull games. (The textures and char animations, not the engines). Finally, your statistics of windows being the "Leading OS" is in the united states more or less up until early 90's (If I rember correctly). Their are many OS's out their that you arn't even considering and probably many that most people haven't herd of. Why is windows the standard, Money, Power, and Greed. Microsoft was smart when they started and cornered all the hardware producers into building hardware that was "Windows" specific. Have you ever tried to run a WinModem in a Mac or on a Unix box (Guess what it wont work), but you can take either of their modems and run in a PC (Ok some mods are needed if it is a internal Mac). Again, I'm not a Mac advocate, acctually I hate them, but they do hold market share and have done so for many years. How about the old Amiga (Bet you didn't know that they are one of the most commonly used systems in television today), their newer systems are used as digital toasters in more Video Feed centers then any other system. Should I go on or do you get the hint. Windows is NOT HEAVEN, Billy boy ISN'T GOD. Quote"Pete Goodwin" <ime...@yfi.co.uk> wrote in message Quote> Jeremy Darling wrote: |
Colin Wilso
![]() Delphi Developer |
Mon, 24 Jun 2002 03:00:00 GMT
Re:DirectX vs. OpenGl vs. GDIQuoteIn article <84afne$6...@forums.borland.com>, Terry Thompson wrote: if you've got the right graphics hardware and drivers. Colin |