Join us at IRC!
I'd prefer to die standing, than to live on my knees - Che Guevara
Friday, May 25, 2012
Navigation
Members Online
Total Online: 33
Web Spiders: 15
Guests Online: 33
Members Online: 0

Registered Members: 70220
Newest Member: borsche_1110
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 24-06-09 09:29
Hello everyone,

I would like to make a PC game and I have seen many tutorials (very good ones: http://www.riemers.net), but I have a question:

With what can you create the nicest graphics? XNA or DirectX? I also would like to know if you can do more with XNA then DirectX or not.

Besides that, I'm wondering what language is the best for game programming. I'm definitly not using VB .Net couse it is easy to crack... But I don't know what is safer/faster: C# or C++..

Please help!

Greetz Daniel


Author

RE: XNA vs DirectX 10 / C++ vs C#

s3r1al
Member



Posts: 11
Location:
Joined: 06.03.06
Rank:
Elite
Posted on 24-06-09 13:23
definitely directx and C++
C++ is way faster than C#

also, M$ stole half of C# from Java



Sanity calms, but madness is more interesting.
190719729 s3r1al_k1ll3r_f13nd@yahoo.com
Author

RE: XNA vs DirectX 10 / C++ vs C#

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 24-06-09 15:37
definately c++ :p


root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
http://isexu.com
Author

RE: XNA vs DirectX 10 / C++ vs C#

S1L3NTKn1GhT
Member



Posts: 468
Location: XXXX
Joined: 03.06.06
Rank:
God
Warn Level: 10
Posted on 24-06-09 15:37
definately c++ :p


root@wtf.org#su - dumbass

Dude you're AWESOME!
-SystemMeltdown(MSN)
http://isexu.com
Author

RE: XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 24-06-09 16:19
Thanks for the replies! But why is DirectX better then XNA? Can you create better graphics? Or is it just faster?


Author

RE: XNA vs DirectX 10 / C++ vs C#

spyware
Member



Posts: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 24-06-09 16:51
MH-IA wrote:
Thanks for the replies! But why is DirectX better then XNA? Can you create better graphics? Or is it just faster?


You should be comparing DirectX to OpenGL. There are numerous reasons why you should (try to) use OpenGL, but I'll let you decide, check for some facts here: http://en.wikipedia.org/wiki/Comparison_of_OpenGL_and_Direct3D




"The chowner of property." - Zeph
“Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.”
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Author

RE: XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 24-06-09 16:57
OpenGL sounds very good. I will find out how it works :) However, is OpenGL faster then DirectX or is it a matter of the language it is written in?


Author

RE: XNA vs DirectX 10 / C++ vs C#

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 24-06-09 19:02
Yeah, C++ definitely.
as for OpenGL and DirectX, I don't know much DirectX, but I have used OpenGL and it's very easy to use especially with glut. I can even send you example 3D games I've made.
Can you tell us more of how much you already know so we can help you better?


Wisdom spared is wisdom squared.
Author

RE: XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 24-06-09 19:47
For so far, I only made games (testing) in XNA and DirectX. I don't know much about OpenGL... GTA IV has very nice graphics and I was wondering if you can do this with OpenGL or DirectX?

I have followed all the tutorials on the site I posted a few posts ago (riemers.net), so I know much about DirectX and XNA. However, someone on riemers' forum found out DirectX is faster then XNA, so I will surely not us XNA.

Another question about OpenGL: in DirectX, you can import a .x file (which is a 3d object, a car for example) and draw it. It that also possible in OpenGL? I hope so, because it is a very nice technique :D


Author

RE: XNA vs DirectX 10 / C++ vs C#

hellboundhackersok
Member



Posts: 353
Location:
Joined: 20.09.07
Rank:
God
Warn Level: 95
Posted on 24-06-09 23:20
I suggest C++, with the help of a library such as Irrlicht or Ogre3D - which let you use DirectX or OpenGL to your choosing. They both are much easier than directly using DX or OGL. At the moment I'm messing with Irrlicht and it's great.



Paint.NET Pwns
Author

RE: XNA vs DirectX 10 / C++ vs C#

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 25-06-09 01:37
MH-IA wrote:
Another question about OpenGL: in DirectX, you can import a .x file (which is a 3d object, a car for example) and draw it. It that also possible in OpenGL? I hope so, because it is a very nice technique :D


Yes, you can, but what I've seen form my cousin doing it, you have to either make your own object loader or get one off of online. No pre-made functions of that specific type.


Wisdom spared is wisdom squared.
Author

RE: XNA vs DirectX 10 / C++ vs C#

p4plus2
Member

Posts: 167
Location:
Joined: 31.03.08
Rank:
God
Posted on 25-06-09 02:18
ranma wrote:
MH-IA wrote:
Another question about OpenGL: in DirectX, you can import a .x file (which is a 3d object, a car for example) and draw it. It that also possible in OpenGL? I hope so, because it is a very nice technique :D


Yes, you can, but what I've seen form my cousin doing it, you have to either make your own object loader or get one off of online. No pre-made functions of that specific type.


There are two articles I would like to point you to for X files. One a example of how to load X files, the other a warning.

http://www.gamedev.net/reference/programming/features/xfilepc/
http://scientificninja.com/advice/dont-read-source-code

When it says "don't read source code" the way I see it is more of a "don't blindly use source code as if its the only way, look for many examples and know how it works not just what it does."

Goodluck!
(also I recommend openGL as well, in the CPP section of the code bank I left a very rough example of openGL code, its messy and sucks but that is somewhat of the feel openGL has(if you use the GLUT or freeGLUT library)


"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera

"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine
p4plus2@hotmail.com
Author

RE: XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 25-06-09 09:24
Okay, I'm sure I will not use XNA :D So what Slayer706 (thanks for the link) said about DirectX/C++ and XNA: How is it with DirectX/C++ and OpenGL? I don't have very much experience in C, so I don't know if it can do more then C++? C seems easier then C++ but can it (in combination with OpenGL) make easier/nicer graphics then DirectX/C++?


Author

RE: XNA vs DirectX 10 / C++ vs C#

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 25-06-09 18:54
Slayer, I agree with you 100%, but the thing is that's what all of us have been saying, go read up on some comparisons of OpenGL and DirectX, yet he has just insisted on not doing so.
That's the only thing he has left to do is read up on them. We have said all we could.


Wisdom spared is wisdom squared.
Author

RE: XNA vs DirectX 10 / C++ vs C#

MH-IA
Member



Posts: 29
Location: The Netherlands
Joined: 18.02.09
Rank:
God
Posted on 25-06-09 20:35
Thanks for all the reactions!

I know how to use DX and I am now trying things with OpenGL/C++. So I can find out which one I like the most :D Just one question more about OpenGL: If I publish my game and someone install it on his/her pc, which files do I have to copy to ht edestination pc (except the game files). I'm talking about GLUT files. I have read that you have to copy glut32.dll to the system directory (in windows), but is that the only thing to make opengl work?


Author

RE: XNA vs DirectX 10 / C++ vs C#

p4plus2
Member

Posts: 167
Location:
Joined: 31.03.08
Rank:
God
Posted on 26-06-09 06:17
MH-IA wrote:
Thanks for all the reactions!

I know how to use DX and I am now trying things with OpenGL/C++. So I can find out which one I like the most :D Just one question more about OpenGL: If I publish my game and someone install it on his/her pc, which files do I have to copy to ht edestination pc (except the game files). I'm talking about GLUT files. I have read that you have to copy glut32.dll to the system directory (in windows), but is that the only thing to make opengl work?


http://www.videotutorialsrock.com/
bunch of opengl video tutorials. They are nice, but remember this is a very small sample of openGL features and there are many ways to do one thing.


"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera

"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine
p4plus2@hotmail.com
Author

RE: XNA vs DirectX 10 / C++ vs C#

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 26-06-09 17:01
videotutorialsrock is really nice, I must admit.


Wisdom spared is wisdom squared.
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.