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:
Anonymous2007-01-14 15:11
Direct3D is limited to Windows. OpenGL is simple, cross-platform, and has been standardized. Use OpenGL.
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:
Anonymous2007-01-14 17:05
OpenGL is easier. Directx gives more control.
Name:
Anonymous2007-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:
Anonymous2007-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:
Anonymous2007-01-14 20:28
hay guys i heard opengl is going to work better than directx on vistur. confirm/deny?
Name:
Anonymous2007-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:
Anonymous2007-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.
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:
Anonymous2007-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:
Anonymous2007-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:
Anonymous2007-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:
Anonymous2009-01-14 14:17
lol
Name:
Anonymous2009-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.
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