User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Game Development section within the Software Development category of DaniWeb, a massive community of 391,549 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,537 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Game Development advertiser:
Views: 10352 | Replies: 20
Reply
Join Date: Jul 2004
Location: cape town South Africa
Posts: 4
Reputation: seankleyn is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
seankleyn seankleyn is offline Offline
Newbie Poster

Question Which programming language or languages are best suited for graphics programming

  #1  
Jul 11th, 2006
I want to start programming PC Games that use lots of graphics. Which Programming language or languages are best suited for computer graphics programming and WHY?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,663
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 16
Solved Threads: 297
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Which programming language or languages are best suited for graphics programming

  #2  
Jul 12th, 2006
Depends, are you thinking of doing 2d gaming or 3d.

3d -> hit the opengl repositories or check directx. Check out something called "ogre" as well.

2d ->you have many options. Languages like java can cope with 2d stuff and also flash.
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Sep 2004
Posts: 9
Reputation: danglingChap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
danglingChap danglingChap is offline Offline
Newbie Poster

Re: Which programming language or languages are best suited for graphics programming

  #3  
Jul 13th, 2006
well, whatever language you use you have to go for either directX or openGL. DirectX best suited for MS platforms and OpenGL to be on Either MS or *NIX platform.

If you use Java/C# then it will work fine but can reduce the perfomance. The reason is that Both JAVA and C# use a layer (JVM in case of JAVA and CLR in case of .NET) which will definitely can reduce the perfomance. Your program first goes to this layer and then to the system from where it will use the OpenGL or DirectX library.

My suggestion is to use either VC or VB if you are looking for a program on Windows and if you wish to be a platform independant then go for the OpenGL+Java combination.
Reply With Quote  
Join Date: Jul 2004
Location: cape town South Africa
Posts: 4
Reputation: seankleyn is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
seankleyn seankleyn is offline Offline
Newbie Poster

Re: Which programming language or languages are best suited for graphics programming

  #4  
Jul 17th, 2006
Thanx guys for the reply. Im not that experienced at programming quite yet, but VB was recommended by u guys as a possibility but to me it seems limited to using pictureboxes and image controls. I don't see how i can possibly manipulate graphics in detail that way. Surely I could'nt use VB or is their an extensive library of graphics functions that i need to discover and use within Visual Basic as well as with the other languages. Then also i must probably learn abouut how to incorporate Directx and Opengl within the language i choose. Am I missing anything.I have a good understanding of the C++ language as well as Visual Basic, now i need to master the advanced features.It promises to be an interesting road ahead. Am i making any sense and do u guys have any suggestions as how i should move forward from where i am and maybe suggestions as to what books to use and use as references to graphics programming?
Reply With Quote  
Join Date: Jul 2006
Posts: 2
Reputation: Rock Ridge Farm is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Rock Ridge Farm Rock Ridge Farm is offline Offline
Newbie Poster

Re: Which programming language or languages are best suited for graphics programming

  #5  
Jul 17th, 2006
Originally Posted by seankleyn
I want to start programming PC Games that use lots of graphics. Which Programming language or languages are best suited for computer graphics programming and WHY?

Check out Aurora - it is a new C++ like language still in beta.
http://rockridgefarm.com - follow the programming links.
Or go to http://ionicwind.com.
Reply With Quote  
Join Date: Sep 2004
Posts: 9
Reputation: danglingChap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
danglingChap danglingChap is offline Offline
Newbie Poster

Re: Which programming language or languages are best suited for graphics programming

  #6  
Jul 19th, 2006
yeah you are on the right track. if you have option between VB and C++ then i'd suggest to go for C++ (VC). download the latest directX/OpenGL SDK and first make a couple of things using these libraries like boxes, polygons. Then the main thing come to work on "Camera", you may need to learn some mathematics also, since there you'll be solving some equations to get the camera focus and objects alignment.
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: Which programming language or languages are best suited for graphics programming

  #7  
Jul 24th, 2006
Java is easier to debug than C++, unless you already know C++ inside out, C++ is a tiny bit faster at matrix calculations, otherwise java and C++ are comparable, they both use DirectX and OpenGL interfaces, and the VirtualMachine layer is passed-through very quickly. I'd rather have portable code that takes 10 extra nanoseconds per minute than native code that doesnt. (my time relationship there is based on nothing but unfounded conjecture)

VB is actually not bad if you use DirectX-in-VB, I made some 2D a long time ago, and there's certainly no loss in potential from using what some people would claim is a "restricted" language. I've never tried DirectX3D in VB, but I think it's supported.

EDIT: to be honest, you'll be learning DirectX or OpenGL rather than a programming language for the graphical part, and they're both similar. The programming language you use is more the programming language you think is best for implementing the object relationships and general aspects of the game engine. Pick your poision based on the packaging.

Matt
Last edited by MattEvans : Jul 24th, 2006 at 11:08 pm.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Nov 2006
Posts: 4
Reputation: AnonCSAddict is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AnonCSAddict AnonCSAddict is offline Offline
Newbie Poster

Re: Which programming language or languages are best suited for graphics programming

  #8  
Dec 12th, 2006
The only problem that I have with Java as a video game language is that you get slowdowns when Java needs to garbage collect your objects...if you create lots of things and need to destroy them, it may slow down your game at an inopportune time due to resources being sucked up by the garbage collector. True, you can fire off the garbage collector periodically, but that still introduces odd spikes in the execution.

Then again you do not have to worry about clean up as much with Java just because of that attribute.

Generally games which do not depend on the "twitchy" factor would be best served by Java, but C/C++ gives you a bit more control over the entire environment. You just have to be more careful to avoid memory problems.

But as MattEvans said, you are basically going to be learning the graphics package. These packages generally translate straightforwardly to any language you chose. As for the graphics package, I wholeheartedly support OpenGL simply because of its ease in portability between platforms. You will have to learn both though if you chose to do Game design for a living.

I like http://www.gamedev.net/reference/art...rticle1775.asp as a summary.
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,774
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 330
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Rebellion Revamped

Re: Which programming language or languages are best suited for graphics programming

  #9  
Dec 12th, 2006
Originally Posted by seankleyn View Post
I want to start programming PC Games that use lots of graphics. Which Programming language or languages are best suited for computer graphics programming and WHY?

PC games actually use a lot of graphics, what you might have wanted to say was that how to make cool commercial games.

Whatever other people say about Java, it still stands that Java has a long way to go when it comes to core or commercial game programming. If you want to make a game which sells on Gamehouse for 12$ a copy, you are most welcome to use VB or Java.

But when it comes to games like Doom III, Halo II and others which blow the professional gaming senario to pieces, you can only dream of achieving it in Java or VB. Name a commercial 3d which has been made in Java or VB ?

As far as the currect situation stands, the core functionality (graphics engine ) is mostly made in C++ while the other gaming functionality can be implemented in Python or C++.

Python developers have actually gone out to prove that it has the power to be recognized as a game development langauge. Some games made in Python - Severance - Blade or Darkness and the famous Freedom Force by Sierra.

IMHO stick to C++ for the time being and you will be a happy man in the end.....
"I don't accept change. I don't deserve to live."

"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
Reply With Quote  
Join Date: Jan 2007
Location: Kansas City, MO
Posts: 55
Reputation: PirateTUX is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
PirateTUX's Avatar
PirateTUX PirateTUX is offline Offline
Junior Poster in Training

Re: Which programming language or languages are best suited for graphics programming

  #10  
Jan 17th, 2007
Call me old-skool, but I'm going to say that C++ is the only only only way to go. It completely compiled, doesn't rely on any middle-level interpretation software (no virtual machine). Visual Basic and Java are great, but when it comes to fast graphics, the C++ and OpenGL combination are the only way to go.
Server Development
WolfWorkz.com
Pirates Registration

Check out my blog to see what's happening with the MMORPG by WolfWorkz Studio.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Game Development Marketplace
Thread Tools Display Modes

Other Threads in the Game Development Forum

All times are GMT -4. The time now is 9:12 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC