Hi all,
I'm having trouble to get z-buffer to work properly on my isometric tile map. (using glOrthof() projection)
I've created and bound a depth buffer and enabled it. however during rendering, it only seems to work properly when my player character is walking behind other objects on the map. however, whenever the character gets in front of an object, the overlapping part between character and object does show up, meaning the entire object gets rendered and my character gets cut off from where the overlapping starts.
I'm stuck with this problem for 3 days and couldn't figure out why. any help is much appreciated!






