ive fixed the clipping problem, but my z buffer and screen clearing is still bad

also. after loading the .x mesh file, is it possible to get the vertices and save it into my own custom format?