|
ngusha
|
I Need Help On Game Programming
Please anybody who gets this. I am a rookie in programming I need tutorials on game programming.
|
|
|
|
|
|
|
|
gbengaijot (m)
|
plzzzzzzzzzz ooooooooo i need java programming for dummies as well, can u email it to gbengaijotan"yahoo.co.uk
|
|
|
|
|
|
sbucareer (f)
|
@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)
|
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)
|
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)
|
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)
|
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)
|
I meant <vector> class. c++
|
|
|
|
|
|
sbucareer (f)
|
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)
|
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)
|
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)
|
@Gridlock, what data structurer/objects/primitive data are you trying to manipulate?
|
|
|
|
|
|
Gridlock (m)
|
Very large project <75kb>. I will send u a tarball, ok by u?
|
|
|
|
|
|
Gridlock (m)
|
That was mean for c0dec.
@sbucareer: they are structs describing a 3D object: [array of normals, array of vertices and array of faces]
|
|
|
|
|
|
|
|
sbucareer (f)
|
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)
|
i don't think that'll be useful to Gridlock. 
|
|
|
|
|
|
Gridlock (m)
|
@c0dec: tarball below
Remove the ".jpg" extension, this Forum system don't allow the "tar.gz" filetype.
|
|
|
|
|
|
c0dec (m)
|
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)
|
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  , (maybe u should use STL containers - they work fine for me)
|
|
|
|
|
|
Gridlock (m)
|
Arrgh, now i have to do what i don't have time for: trace and/or start from scratch. Thanks anyway.
|
|
|
|
|
|
c0dec (m)
|
i feel u man. i hate bugs!
what's FPG about anyway? looks/sounds interesting
|
|
|
|
|
|
Gridlock (m)
|
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.
|
|
|
|
|
|
|
|
simreality (m)
|
yes. It's no problem to host them (depending on file size. I can support about 300-400 megs).
|
|
|
|
|
|
Gamine (f)
|
so u guys in naija r big on this what games have u made so far?  ? 
|
|
|
|
|
|
ncpat (m)
|
hey guys i want to know the difference between a programmer and a developer i will appreciate.
|
|
|
|
|
|
c0dec (m)
|
 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 hey guys i want to know the difference between a programmer and a developer i will appreciate private mail at ncpatnig@yahoo.co.uka coder just codes without thinking much about design. a developer designs before coding and tries his best to stick to standards.
|
|
|
|
|
|
Jazz-E
|
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)
|
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)
|
Nice site there men ! check it out Mike that site he gave it's good
|
|
|
|
|
|