Thread: Where should I start?

  1. #1
    C++ and openGL Raeliean's Avatar
    Join Date
    Jul 2005
    Posts
    28

    Where should I start?

    I'm very interested in game programming and have been for a very long time, I just noticed this forum because I was going to get help in the c++ forum, anywho what I'm getting at is..

    What language should I learn first? Where are good websites to start? If anyone can hook me up with some good links, I know there's a link page but I don't know what to start with? =(

    I'm a complete noobie, could anyone please help point me in the right direction?

  2. #2
    The Reel Thing
    Join Date
    Jun 2005
    Posts
    44
    Well, it really doesn't matter what language you use, but if you want to make graphical games, you should look into either learning DirectX or OpenGL. OpenGL is just a graphics library, but it can be used on most platforms. DirectX is a full API, and comes with functions to handle sound, and input from joysticks, pads, etc, but you can only use it on windows. Both of these can be used with C/C++. You can also use languages such as Allegro, or SDL to program games as well, but I don't know too much about them.

    I prefer OpenGL myself, a good site for tutorials is http://nehe.gamedev.net. If you wanna go the DirectX path, google "DirectX SDK" and see what you get, and as for tutorials, I have no clue, maybe look in some other threads.

    Good luck!
    Bagpipes – putting the fun back in funeral.

  3. #3
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    If you want to start game programming, I'd say learn either C++ or C#. If you plan on programming games for a living, then it would be more stable to learn C++. C# is powerful, but usually just learned as a hobby since going down that route leaves you limited to Microsoft products essentially.

    You could read a book, or eBook, or two, and a few tutorials, and some practice (of either C++ or C#). Then after being sufficiently ready you could go and learn DirectX or OpenGL. DirectX may come with all the components (its a huge library in size also), but you can mix other libraries to OpenGL to do the same thing. I personally prefer OpenGL, because its cross-platform, easier to learn (for most), and misc reasons. ATM DirectX is basicly dominant in the game programming world, but OpenGL is making its way in and by the time some of us actually do anything commercial it should be more popular.

    After learning the language of choice (C++, or C#) you have all the cards you need to learn the functions to program for windows, or program games, establish internet connections, send sounds/keystrokes, etc.



    I'd recommend these 2 books for C++ (primer first, then the other):
    C++ Primer Plus, //(5th Edition),
    by Stephen Prata

    Accelerated C++: Practical Programming by Example,
    by Andrew Koenig

    Then theres this C++ eBook: http://newdata.box.sk/bx/c/, and theres another one somewhere.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    C++ and openGL Raeliean's Avatar
    Join Date
    Jul 2005
    Posts
    28
    Thanks guys, looks like I'll be learning OpenGL then, just gonna learn c++ here real quick first... anyway, which has more security for a game OpenGL or DirectX or do they both have the same security and hacking prevention?

  5. #5
    Deleting... VOX's Avatar
    Join Date
    Oct 2004
    Location
    VA
    Posts
    94
    My personal view on the differences between OpenGL and DirectX. Imagine openGL as a big, smooth circle, and slowly becoming more "square". Imagine DirectX as a sharp, get-it-done-the-hard-way square, and it's turning into a circle. Sometime in the future, the two will become a square with rounded edges.

    So currently OpenGL is easier to learn but directX is more developed.
    Boy you stink, go take a shower before you continue to code. Better do your laundry and spray your chair too.

    The one and only resource for finding information.

    Next version of windows released!!!!

  6. #6
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    If you are at the very basics of C++ then do a simple text adventure game to begin with, this gets you to grips with varibles finctions and loops, evrey game you play has these included. graphics look nice, but they are quite a learning curve.

  7. #7
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    OpenGL and Direct3D are graphics libraries, they have nothing to do with the security of your game. The security of your game would be the result of your C++ coding, and any security features you impliment. I wouldnt rush into OpenGL, start with text games and learning C++ well will take you further, then add OpenGL to the picture (the graphics).

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

    If we are talking about graphics libraries, Direct3D is not more developed than OpenGL. OpenGL wont change forms anymore than it is, because its simply a graphics library and wont somehow form to be the same shape as DirectX because DirectX includes multiple libraries. However the fact that OpenGL has the same capibilities of Direct3D and can go cross-platform, as well as being smaller in size, and it also allows video manufacturers to impliment new features using OpenGL on their card, which wont be done with Direct3D (unless they ask Microsoft to hardcode it into it), which might be why some people have noticed better renderings on OpenGL vs Direct3D. If we talk about Direct3D vs OpenGL, its no contest They are similar, but OpenGL has a few things that make it better, now if only the other libraries you have to mix with OpenGL (not made by the same people) were as good and in a full family like DirectX.

    However, http://khronos.org/, if you were comparing Open (on that site) vs DirectX, then I'd go with the last poster.. Open is slowly taking the shape DirectX has, though, because its cross-platform, I'd say in a sharper shape than DirectX

    I think the only reason DirectX is still used more commercially is because people have all that premade DirectX code (since its been used a while) they can work with (like those games based on movies that come out all the time) and of course its hard to change that. Of course that is changing and will change completely within the next few years IMHO.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  8. #8
    C++ and openGL Raeliean's Avatar
    Join Date
    Jul 2005
    Posts
    28
    That was REALLY descriptive. Thanks for all the help guys! =D
    Be inspired.

  9. #9
    C++ and openGL Raeliean's Avatar
    Join Date
    Jul 2005
    Posts
    28
    So using just openGL and c++ I can code a game?
    Be inspired.

  10. #10
    Noob programmer + seravance's Avatar
    Join Date
    Jul 2005
    Location
    I your grocers freezer
    Posts
    2
    you guys are a big help. I am friends with Realiean and have wanted to start programming games for a while now.

  11. #11
    Noob programmer + seravance's Avatar
    Join Date
    Jul 2005
    Location
    I your grocers freezer
    Posts
    2
    is there any compiler I need for OpenGL??

  12. #12
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    So using just openGL and c++ I can code a game?
    Yes, definately.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  13. #13
    The Reel Thing
    Join Date
    Jun 2005
    Posts
    44
    If you plan on making games for windows, maybe learning some of the win32 API wouldn't hurt, or learning something for your windowing system if your using Linux, I don't know if you can still use OpenGL or DirectX graphics in console windows (or if you ever could :P)
    Bagpipes – putting the fun back in funeral.

  14. #14
    The N00b That Owns You!
    Join Date
    Jul 2005
    Location
    Canada!
    Posts
    178
    Quote Originally Posted by Raeliean
    Thanks guys, looks like I'll be learning OpenGL then, just gonna learn c++ here real quick first... anyway, which has more security for a game OpenGL or DirectX or do they both have the same security and hacking prevention?
    whpoa there what i p[lan to do (good plan) if you learn something new make a small program out of it with lots of comments and put it in a folder called examples if you cant remember how to do it properly you can always refer to your small retarted programs over loaded with comments

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  3. C++ gui for windows where to start
    By prixone in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2006, 11:48 PM
  4. GNOME Desktop won't start (Mandriva)
    By psychopath in forum Tech Board
    Replies: 10
    Last Post: 07-19-2006, 01:21 PM
  5. Start bar color in WinXP
    By confuted in forum Tech Board
    Replies: 4
    Last Post: 05-03-2003, 06:18 AM