03-28-2003, 12:46 AM
I want to do a 3d engine.
-No wait! Don't go away for that, now read here.
The engine will be based on three major things:
A "floor".
Static or moving objects.
A camera.
The floor wil be created by a two-dimensional matrix of vertices
(the dimensions in the matrix is x and z values of the matrix
(you multiplicate it with n) and the value stored in one of the
"boxes" in the matrix is the y value of the vertex) like this:
This wil create the floor.
Static objects should be trees, bushes, maybe even simple houses,
etc. moving objects will be players etc. (My dream is to create a lan-based 3d game but I will not start with 500 polygons for each player and I will not start with the game but the engine with VERY low-poly objects like first: a floor, second: a floor and a box, ...)
The camera is the player and it can be moved in x,y,z directions
turned 360 degrees and looking up and down =rotating around the
y axis and z axis (?)
The part that involves you is that I want to know the formulas
for this rotating (I know there's a lot of 3D tuts "learn rotating your
own box" but I think it's better to talk to you face to face (lol? anyone?))
Also: What method should I use to know what polygon to draw
before I draw that one?
To end: Big project? h*ll yeah, but I really want to learn this
and I will let it take its time and see it as "education" instead
of a game project that must be finished soon.
Thanks in advance!
PS: I will code this in C++ probably with some opengl lib, for example:
GLUT
-No wait! Don't go away for that, now read here.
The engine will be based on three major things:
A "floor".
Static or moving objects.
A camera.
The floor wil be created by a two-dimensional matrix of vertices
(the dimensions in the matrix is x and z values of the matrix
(you multiplicate it with n) and the value stored in one of the
"boxes" in the matrix is the y value of the vertex) like this:
Code:
*-*-*
|\|\|
*-*-*
|\|\|
*-*-*
* vertex
|\- edge of polygon(s)
This wil create the floor.
Static objects should be trees, bushes, maybe even simple houses,
etc. moving objects will be players etc. (My dream is to create a lan-based 3d game but I will not start with 500 polygons for each player and I will not start with the game but the engine with VERY low-poly objects like first: a floor, second: a floor and a box, ...)
The camera is the player and it can be moved in x,y,z directions
turned 360 degrees and looking up and down =rotating around the
y axis and z axis (?)
The part that involves you is that I want to know the formulas
for this rotating (I know there's a lot of 3D tuts "learn rotating your
own box" but I think it's better to talk to you face to face (lol? anyone?))
Also: What method should I use to know what polygon to draw
before I draw that one?
To end: Big project? h*ll yeah, but I really want to learn this
and I will let it take its time and see it as "education" instead
of a game project that must be finished soon.
Thanks in advance!
PS: I will code this in C++ probably with some opengl lib, for example:
GLUT