Game Design Music and Art

OpenGL Tutorials – Ereon

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Hey guys. Does anyone know any good places with OpenGL tutorials? Preferably ones that will work with a free C/C++ IDE like DevC++ as opposed to specialized (and rather expensive !) IDEs like VisualC++ and such. I'm pretty much just looking to start from the ground floor and work my way up the ladder, all I really need is a starting place that will give me enough info to start working on stuff. As always, I look forward to your advice.

Ereon

------------------

The time for speaking comes rarely, the time for being never departs.
George Macdonald

Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
http://nehe.gamedev.net/

Neon Helium's OpenGL site is truly a great resource for tutorials.

steveth45

Member

Posts: 536
From: Eugene, OR, USA
Registered: 08-10-2005
I found these tutorials quite instructive when I was learning OpenGL:

http://www.xmission.com/~nate/tutors.html

It is simple enough, that you should be able to compile it without much trouble in any IDE. Code::Blocks does convert Visual Studio projects fairly well. DevCpp hasn't been updated in 2 or 3 years, and I remember the last version being quite buggy. Code::Blocks has superseded it as the best open source C++ IDE for Windows (get the latest nightly build).

I don't know why you think VC++ is specialized and expensive. It's free and very capable. VC++ 2005 Express is easily the highest quality Microsoft-made software I've ever used, and I'm no MS fan, trust me. I use Linux these days, and Code::Blocks is more than adequate, too.

------------------
+---------+
|steveth45|
+---------+

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Well the main problem is that I just can't get my head around Visual C++. I don't know C yet, so all the extra flashy doo-dads make thing increasingly difficult because all I really want is the bare basics. Anyhoo, I'll try that, and give you guys an update soon hopefully.

------------------

The time for speaking comes rarely, the time for being never departs.
George Macdonald

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
oh man if anyone looked and searched for opengl tutorials on c++ it's me.
i've looked everywhere and i have all the tutorials , the nehe tutorial is not good it has a well known memory leak in the glaux.lib library, use glut that is great, the best tutorial ever i have found is http://www.spacesimulator.net that is by far the best tutorial i have seen it's even better than nehe's.

if that doesn't work for you i have a bunch of ebooks for opengl tutorials too, and i can tell you where to look.

if you have any trouble with the libraries compiling(rarely) and mostly building/linking i could tell you what is wrong, i started on a thread for someone to help me in building troubles with borland c++ 5.02 and to date i onlyy have 2 replies ,but after weeks of searching i pretty much know the ins and outs of how to start an opengl tutorial but i still haven't finished one.

------------------
Matthew(22:36-40)"Teacher, which is the greatest commandment in the Law?" Jesus replied: " 'Love the Lord your God with all your heart and with all your soul and with all your mind. This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.All the Law and the Prophets hang on these two commandments."
Whose Son Is the Christ

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
sorry for the double post but i just saw what you said steveth45, i tried downloading visual c++ express edition and it made me download the microsoft .net framework(i think), and after that it said i don't have xp service pack 2 therefore i can't use it, i really don't like using microsoft stuff, i know they make one heck of a good software but unless you have your own company it really isn't good to get addicted to microsoft, lets say microsoft releases visual c++ express edition 2007, then it would probably require you to have vista or otherwise it wouldn't work, just like the office problem, if someone buys office 2003, then all people would have to because they wouldn't be able to read files made in that version of office with products made before 2003, i know microsoft is innovative but microsoft products have serious compatibility issues, the spacesimulator.net tutorial i showed you above is intended for any compiler, it should work with almost any c++ compiler system unlike nehe's.

vc++ is really cool and all but unless you are willing to make an upgrade everytime microsoft wants you to (if you have cash it's ok) you shouldn't get addicted with microsoft products too much.(imo)

------------------
Matthew(22:36-40)"Teacher, which is the greatest commandment in the Law?" Jesus replied: " 'Love the Lord your God with all your heart and with all your soul and with all your mind. This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.All the Law and the Prophets hang on these two commandments."
Whose Son Is the Christ

steveth45

Member

Posts: 536
From: Eugene, OR, USA
Registered: 08-10-2005
Spade, I agree, it isn't good to get addicted to Microsoft solutions, as vender lock-in is always a problem. That's why, if you use VC++, you should still use open API's like wxWidgets or GTK+ for GUI apps, and open source game/rendering engines. If you're careful, it shouldn't be a problem with Visual C++. I wrote Ninja Robot Attack entirely in VC++, but I started with a completely empty project and built it from scratch with standard C++. The same code compiled and ran fine in Linux without modification.

Visual C++ Express 2005 requires service pack 2 of Windows XP, but it will also run on Windows 2000 with its latest service pack, so I don't think Microsoft will be dumping support for XP any time soon. But for development, you should normally expect to download the latest service packs.

------------------
+---------+
|steveth45|
+---------+

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
i did download it and it said i should get service pack 2 other wise it won't install,it brings up an error message, i tried upgrading to service pack 2 but i haven't found any easy way of doing so.i always turn on the windows update manager but it is not upgrading(it's been weeks now).

------------------
Matthew(22:36-40)"Teacher, which is the greatest commandment in the Law?" Jesus replied: " 'Love the Lord your God with all your heart and with all your soul and with all your mind. This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.All the Law and the Prophets hang on these two commandments."
Whose Son Is the Christ

steveth45

Member

Posts: 536
From: Eugene, OR, USA
Registered: 08-10-2005
quote:
Originally posted by spade89:
i tried upgrading to service pack 2 but i haven't found any easy way of doing so.

Go here with Internet Explorer and click on "Download SP2 from Microsoft Update"

http://www.microsoft.com/windowsxp/sp2/default.mspx

------------------
+---------+
|steveth45|
+---------+

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
thanks,i'll try it later on.

------------------
Matthew(22:36-40)"Teacher, which is the greatest commandment in the Law?" Jesus replied: " 'Love the Lord your God with all your heart and with all your soul and with all your mind. This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.All the Law and the Prophets hang on these two commandments."
Whose Son Is the Christ

JonFireblade

Junior Member

Posts: 5
From:
Registered: 02-13-2007
his guys, Listen I was reading over this topic and I was wondering if you know of any free downloadable versions of C++. See I'm completely new to the whole programming aspect of games and normally I wouldn't be trying to get into it, but I've been recently trying to get a project of mine off the ground. But I find myself with nothing to really show for any work I've done so far. So I was advised by a few people to try and put togther a working demo of the game, about 1-3 levels. well what I really need is a "programer's guide for idoits"

Basicly what I need form the ground up on how to put together a working game. Anyhelp is good, and advice is welcome, and any resources you think I could use I'll be gratefull for.

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
I do know of some free versions of C++, but are you sure thats the first language you want to start into? There's lots of other language choices that are easier to do more with, and easier to learn.

A couple would be, Dark Basic (I've heard of it atleast), Blitz 3d, Visual Basic, and other languages.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
I reserve the full right to change my views/theories at any time.

crazyishone

Member

Posts: 1685
From:
Registered: 08-25-2004
You're still looking at C++ the wrong way.

Anyway, he already use(s/d) DarkBasic, he's trying to move up.

------------------

"The CIA must operate within the law.." - Former President Jimmy Carter, trying to solve an old problem. ;)

steveth45

Member

Posts: 536
From: Eugene, OR, USA
Registered: 08-10-2005
quote:
Originally posted by JonFireblade:
See I'm completely new to the whole programming aspect of games and normally I wouldn't be trying to get into it, but I've been recently trying to get a project of mine off the ground

Well, if you don't possess the desire to learn programming, you will not find C++ an easy language to jump into and see amazing results right away. However, it's not as difficult as some make it out to be. I picked up a book on C++ and made my first game with SDL in a couple months. Google is the game programmers best friend. You can find innumerable examples of simple games written in C++.

------------------
+---------+
|steveth45|
+---------+

[This message has been edited by steveth45 (edited February 14, 2007).]

Calin

Member

Posts: 358
From: Moldova
Registered: 12-04-2006
quote:
Originally posted by JonFireblade:
his guys, Listen I was reading over this topic and I was wondering if you know of any free downloadable versions of C++. See I'm completely new to the whole programming aspect of games and normally I wouldn't be trying to get into it, but I've been recently trying to get a project of mine off the ground. But I find myself with nothing to really show for any work I've done so far. So I was advised by a few people to try and put togther a working demo of the game, about 1-3 levels. well what I really need is a "programer's guide for idoits"

Basicly what I need form the ground up on how to put together a working game. Anyhelp is good, and advice is welcome, and any resources you think I could use I'll be gratefull for.


What you need is a compiler. You can download Download Visul Studio 2005 Express ( http://msdn.microsoft.com/vstudio/express/visualc/ ). That will let you 'transform' your C++ code into a working executable.

With C++ alone you won't be able to display graphics. You will also need something called graphics API. There is several of them:
DirectX, OpenGL, SDL, OSG, Irrlicht, Ogre, etc. The first two are low lever APIs the other are high level APIs. High level APIs are build on top of one of the low level APIs. I've oversimplified to make things easier to understand.

If your purpose is to build a game my recommendation is to use a high level API.

Calin

[This message has been edited by Calin (edited February 14, 2007).]

jestermax

Member

Posts: 1064
From: Ontario, Canada
Registered: 06-21-2006
i'd suggest SDL or Allegro for starting out with graphics. you can whip up some demos VERY quickly using some online tutorials (don't be a script kiddy, actually READ what you're copying and pasting :P )
Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
For a compiler If you're running the C++ pathway, I would suggest Dev C++, www.bloodshed.net/devcpp.html .

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
I reserve the full right to change my views/theories at any time.

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
although i am not a game programmer my first language was c/c++, it's not that hard but it does take time and if you want to be a career programmer you really can't do it without learning c++, it's like the industrys standard, but visual basic and others are good too but if you want to be a programmer i really don't recommend those(unless you just want to stick to games coding) you should start with perl,then python then maybe the basics then you can go on to the c/c++, then if you want to get a job you should learn java .

btw you guys know what basic means right ----> beginners all-purpose symbolic instruction code.

perl--->practical extraction and reporting language

you can do cool stuff with web stuff if you use perl(i don't know it)

c++ is the cooles language and i'd recommend that you learn it if you have time to.

------------------
Matthew(22:36-40)"Teacher, which is the greatest commandment in the Law?" Jesus replied: " 'Love the Lord your God with all your heart and with all your soul and with all your mind. This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.All the Law and the Prophets hang on these two commandments."
Whose Son Is the Christ