Computer Science Canada

DirectX vs OpenGl

Author:  AsianSensation [ Fri Nov 14, 2003 4:59 pm ]
Post subject:  DirectX vs OpenGl

I was in a discussion with one of my friend today, he said that openGL is getting outdated and obsolete, I should try to learn DirectX instead.

Well, what's you guy's opinion? If I was to start graphics, what should I learn to program in?

Author:  Catalyst [ Fri Nov 14, 2003 5:57 pm ]
Post subject: 

opengl
in my opinion it is better than directx
the only thing that may be obsolete about ogl (just for your info doom3 uses ogl) is the functional interface, which in my opinoin, doesnt matter much considering its an api



ogl
pros- cross platform, simple continuoes interface, powerful
cons-no support libraries,extension mechanism, controlled by group

dx
pros-support lib (DX utilities), new features directly built-in,powerful
cons-windows only, controlled only my microsoft

Author:  Homer_simpson [ Sat Nov 15, 2003 3:14 pm ]
Post subject: 

I remember i read somewhere that opengl works faster on the old graphic cards but directx is more compatible with the new ones...
but i still think it's a matter of personal choice and what u wanna use it for...
here's a comparison table....

<table border=2 cellspacing=2 cellpading=2>
<tr>
<td>Feature</td>
<td>OpenGL 1.2 Core</td>
<td>Direct3D 7</td>
<td>Direct3D 8</td>
</tr>
<tr>
<td>Operating System Support</td>
<td>Windows (9x, NT, 2000), MacOS, BeOS, *nix, others</td>
<td>Windows (9x, 2000, CE) <a href="#Note12">[12]</a></td>
<td>Windows (9x, 2000) <a href="#Note12">[12]</a></td>
</tr>
<tr>
<td>API Definition Control</td>
<td>OpenGL ARB</td>
<td>Microsoft</td>
<td>Microsoft</td>
</tr>
<tr>
<td>API Specification</td>
<td>OpenGL Specification <a href="#Note10">[10]</a></td>
<td>SDK/DDK Documentation and DDK Reference</td>
<td>SDK Documentation</td>
</tr>
<tr>
<td>API Mechanism</td>
<td>includes and libraries</td>
<td>COM</td>
<td>COM</td>
</tr>
<tr>
<td>Software Emulation of Unaccelerated Features <a href="#Note4">[4]</a></td>
<td>Yes</td>
<td>No</td>
<td>No <a href="#Note11">[11]</a></td>
</tr>
<tr>
<td>Extension Mechanism <a href="#Note5">[5]</a></td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Source Implementation Available <a href="#Note6">[6]</a></td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
<tr>
<td>Fixed-Function Vertex Blending</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Programmable Vertex Blending</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Parametric Curve Primitives</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Parametric Surface Primitives</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Hierarchical Display Lists</td>
<td>Yes</td>
<td>No <a href="#Note8">[8]</a></td>
<td>No <a href="#Note8">[8]</a></td>
</tr>
<tr>
<td>Two-sided Lighting</td>
<td>Yes</td>
<td>No <a href="#Note1">[1]</a></td>
<td>No <a href="#Note1">[1]</a></td>
</tr>
<tr>
<td>Point Size Rendering Attributes <a href="#Note9">[9]</a></td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Line Width Rendering Attributes <a href="#Note9">[9]</a></td>
<td>Yes</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td>Programmable Pixel Shading</td>
<td>No <a href="#Note14">[14]</a></td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Triadic Texture Blending Operations</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Cube Environment Mapping</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Volume Textures</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Multitexture Cascade</td>
<td>No <a href="#Note13">[13]</a></td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Texture Temporary Result Register</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Mirror Texture Addressing</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Texture &quot;Wrapping&quot;</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Range-Based Fog</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Bump Mapping</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Modulate 2X Texture Blend</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Modulate 4X Texture Blend</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Add Signed Texture Blend</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Hardware Independent Z Buffer Access</td>
<td>Yes</td>
<td>No <a href="#Note2">[2]</a></td>
<td>No <a href="#Note2">[2]</a></td>
</tr>
<tr>
<td>Full-Screen Antialiasing</td>
<td>Yes</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Motion Blur</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Depth of Field</td>
<td>Yes</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Accumulation Buffers</td>
<td>Yes</td>
<td>No</td>
<td>No <a href="#Note7">[7]</a></td>
</tr>
<tr>
<td>Picking Support</td>
<td>Yes</td>
<td>No <a href="#Note3">[3]</a></td>
<td>No <a href="#Note3">[3]</a></td>
</tr>
<tr>
<td>Multiple Monitor Support</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Stereo Rendering</td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
</tr>
</table>

Author:  AsianSensation [ Sat Nov 15, 2003 9:17 pm ]
Post subject: 

cool, thanks for the help, I think I will try to program with OpenGL.

Now my friend also mentioned another point, he said that since Direct3D will be alot easier to program in and easier to understand, he suggested that I should learn how to program in Direct3D 9 to start, and I haven't been able to find much information on that (maybe I'm just not looking hard enough?)

so Direct3D 9, or OpenGL?

Author:  rizzix [ Sat Nov 15, 2003 9:19 pm ]
Post subject: 

i'd go for opengl..

1) it's open heh. so there are more ppl working on it than u think Smile
2) it's been ported to more platforms then DirectX, and i can bet on that Razz

Author:  Andy [ Mon Nov 17, 2003 6:47 pm ]
Post subject: 

meng where did u get all these friends from? the last time i checked it was only jimmy, and hes just wacked

Author:  SilverSprite [ Sat Nov 29, 2003 4:06 pm ]
Post subject: 

dont be deceived andy.. when he says 'friend' he actually means some girl (guy?) in the romance chat at yahoo

Author:  Andy [ Sun Nov 30, 2003 9:07 pm ]
Post subject: 

LOL... yahoo? oh yea msn costs money now... damn those greedy ms ppl

Author:  AsianSensation [ Sun Nov 30, 2003 9:33 pm ]
Post subject: 

you hurt my feelings, I will now cry in a little corner....

code:
       |
       |
       |
       |
       |
       |
       |
       |
       |
       /-----------------
      / ^
     /  |
    /   | 
   /    Corner
  /
 /  *Meng proceeds to cry in corner
/

Author:  Andy [ Sun Nov 30, 2003 9:47 pm ]
Post subject: 

meng.. the cyberworld is round... there is no coners... and lol you and your txt art... wasting so much time in compsci to draw your diagrams on vc

Author:  SilverSprite [ Sun Nov 30, 2003 10:42 pm ]
Post subject: 

AsianSensation wrote:

code:
       |
       |
       |
       |
       |
       |
       |
       |
       |
       /-----------------
      / ^
     /  |
    /   | 
   /    Corner
  /
 /  *Meng proceeds to cry in corner
/

you must really have no life to take time to do that

Author:  AsianSensation [ Sun Nov 30, 2003 10:49 pm ]
Post subject: 

Razz

you leave my ASCII art alone. I must fulfill my role in being Chinesy, and if I can't draw real art (cuz all oriental people should be able to draw, play piano, play badminton, etc, etc), then I must be able to draw cyber art. I wonder if I can get an art credit in ASCII........

Author:  Andy [ Mon Dec 01, 2003 4:32 pm ]
Post subject: 

lol credit in ascii... azn i'm pretty sure there are better ascii artists out there... and you cant be declared chinesey until you can do ALL of those things... lol


: