View Full Version : Whats Better For Game Programming
BullDog_Flash
November 13th, 2004, 01:22 PM
Alright I’m wondering what is better for 3-D Game Programming.
C++ or Java, I heard java is more based for game
I heard C++ was amazing for games also.
A couple questions,
since I don’t know much on Java does it support OpenGL and DirectX,
I Did more information on C++ then java, so I was wondering if you guys could tell me more about java thanks.
λ
November 13th, 2004, 01:30 PM
Alright I’m wondering what is better for 3-D Game Programming.
C++ or Java, I heard java is more based for game
I heard C++ was amazing for games also.
A couple questions,
since I don’t know much on Java does it support OpenGL and DirectX,
I Did more information on C++ then java, so I was wondering if you guys could tell me more about java thanks.
Java is slower than C++, but will work on all platforms. It's half-compiled, half interpreted.
Java supports neither OpenGL nor DirectX, but supports Java3D, which is their own 3D library.
Personally, I'd use C for game development (I happen to hate C++).
BullDog_Flash
November 13th, 2004, 02:02 PM
Alright, So Im gonna forget about Java, and Think about C and C++
Now whats the diffrence between C and C++.
λ
November 13th, 2004, 02:14 PM
C++ is object-oriented (also has loads of other crap like templates and such).
C is much more basic, but less bloated (and half the things like templates can be implemented anyway, yourself).
BullDog_Flash
November 13th, 2004, 04:21 PM
Alright thanks a bunch,
Now do you know of any good and free compiler program for C and maybe an Introduction website so I can see what Im mising out on.
λ
November 13th, 2004, 04:36 PM
Alright thanks a bunch,
Now do you know of any good and free compiler program for C and maybe an Introduction website so I can see what Im mising out on.
I use GCC for C development (it's free/open source). There's a Windows port at http://mingw.org/ - it's all command line unfortunately though. There's a wiki for it here: http://www.mingw.org/MinGWiki/index.php/.
A good tutorial is http://www.strath.ac.uk/IT/Docs/Ccourse/ccourse.html - doesn't cover graphics programming though.
BullDog_Flash
November 13th, 2004, 06:47 PM
Alright thanks a bbunch,
Alright I started to look at the tutorials and relized that its very simillar to C++ coding, same syntax
Anyways, what my problem is, is that when I did the first tutorial, it wont open,
I know its a code problem, well not problem but missing a peie of code.
#include <stdio.h>
main()
{
printf("This is a C program\n")
}
What would I add to make it from closing as soon as it opens up.
λ
November 13th, 2004, 06:52 PM
you need to run it from the console. Goto run -> cmd.exe and navigate to your program, then run it in from command prompt. You should see "This is a C program" come out in your console window. (also, you forgot the ; after the closing parenthese of printf).
BullDog_Flash
November 13th, 2004, 07:20 PM
I noticed the missng ; its was only because of the way I copied and Pasted the code, But How do navagate to the program, it is very hard to do.
Also there must be another way to view it using the cmd.exe
Mik3
November 13th, 2004, 10:11 PM
I would use C++
These days object orientation is a must, also, all of the big games are programmed in C++. Such as Half-Life, Quake, Doom, you name it.
λ
November 14th, 2004, 06:07 AM
I would use C++
These days object orientation is a must, also, all of the big games are programmed in C++. Such as Half-Life, Quake, Doom, you name it. People forget that it's perfectly possible to use object oriented principles in C as well.. for example:
#include <iostream>
class Foo {
int f;
public:
Foo (int y);
void print ();
~Foo ();
};
Foo::Foo (int y)
{
f = y;
std::cout << "Foo:Foo called with parameter '" << y << "'." << std::endl;
}
void Foo::print ()
{
std::cout << "f = '" << f << "'." << std::endl;
}
Foo::~Foo ()
{
std::cout << "Foo:~Foo called" << std::endl;
}
int main (int argc, char *argv[])
{
Foo y (10);
y.print ();
}
I might code this as:
#include <stdio.h>
#include <stdlib.h>
struct _Foo {
int f;
};
typedef struct _Foo Foo;
Foo *foo_new (int y)
{
Foo *foo;
foo = (Foo *) malloc (sizeof (Foo));
foo->f = y;
printf ("foo_new called with parameter %d.\n", y);
return foo;
}
void foo_print (Foo *foo)
{
printf ("f = '%d'.\n", foo->f);
}
void foo_free (Foo *foo)
{
free (foo);
printf ("foo_free called.\n");
}
int main (int argc, char *argv[])
{
Foo *foo_obj;
foo_obj = foo_new (10);
foo_print (foo_obj);
foo_free (foo_obj);
}
Naturally, this is missing exceptions and inheritance and such, but these can be implemented in C. Take a look at the GNOME development libraries if you want to see a fully mature C object system.
The_Vulcan
November 14th, 2004, 02:31 PM
I wouldn't bother with the programming...
Just get your hands on a 3D engine that would take you the next 20years to make on your own. Not that even then you could.
Then you just have to worry about modeling and scripting. Engines like CryEngine (Farycry) I beleive also let you access the under lying code so you can make your own improvments.
ha ha dont mind me I am just lazy. =)
BullDog_Flash
November 14th, 2004, 02:48 PM
I wouldn't bother with the programming...
Just get your hands on a 3D engine that would take you the next 20years to make on your own. Not that even then you could.
Then you just have to worry about modeling and scripting. Engines like CryEngine (Farycry) I beleive also let you access the under lying code so you can make your own improvments.
ha ha dont mind me I am just lazy. =)
Well actually I am Modeling with 3DS Max 6, Just that I have been interested in game programming for years and started off in Actionscript, now that I am doing very well in 3DS Max 6 I feel that I have to expand my Programming Knowledge and make 3-D Games using C++, C, Java, OpenGL, and DirectX and whatever is out there.
I actually put together a team at my school and we have been working on a 3-D car game I did all kinds of concept art, and after dim done learning 3DS max I will then model all the cars into 3-D, Then all of us have to learn programming, and other programs.
As you can see I am very interested in game programming and always will be, Ever since Grade 7.
MTsoul
November 14th, 2004, 03:02 PM
What grade are you in now?
BullDog_Flash
November 14th, 2004, 03:25 PM
What grade are you in now?
Im in grade 10,The sad thing is that I havent been doing much, since grade 7, mainly research.
The_Vulcan
November 14th, 2004, 05:53 PM
3DS Max 6
There is a lot of programming that you can do for 3DS.... plug in's etc.
Although it's the movie industry that uses all their own programming for effects. Games just stick the models in and let the 3D engine do the work.
Personally I couldn't do it, make games engines and write custom scripts for MAX that is. Their is just so much to learn, maths, physics/lighting etc, on top of needing to be a ace programmer.
At uni they start you off with Java, and then move onto C ...... Although they are all a little different the principles are all the same. If you can write simple scripts, loops etc in Flash then you already know the baisics.
T-O
November 14th, 2004, 06:44 PM
I'd go with C. If done some modifers in UT and UT2004 in unreal script. It's allot like C. also most of the core programming is done in C in UT2004.
C is the way to go.
BullDog_Flash
November 15th, 2004, 02:40 PM
I dont car much for Unreal Tounrament, I mean its an awsome game but the Modificationsae just annyoin they should of made one game and only one way to play it, Maybe adding characters but mods are stupid anyways.
http://www.tribaltrouble.com is an awsome game so far I signed up for Beta A bit back and well there still going to be sending an email.
Anyways its made form Java(yea Java) I really good and so far well made, 3-D game made fully in java, and they Used "OpenGL". So I dont think you have to use the Java 3-D Library thing.
Also I think C, and C++ is the way to go, Those are the top Languages so far for Game Proramming.
McGiver
November 15th, 2004, 05:24 PM
try Delphi (really fast and imo easy) if you are going to write many of the parts on your own.
If you want to use premade packages try
c++ (fast, powerful, popular and easy)
Java (rather slow, popular, and comfortable (i.e. garbage collector,...))
assembler (just kidding, but I'm sure it would be extremely fast :P )
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.