Programming Question...

For general discussion of Project Volucris

Moderators: Joe M., Karl G.

Programming Question...

Postby lawn gnome » Sat Mar 24, 2007 5:31 pm

Hey do you guys have any good directX tutorials or links. im really interested in learning graphics programming. thanks
User avatar
lawn gnome
Traveler
Traveler
 
Posts: 93
Joined: Fri Dec 22, 2006 8:55 pm

Postby Karl G. » Sat Mar 24, 2007 6:58 pm

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.
User avatar
Karl G.
Lesser Spirit
 
Posts: 2453
Joined: Sat Mar 04, 2006 10:26 am

Postby figgles » Sun Mar 25, 2007 4:08 pm

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.
push limits
mov reality, dreams
add life, meaning
jmp future
User avatar
figgles
Tradesman
Tradesman
 
Posts: 29
Joined: Tue Jan 23, 2007 3:00 pm
Location: Euless, TX

Postby lawn gnome » Mon Mar 26, 2007 11:45 am

thanks for the link karl, i think im going to try learning openGL before i get into directX.
User avatar
lawn gnome
Traveler
Traveler
 
Posts: 93
Joined: Fri Dec 22, 2006 8:55 pm

Postby Karl G. » Mon Mar 26, 2007 12:32 pm

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)
User avatar
Karl G.
Lesser Spirit
 
Posts: 2453
Joined: Sat Mar 04, 2006 10:26 am

Postby Xodus » Mon Mar 26, 2007 3:54 pm

Xodus
Villager
Villager
 
Posts: 6
Joined: Thu Dec 21, 2006 11:26 pm

Postby lawn gnome » Mon Mar 26, 2007 6:56 pm

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?
User avatar
lawn gnome
Traveler
Traveler
 
Posts: 93
Joined: Fri Dec 22, 2006 8:55 pm

Postby Karl G. » Mon Mar 26, 2007 7:44 pm

User avatar
Karl G.
Lesser Spirit
 
Posts: 2453
Joined: Sat Mar 04, 2006 10:26 am

Postby lawn gnome » Mon Mar 26, 2007 7:49 pm

crap i gota skip so many lessons now. lol thanks for the help
User avatar
lawn gnome
Traveler
Traveler
 
Posts: 93
Joined: Fri Dec 22, 2006 8:55 pm

Postby Karl G. » Mon Mar 26, 2007 8:59 pm

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
User avatar
Karl G.
Lesser Spirit
 
Posts: 2453
Joined: Sat Mar 04, 2006 10:26 am

Postby figgles » Tue Mar 27, 2007 9:55 am

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.
push limits
mov reality, dreams
add life, meaning
jmp future
User avatar
figgles
Tradesman
Tradesman
 
Posts: 29
Joined: Tue Jan 23, 2007 3:00 pm
Location: Euless, TX


Return to Volucris



Who is online

Users browsing this forum: No registered users and 1 guest