PDA

View Full Version : Beginner Questions


Ifx3d
09-28-2003, 06:29 AM
Hey guys!

I was wondering if yall knew any website with tutorials for beginners on C++ code. I have a book on coding 3d games with Direct3d 7.0 and C++ i think....is this what i am looking for?

If you all could point me in the right direction with any books, tutorials, ect. that could be of help I would greatly appreciate it!

thanks guys!

dead_eye
09-28-2003, 09:37 AM
No, DirectX 7 is extremely outdated. It's at least 4 years old. I remember playing with it way back late 1999 or so. Pick up a book on DX9 programming, Moller's Real Time Rendering, a book on data structures, and an advanced C++ book. Also pick up a game SDK like the Croteam's SeriousSam SDK, Monolith's NOLF 1.03 SDK. The graphics code is hidden, but much of the math routines, BSP tree implementations are visible and you can learn alot from them. Also, pick up a source forge graphics engine like crystal space or ogre and see how they do things. Also check out OSG or open scene graph. Take all the best parts of what you've learned from these things and you'll be rearing to go.

Ifx3d
09-28-2003, 06:14 PM
ok thanks!

Is it possible to download any of these engines like Serious Sam?

stew
09-28-2003, 08:59 PM
What exactly are you aiming for? Writing games, visualization or software rendering?

If you're not fluent in C++, I'd recommend starting with that first, leaving the graphics part away. I suppose it would be too much for the beginning having to twist your head around pointers, templates and classes while at the same time dealing with normals, transformations and coordinate systems.

dead_eye
09-28-2003, 10:00 PM
After you learn C++ and can read stuff like:
CEntityPointer m_penPlayer; (smart pointer class)
CPlayer* player = (CPlayer*)&(*(&m_penPlayer));

download

Serious Sam SDK
http://files.seriouszone.com/catdisplay.php?catid=19

No One Lives Forever SDK
http://www.noonelivesforever.com/downloads/

Remember, these SDK's pretty much hide all the graphics routines. But alot of the math stuff is visible, and you can learn alot from them! Especially if you're stuck with quaternions, you'll really see how they are used in games just by looking at their source (like how HPB is correctly converted to normalized axis vectors). You'll also get to explore their AI code and stuff. It's some pretty neat stuff.

Also, download this:
http://www.mesa3d.org/

It's an open source OpenGL implementation. Don't use it for your games, because I think it uses WinG still lol. But look at the code, especially the glu library. I know when I wanted to make my own camera system years ago I was so stuck, but after looking at how OpenGL does it with gluLookAt, it became a breeze.

Here is the crystal space graphics engine. Also look at their math routines, collision routines, and see how they handle rendering too.
http://sourceforge.net/projects/crystal/

Here's a link to OGRE. Same thing as crystal space, just a different style. Once you've seen one sourceforge engine you've seen them all :p.
http://sourceforge.net/projects/ogre/

You will learn more by looking at other people's code than you will ever learn in books. Books will only teach you so much, then you have to go out, download as much code as you can, and see how the pros do stuff.

Also, download a good scene graph implementation, like OSG.
http://openscenegraph.sourceforge.net/

Ifx3d
09-28-2003, 11:29 PM
I am aiming I guess writing games. Not the engine but the c++ code for the games.

One more question, I have a c++ compiler and i am already learning basic c++ coding, but what is the difference between my compiler and Visual C++ 6 (isnt there a 7.0?) and were can I get this (download, strore, online etc)?

The compiler i am using is called Open Watcom.

stew
09-28-2003, 11:37 PM
Visual C++ is a full development environment, more than just a compiler. Version 7 is called .NET and is available in different editions (Standard, Professional, Enterprise) at the usual software outlets.
But you don't need it, in fact, I found that for beginning programming a command line compiler is more convenient than an IDE. Setting up a new project for HelloWorld.cpp is more hassle in most IDEs than simply typing "cc -o HelloWorld HelloWorld.cpp". And before you spend money on VC++, you can take a look at the $0 alternatives, I heard good things about Eclipse.

Ifx3d
09-29-2003, 05:31 AM
Hey, I also wanted to ask if looking at Unreal 2003 code would help me?

dead_eye
09-29-2003, 07:27 AM
No. If I recall right coding unreal mods doesn't require Visual C++. It uses something called UScript, which gets compiled in Unreal Editor and looks something like JavaScript.

Ifx3d
09-30-2003, 01:15 AM
Yea, i knew it was coded in Uscript but was wondering if it was going to help taking a looksy at it...i am assuming not

CGTalk Moderation
01-14-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.