Results 1 to 13 of 13

Thread: 3D game programming and C++

  1. #1

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94

    3D game programming and C++

    That's right folks, time for another 'newbie' thread. Sorry if that bothers anyone

    Basically the point of this thread is this: I know VB, and I also know VB is not at all good for the kind of stuff I want to be doing (being 3D RPG programming). I know C++ is more than capable of doing so, but I am a complete beginner. So I have a few questions. Keep in mind I don't know C.

    1. Does anyone have any recommendations for tutorials for COMPLETE BEGINNERS about cpp programming in general for those that don't know C (not game programming, I know I have much to learn before going that far)
    2. Does anyone have any recommendations for books for COMPLETE BEGINNERS about cpp programming in general for those that don't know C (again, not game programming)
    3. Does anyone have any recommended cpp compilers?

    Thanks everyone, much appreciated.
    www.mindset1.com
    Religious Debate Forums

  2. #2

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    I did see the 'Tutorials' thread at the top but some answers to those questions could be helpful, thank you.
    www.mindset1.com
    Religious Debate Forums

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Well, first, you're taking as if C is a prerequisit (sp?) for C++. It's not. Don't even bother with C. Forgot C exists. Just learn C++.

    First thing I would do is build some console apps, get a grasp on the language, then start moving to some OOP concepts such as classes. Build a few applications. Come up with some problems and solve them.

    You know all those dumb assignments programming teachers give? "Make a bank program to record deposits and withdrawals from a bank acount." Come up with some of them and make them.

    Once you get good at that and have a good grasp on C++ syntax and ideas, then start asking about game programming and what not.

    Start small and build. Take it one step at a time.

    C++ compilers? Do a search. There have been discussions about them. You can find many, many opinions and compilers.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    I'm currently reading http://www.cplusplus.com/doc/tutorial/index.html. It's pretty good.

    And I recommend VC++ as compiler, if you have it.
    K i n g s

  5. #5

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    Thanks.

    Well, I wasn't really taking it as though C was a prerequisite, however some people for some reason find it imperitive that you know C before even uttering the words "C PLUS PLUS". So thanks. I'll check it out.

    Anymore ideas/suggestions are more than welcome.
    www.mindset1.com
    Religious Debate Forums

  6. #6

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    By the way kings, this tutorial is good so far! I just went through the first bit, and it's excellent. I'm glad to find a tutorial that talks to me as if I litterally don't know anything at all
    www.mindset1.com
    Religious Debate Forums

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    That tutorial is wrong. It's using the wrong iostream library.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    www.cprogramming.com

    and don't expect any 3D RTS games soon

  9. #9

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    Originally posted by SteveCRM
    www.cprogramming.com

    and don't expect any 3D RTS games soon
    Okay that's wonderful, I said RPGs, not real time strategy games. Also read the whole thing, I said I'm not planning on making 3D games or any games for that matter any time soon.

    Thanks for the tutorial though.
    Last edited by H-Zence; Nov 17th, 2002 at 06:05 PM.
    www.mindset1.com
    Religious Debate Forums

  10. #10
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64
    Also Thinking in C++ is free off the authors website. I honestly don't remember the url, but it's been posted in the forums a bunch. I found www.winprog.org FAQ/tutorial to be helpfull. Also Programming Microsoft Windows by Charles Petzold. But the book assumes knowledge of c/c++.

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Petzold's book is not for learning C++, it's for learning using the windows API. That's the next step, but not necessary yet. And the book is completly in C, which shouldn't be a problem once you know C++ well.

    As parksie said the tutorial at www.cplusplus.org is using the old deprecated libraries. This means you have to replace some includes:
    The files
    <iostream.h>
    <fstream.h>
    <string.h>
    <vector.h>
    <iomanip.h>
    <list.h>
    and quite a few others are to be replaced by
    <iostream>
    <fstream>
    <string>
    <vector>
    <iomanip>
    <list>
    Basically you just take the old header name and remove the .h. There are some exceptions: the headers of the C library, which you replace using a different scheme:
    <stdlib.h>
    <stdio.h>
    etc. become
    <cstdlib>
    <cstdio>
    ...
    You remove the .h and insert a c at the beginning.

    If you have any of these new headers you also have to add the line
    using namespace std;
    after all include directives. You can do a search on 'namespace' on this forum to find out more.

    Most headers that don't belong to the core language (like windows.h) don't have an equivalent using the new convention.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  12. #12

    Thread Starter
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    Thanks everyone. If you have any more suggestions just keep posting them. Thanks again
    www.mindset1.com
    Religious Debate Forums

  13. #13
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    These guys have some really good tuts
    http://www.gametutorials.com/

    Also
    http://www.gamedev.net/
    http://www.drunkenhyena.com/
    Have good info
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width