graphic problems

hi all,

i’m programming a voxel game and my problem is that i have to put a lot of cubes and if i do this there are some graphic errors. you can see lines between the cubes. here is a screenshot:

please help me

greetz sacredPenguin

Normally OpenGl does not draw such seems if you specify the exact same vertices coordinates for the adjacent polygons.
Don’t do something like :
cube 1 right edge : center1 + 0.5
cube 2 left edge : center2 - 0.5

Just compute each vertice first, then send it :
cube 1 right edge : vertice 3
cube 2 left edge : vertice 3

Of course, your particular OpenGL implementation (hardware/software) may be flawed, but it is n ot likely.

The Voxel is really impressive !

By the way I meant “seams” and not “seems”…

but i use glutSolidCube and dont create the cubes by myself.

You should create the cubes yourself, if you want the seams to disappear. It is not so hard. Or maybe use only integer coordinates, to eliminate floating point rounding errors.