Page 1 of 1

Programming Question...

PostPosted: Sat Mar 24, 2007 5:31 pm
by lawn gnome
Hey do you guys have any good directX tutorials or links. im really interested in learning graphics programming. thanks

PostPosted: Sat Mar 24, 2007 6:58 pm
by Karl G.
Try this:

http://ultimategameprogramming.com/

Not the greatest, but I've found some of its snippets useful. If you really want to learn, get an intro book from B&N.

PostPosted: Sun Mar 25, 2007 4:08 pm
by figgles
3D Graphics programming is going to be a really pain in the bum unless you first understand some of the concepts. Jumping into Direct3D 9 without any theory on:

a) 3D Math/Space
b) 3D -> 2D conversions
c) API <-> OS <-> Graphics Hardware

...is going to leave you wondering what the hell just went on to make that triangle appear on the screen. Direct3D 9 isn't a very beginner-friendly API and assumes you have already passed Calculus III and have been programming with 3D graphics for a long time (= steep learning curve).

It certainly isn't impossible, but without a book or some other formal writing, it will be much more difficult to learn.

PostPosted: Mon Mar 26, 2007 11:45 am
by lawn gnome
thanks for the link karl, i think im going to try learning openGL before i get into directX.

PostPosted: Mon Mar 26, 2007 12:32 pm
by Karl G.
Probably a good choice. There are times when I wished I had learned it first, but both DX and OpenGL have their ups and downs (please don't start a discussion on the specifics)

PostPosted: Mon Mar 26, 2007 3:54 pm
by Xodus

PostPosted: Mon Mar 26, 2007 6:56 pm
by lawn gnome
um im having some trouble with openGL. im using and online tutorial and im stuck on this lesson http://nehe.gamedev.net/data/lessons/le ... ?lesson=06

the problem is im using Dev-C++ and there seems to be a problem with this code
Code: Select all
AUX_RGBImageRec* LoadBMP(char *Filename)
{
   FILE *File=NULL;
   if (!Filename)
   {
      return NULL;
   }
   File=fopen(Filename,"r");
   if (File)
   {
      fclose(File);
      return auxDIBImageLoad(Filename);
   }
   
   return NULL;
}


i get the error
21 D:\Programming\OpenGL\resource.h expected constructor, destructor, or type conversion before '*' token
21 D:\Programming\OpenGL\resource.h expected `,' or `;' before '*' token
D:\Programming\OpenGL\resource.h In function `int LoadGLTextures()':
41 D:\Programming\OpenGL\resource.h `AUX_RGBImageRec' undeclared (first use this function)


the rest of the errors are all based off of that code.... anyone know whats wrong?

PostPosted: Mon Mar 26, 2007 7:44 pm
by Karl G.

PostPosted: Mon Mar 26, 2007 7:49 pm
by lawn gnome
crap i gota skip so many lessons now. lol thanks for the help

PostPosted: Mon Mar 26, 2007 8:59 pm
by Karl G.
no problem. I am pretty good at decypering C++ errors, but if you want more help with OpenGL, Figgles is the person to ask. He really knows what he's talking about.

Karl

PostPosted: Tue Mar 27, 2007 9:55 am
by figgles
The reason that code doesn't work very well is because it uses a library called glaux, which is OpenGL Auxilliary which is an optional library that came with the original OpenGL for Windows 95 (i.e. software rendering) that was vastly ignored.

Unfortunately, that library has been deprecated for close to a decade now and didn't even ship in Windows 98. It doesn't do much, just loads some images really. I suggest that you find a tutorial that doesn't require glaux. I think the site Karl mentioned ,www.ultimategameprogramming.com, has tutorials on how to load images without glaux.