Tell me more ×  I have got simple 1x1x1 cube model. I draw 3 of
them. They are located at:  1,0,0 2,0,0 3,0,0  I draw them in
the same order every time. When I move the camera and look at
them from one end everything is fine. If I look at them from the
opposite end I can see parts of the cubes that should be
occluded by the cubes.  How can I have them draw properly?Cubes
being drawn out of order  share|improve this question Show us
your drawing code. It seems you're somehow not using the
Z-buffer. –  David Gouveia Dec 15 '11 at 3:45 You were right. I
have a frame rate component up there using a sprite batch which
seems to be turning it off. Removing that component has
everything working fine –  Mr Bell Dec 15 '11 at 4:12 If you put
your comment in the form of an answer, I'll mark it as correct
–  Mr Bell Dec 15 '11 at 4:15 Glad you found the problem so
quickly. I was about to post a minimal working sample for you to
compare with yours. –  David Gouveia Dec 15 '11 at 4:19 add
comment  1 Answer  up vote 5 down