Tutorials On Game Programming

A Member? Please Login  
type your username and password to login
Date: December 03, 2008, 04:38 AM
267542 members and 164451 Topics
Latest Member: Fulkpumpisp
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming (Moderator: Dual Core)  |  Tutorials On Game Programming
Pages: (1) (2) (3) (4) Go Down Send this topic Notify of replies
Author Topic: Tutorials On Game Programming  (Read 14572 views)
ngusha
Tutorials On Game Programming
« on: February 11, 2006, 12:37 PM »

I Need Help On Game Programming

Please anybody who gets this.  I am a rookie in programming I need tutorials on game programming.
c0dec (m)
Re: Need Help On Game Programming
« #1 on: February 11, 2006, 06:47 PM »

gbengaijot (m)
Re: Need Help On Game Programming
« #2 on: February 13, 2006, 10:55 PM »

plzzzzzzzzzz ooooooooo i need java programming for dummies as well, can u email it to gbengaijotan"yahoo.co.uk
sbucareer (f)
Re: Need Help On Game Programming
« #3 on: February 14, 2006, 01:52 AM »


@gbengaijot, start a thread I will tech you how to develop software using java. It is better than learning how to program. 

gbade. x (m)
Re: Tutorials On Game Programming
« #4 on: February 16, 2006, 02:15 PM »

umm,  i've got a question to ask. all this e-books being displayed. are they meant for people that have at least a rudimentary or elementary knowledge of game programming, because am interested in programming games but don't even know jack about it. or is it for people like me.

please, someone respond.
c0dec (m)
Re: Tutorials On Game Programming
« #5 on: February 16, 2006, 10:14 PM »

Quote from: gbade. x on February 16, 2006, 02:15 PM
umm, i've got a question to ask. all this e-books being displayed. are they meant for people that have at least a rudimentary or elementary knowledge of game programming, because am interested in programming games but don't even know jack about it. or is it for people like me.

please, someone respond.

em . . . . maybe you should start with nehe first. most of these books are beginner friendly except the ones starting with "beginning".

word of warning: i'll advise you to start with opengl before diving into direct3d. direct3d isn't intuitive at all.
Gridlock (m)
Re: Tutorials On Game Programming
« #6 on: February 17, 2006, 11:35 AM »

Or not to touch D3D at all. OpenGL will allow u run that game on *nix platforms too. And most tutorials tech OGL, anyway.
Gridlock (m)
Re: Tutorials On Game Programming
« #7 on: February 17, 2006, 11:36 AM »

Any body an expert on 3D games here? i have an app that sposed to display a cluster of 3D objects arranged into a cyl and (i think) array indexing is fxcking me up big time! using vectors hasn't solved it either.
Gridlock (m)
Re: Tutorials On Game Programming
« #8 on: February 17, 2006, 11:37 AM »

I meant <vector> class. c++
sbucareer (f)
Re: Tutorials On Game Programming
« #9 on: February 17, 2006, 12:53 PM »



Why don't you create your own collection framework? I'd thought that array, vector, map etc, are there to help solve the issues of handling big amount of data structure.

Here you can create your own data structure like this.

// Container.h
// Definition for class Container

#ifndef CONTAINER_H
#define CONTAINER_H

class Container {

  private:
    Container *ptr;

   public:
                 
     Container();
     ~Container();

     Vector getElement();
     void setElement( Vector *ptr);

};
#endif

Now right a Member definition for the Container class

#include <iostream.h>
#include "Container.h"

using std::cout;
using std::endln;

Container::Container( ){
//do your routine here
}

Container::~Container(){
//destroy your objects
}

Vector Container::getElement(){
  //Manipulate your *ptr to collect all your objects in the class
}

void Container::setElement ( Vector *ptr){
//Set all your object to the class
}


Try the above solution and tell me if it worked for you. Good Luck
Gridlock (m)
Re: Tutorials On Game Programming
« #10 on: February 17, 2006, 01:08 PM »

Uh, the container classes are working fine for me when i (temporarily) disable drawing to the OpenGL canvas. The moment i try to draw the objects in the array, the program x's.
c0dec (m)
Re: Tutorials On Game Programming
« #11 on: February 17, 2006, 01:31 PM »

Quote from: Gridlock on February 17, 2006, 01:08 PM
Uh, the container classes are working fine for me when i (temporarily) disable drawing to the OpenGL canvas. The moment i try to draw the objects in the array, the program x's.

lets see the code, please. i can't help without seeing code
sbucareer (f)
Re: Tutorials On Game Programming
« #12 on: February 17, 2006, 01:36 PM »



@Gridlock, what data structurer/objects/primitive data are you trying to manipulate?

Gridlock (m)
Re: Tutorials On Game Programming
« #13 on: February 17, 2006, 01:44 PM »

Very large project <75kb>. I will send u a tarball,  ok by u?
Gridlock (m)
Re: Tutorials On Game Programming
« #14 on: February 17, 2006, 01:46 PM »

That was mean for c0dec.

@sbucareer: they are structs describing a 3D object: [array of normals, array of vertices and array of faces]
c0dec (m)
Re: Tutorials On Game Programming
« #15 on: February 17, 2006, 02:02 PM »

sure no probs
sbucareer (f)
Re: Tutorials On Game Programming
« #16 on: February 17, 2006, 02:06 PM »



Gridlock, let me try to write a 3D graphic that inherited some behaviors from 2D. It has been long since I did some work like this. If it did not compile let me know.

struct g3D : g2D { // 3 Doubles (Used as x 3 Dimensional Point or Vector)
  gCoord z;
  g3D() {}
  g3D(gCoord x, gCoord y, gCoord z) : g2D(x,y), z(z) {

 }

  explicit g3D(bool Zero) {

    if(Zero)
      Clear();
 }
  g3D(double* DDD) : g2D(DDD) {

    z=*++DDD;
  }

  void Clear() {
  
    g2D::Clear();
    z=0;
  }

  g3D& operator*=(const gCoord& c) {
      g2D::operator*=(c);
      z*=c;
     return *this;
  }

You generally get the idea? the clear function is generally written as x=y=z=0;

Vertices
The g3Point and 2gPoint are used to stick the vertices by providing the arithmetic operation

Vectors
g3Vector and g2Vector will well depend on the graphic package u are using. Look for more information on these.

Remember that gCoord B=1.000000001;
B=acos(min(max(1.0, B), 1.0));
This will not stop the value of B as expected.

c0dec (m)
Re: Tutorials On Game Programming
« #17 on: February 17, 2006, 02:12 PM »

i don't think that'll be useful to Gridlock.  Undecided
Gridlock (m)
Re: Tutorials On Game Programming
« #18 on: February 17, 2006, 04:35 PM »

@c0dec:  tarball below

Remove the ".jpg" extension, this Forum system don't allow the "tar.gz" filetype.

fpg2[2006-Jan-11 2-11am].tar.gz.jpg
* fpg2[2006-Jan-11 2-11am].tar.gz.jpg (16.71 KB - downloaded )
c0dec (m)
Re: Tutorials On Game Programming
« #19 on: February 17, 2006, 05:14 PM »

man, i use VC++. I see you're using DevC++. and you're using the wxwidgets library which i don't have and have never used so this means i can't compile it.

from what i understand, it all compiles but it crashes when u try to render the segments.
so if u comment out DrawSegment(cylinder->segments->Item(i));, it compiles, right?

from reading the wxArray docs, you seem to be doing everything fine, though.
c0dec (m)
Re: Tutorials On Game Programming
« #20 on: February 17, 2006, 05:47 PM »

strange. , your code is legit. maybe the debugger will reveal something. does dev-c++ come with a debugger?

from what i gather (which u probably have figured too), the problem is from one the following:
- the problem could be from the drawsegment method.
- the segment class.
- the wxArray container has a bug  Huh, (maybe u should use STL containers - they work fine for me)
Gridlock (m)
Re: Tutorials On Game Programming
« #21 on: February 17, 2006, 06:00 PM »

Arrgh,  now i have to do what i don't have time for: trace and/or start from scratch. Thanks anyway.
c0dec (m)
Re: Tutorials On Game Programming
« #22 on: February 17, 2006, 07:58 PM »

i feel u man. i hate bugs!

what's FPG about anyway? looks/sounds interesting
Gridlock (m)
Re: Tutorials On Game Programming
« #23 on: February 18, 2006, 01:49 AM »

representation of what goes on in an internal combustion engine from Top-dead center to bottom-dead-center: a quarter cycle. Trying to discretize the engine-cylinder space.
segomoti
Re: Tutorials On Game Programming
« #24 on: March 25, 2006, 04:51 PM »

Hi all,

I would suggest the good man (Ynot) make the download link for the e-books available (even if is for a temporary period). That will free him from the requests to mail individuals and spammers wont have [more] opportunity to harvest requesters email addresses that are being made public. Good that Simreality is offering host-space.

I just came across this (http://www.download.com/Paradigm-3D-Virtual-Reality-ActiveX-Control/3000-2401_4-10509875.html?tag=lst-0-5) today and I understand its made in Naija!
simreality (m)
Re: Tutorials On Game Programming
« #25 on: March 25, 2006, 10:26 PM »

yes. It's no problem to host them (depending on file size. I can support about 300-400 megs).
Gamine (f)
Re: Tutorials On Game Programming
« #26 on: March 28, 2006, 06:49 PM »

   so u guys in naija r big on this what games have u made so far?Huh? Huh Huh
ncpat (m)
Re: Tutorials On Game Programming
« #27 on: April 01, 2006, 02:28 PM »

hey guys i want to know the difference between a programmer and a developer i will appreciate.
c0dec (m)
Re: Tutorials On Game Programming
« #28 on: April 02, 2006, 06:39 AM »

Quote from: AlexWu on March 28, 2006, 07:11 PM
Smiley Hi, C0dec and all:

I have download the ebooks from your link. Thanks a lot.

My question is for the new beginner of 3D programming,
What language is the best to learn?
It looks like the traditional C/C++ is the most popular one,
but ,  there are a lot of new technology/language/engines/libraries
coming out, for example, the C# for DirectX9.
Is it still the best way starting from C/C++?

Hope all 3D programming professionals here can advice.

Thanks.

Alex

yo, give Ynot the credit for the books not me.
 
yes C/C++ is definitely the way to go. if u want to do 3D programming professionally then keep C aside and concentrate on the C++ end (OOP). there's some talk about the industry migrating to C# in the future so it won't be a bad idea to learn the basics of C#.

i'll also advise u to start with OpenGL first instead of DirectX. DirectX isn't intuitive at all and it could put you off totally learning 3D programming. besides that, DirectX is strictly a microsoft API meaning you'll only be able to program for microsoft platforms (PC, windows CE, xbox - no linux, no apple, no PS3 yeah)

thats it dude

Quote from: ncpat on April 01, 2006, 02:28 PM
hey guys i want to know the difference between a programmer and a developer i will appreciate private mail at  ncpatnig@yahoo.co.uk

a coder just codes without thinking much about design.

a developer designs before coding and tries his best to stick to standards.
Jazz-E
Re: Tutorials On Game Programming
« #29 on: April 02, 2006, 01:24 PM »

Hi all,

as anyone got ebooks that were passed around earlier.  I would appreciate any that i could get main interest is DirectX programming in any language c#,c++ or visual basic. Really interested in ebooks that have information about 3D Engine design and game development. Have a couple books such as Game programming in C# but really need to find good book to aid development of a good 3d engine. Also any books on Game design techniques.

Thanks in advance.

can contact at Email address above.
Cactus (m)
Re: I Need Your Help
« #30 on: April 28, 2006, 03:35 AM »

Take a look at this, you may not find everything you need there but maybe one or two information go into the game development section

www.programmersheaven.com
smartsoft (m)
Re: I Need Your Help
« #31 on: April 28, 2006, 05:59 AM »

Nice site there men ! check it out Mike that site he gave it's good
Page 2
Pages: (1) (2) (3) (4) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.