Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


OpenGL Or DirectX 9(fuck vista)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Mon Oct 01, 2007 11:32 pm    Post subject: OpenGL Or DirectX 9(fuck vista) Reply with quote

I wanted to know which is better, OpenGL or DirectX 9. And furthermore if I was to go with OpenGL what would I use for sound, and some good tutorials would be nice.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Oct 02, 2007 4:12 am    Post subject: Reply with quote

This was discussed not too long ago.

And it came down to:
- OpenGL is best for portability.
- DirectX is best for everything else.
Back to top
View user's profile Send private message Visit poster's website
TerryDonahugh
Master Cheater
Reputation: 0

Joined: 12 Sep 2007
Posts: 412
Location: .nl

PostPosted: Tue Oct 02, 2007 4:31 am    Post subject: Reply with quote

I prefer OpenGL because I can use it on Linux. OpenGL on windows gives the advantage that I don't have to recode everything because I want to use one of the newer features. The Direct3D interfaces are slightly different in each generation of D3D, if you'd want to use a D3D10 feature and your code uses D3D9, you will have to update all of your code to use the new interfaces. The interfaces change only every two or three years, but still..

OpenGL is a bit messy with all its extensions, most of them with poor documentation. Direct3D actually comes with pretty good documentation and all of the features you are ever going to need are neatly packed in the D3D interfaces.

For sound one could use the BASS or FMOD libraries, which are fairly easy to use.

_________________
Hello? Mule Farm
Back to top
View user's profile Send private message Send e-mail
Poent
Cheater
Reputation: 0

Joined: 24 Apr 2007
Posts: 32

PostPosted: Tue Oct 02, 2007 11:34 am    Post subject: Reply with quote

DirectX is, simply enough, a more powerful API when compaired to OpenGL. Granted openGL is not bad at what it does. Mac's first new-age OS (and every one sense) has used OpenGL, allowing them to do all of the fancy stylistic effects to their windows, and there are thousands of games that have been made in OpenGL.

As already mentioned, OpenGL is portable across multiple platforms (Mac, windows, linux). Where as DirectX is very specifically a Microsoft Windows only API. So unless you're porting to mac or linux in the near future use DirectX.

I've actually spent the past two years Learning DirectX and it is no easy trip. I'm still not completely use to the syntax it uses and d3d9/d3d10 is a pain in the ass. You should at least be intermediate at C++ before you start learning DirectX. It will help you a lot.

====
Quote:
I was to go with OpenGL what would I use for sound, and some good tutorials would be nice.


when programming in OpenGL you will (more than likely) do your sound using OpenSL ES.

Tutorials:
DirectX:
http://www.directxtutorial.com/Tutorial9/tutorials.aspx
http://www.gametutorials.com/gtstore/c-5-direct3d-tutorials.aspx

OpenGL/SL ES:
http://www.opengl.org/code/
http://www.khronos.org/developers/resources/opengles/


P.S.
If you really get into DirectX or openGL I really suggest you get a book on it. I find that in almost all cases books are better teachers than the internet.

Feel free to contact me if you need any help

_________________


There Are No Stupid Questions, But There Are A Lot Of Inquisitive Idiots.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Oct 02, 2007 1:13 pm    Post subject: Reply with quote

I hear good things about DirectX10, as it's much cleaner, neater and faster than its predecessors. Of course if you don't have the hardware...

OpenGL is nice and clean too, it's seemingly outshined now though in everywhere other than portability now though. If you're interested in OpenGL, go take look at Quake 3's source code. The full source for the engine is available. (as is the source for most other ID games before it...)

I'm still going to recommend using an existing engine and modding it. Unreal Engine 3 is amazingly optimized, well developed and of course, just like all the others, completely modable. Mod teams often make entirely new and different games. There's plenty of documentation on modding for it and it will be out in a month or so if all goes according to plan.

Plus the Make Something Unreal contest will probably be coming back for it, giving not only mod teams a chance to score some cash and stuff, but guys working solo that make their own small mods or changes rather than entire conversions. There's all sorts of categories, for best levels with stock models and things of the such, best custom content, it's a great way to learn and test your skills I would think.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites