PDA

View Full Version : question about position of objects



alantsang
02-29-2004, 08:48 PM
I am creating several cubes which is right next to each other using GL_QUAD, i.e. a side of the cube would share the same location in the 3d world. My code has problem determining which cube is in front of which in the case where 2 cubes have sides that share the same position in the 3d world. Is there a way that I could tell openGL which cube is in front of which??
Any help would be appreciated.

alantsang
02-29-2004, 08:58 PM
here is the ss http://hk.f2.pg.photos.yahoo.com/ph/innonetz/album?.tok=ph_eXuABQHvp4o8Z&.dir=/48ae&.src=ph

alantsang
03-01-2004, 01:36 AM
I was setting the zNear too close to zero.