Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OpenGL or Direct3D?

Name: a 2007-01-14 15:03

I've been thinking of making some sort of 2d game with little 3d maybe, but I'm not sure which is better/easier to learn: OpenGL or Direct3D. Can someone clarify me what are their strong/weak points, or which is generally simpler or easier to learn, cause I'm not going to do anything big.

Name: Anonymous 2007-01-14 15:11

Direct3D is limited to Windows. OpenGL is simple, cross-platform, and has been standardized. Use OpenGL.

Name: Anonymous 2007-01-14 15:54

>>1
OpenGL is also easier to learn.

Name: Anonymous 2007-01-14 16:54

You might wanna try SDL; it's a library that provides more high level functions and uses OpenGL as a backend for the graphics; it also does sound and input and shit, which OpenGL by itself doesn't.

Name: Anonymous 2007-01-14 17:05

OpenGL is easier. Directx gives more control.

Name: Anonymous 2007-01-14 18:48

>>4
Yeah, it's best to use a library like SDL or GLUT with OpenGL for simple projects, so you don't have to worry about Windows API bullshit.

DirectX gives more control, but you really need to know what you are doing because you get a smaller number of draw calls per frame.  OpenGL is more flexible in that you can get away with doing some stuff the stupid way, i.e. making a ton of glVertex calls instead of using triangle strip arrays.

Name: Anonymous 2007-01-14 19:26

OpenGL is much more useful in non game programming, but it's still great when used to make games. It would be best to know both, but if your goal is specifically Windows based game programming, DirectX is where it's at.

Name: Anonymous 2007-01-14 20:28

hay guys i heard opengl is going to work better than directx on vistur. confirm/deny?

Name: Anonymous 2007-01-15 5:44

Guys. DirectX was made by Microsoft. This is not inherently bad, but keep in mind these guys did the Win32 API. This means you want to STAY THE FUCK AWAY FROM IT.

(P.S.: The Win32 API "gives more control" too, by not doing much itself and forcing you to specify ONE HUNDRED MILLION FUCKING PARAMETERS.)

Name: Anonymous 2007-01-15 6:31

>>9
Speaks the truth of someone who has programmed in win32.

Actually I've used DirectX myself and it's not nearly as bad as win32. I'd still choose OpenGL though because I don't want to add myself to the heap of schmucks who indirectly work for Microsoft by sponsoring their platform lock-in tactics. If MS wants me to work for them, they can pay me. If they want me to use DirectX they can make an open, freely licensed implementation. Otherwise no.

Name: Anonymous 2007-01-15 12:40

HWND _hwnd = CreateWindow(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

Name: Anonymous 2007-01-15 13:41

>>11

lol

Name: SomeGuy 2007-01-15 13:54

I agree. OpenGL + SDL is a pretty hawt cross-platform resolution.

Name: Anonymous 2007-01-15 13:56

>>11
Hahaha oh wow

Name: SomeGuy 2007-01-15 13:59

I meant "solution", not "resolution". Bah.

Name: Anonymous 2007-01-16 3:10

>>13
1024x768 is a pretty hawt cross-platform resolution, unless you're targeting consoles.

Name: Anonymous 2007-01-16 4:10

>>16 2048x1280 is better.

Name: a 2007-01-16 5:03

I'll go with OpenGL and SDL, for they sound pretty neat.

Thanks for replies, I wasn't expecting much but you really delivered.

Name: Anonymous 2007-01-16 12:15

>>18
You might want to also get the OpenGL red book for reference, so you can look stuff up in there instead of having to search the whole internets.  If you ever want to do more complex 3D projects, look into getting "Real Time Rendering" by Moller, and maybe the "GPU Gems" books that nvidia puts out.

Name: Anonymous 2007-01-16 12:38

It pisses me off that the most recent version of the Red Book still only discusses OpenGL 1.1.

Fine, we can buy the newer books, but hrefs beat flipping though pages any day.

Name: Anonymous 2007-01-16 17:52

>>2
OpenGL is slower than direct 3d(if you know what you're doing) but easier to learn
>>18
I used it once in a project it wasn't bad at all
>>11
QT > win32
>>10
That's how windows became superior to linux and mac

Name: Anonymous 2009-01-14 14:17

lol

Name: Anonymous 2009-03-06 14:28

NULL NULL NULL NULL NULL NULL NULL   NULL hwnd lpszLabel   r oh i   do like the   second one is   permanently stuck with   a copy of   Microsoft Windows wtf.

Name: Trollbot9000 2009-07-01 8:50

NULL NULL NULL NULL NULL NULL NULL  NULL NULL NULL  DWORD NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  HANDLE NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL?

Name: Anonymous 2011-02-02 22:32

Name: Sgt.Kabu睤kiman봶Ò 2012-05-28 21:54

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List