
Platform game... display lists ideas, please....
Well... i''m programming a platform game in OGL, but I have a problem...
I can create a display list for only one platform (a simple cube) and change the texture when I have to draw them... but if I put some cubes together, a black line appears between them... Okey, I know this is because I draw two polygons in the same position (for example, the right face of a cube next to the left face of another cube).
Okey... so... what I have to do?
My two ideas are:
1> My first idea is create the cube without the bottom and right face, in other list put them and draw them when necessary... but I have the same problem but not so frequently...
2> The other idea is create a structure with all the faces separetly and create a list for each one (I don''t like this so much)...
For example:
struct {
GLuint front;
GLuint up;
.
.
.
} block;
Well... What I do? Anyone has a better idea??
Okey.. thanks for reading this... I guess someone could help me... It isn''t difficult, is it???
c u soon, dudes...
"Don''t take the life so seriously, ''cause you won''t survive to it"...

=====================================Regards,Juan Pablo (McKrackeN) Bettini Psychoban Official Site:http://www.psychoban.comPsychoban on iTunes App Store:http://itunes.apple.com/us/app/psychoban/id378692853?mt=8
Does this happen if you don''t use textures and just shade the cubes?
I had a problem like this once and it was caused by the fact that a polygon does not quite exactly match the edge of a texture. You might be able to change this behaviour by setting your texture co-ordinates to just inside the border of the texture.
Is your texture set to GL_CLAMP or GL_REPEAT? This might make a difference.
Keef
-----------------------
glDisable(WORK);
glEnable(GL_CODING);
-----------------------Current Project: The Chromatic Game Engine
Hi mckracken! Will your game be in 3D or 3D (a platform game is usually 2D) If it''s going to be 2D, I would use an engine similar to the font engine from Nehe Tuts. Or, if it''s 3D, I would make levels with a quake editor. I''m making a platform game too and I use the second method.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement