I am trying to import a cube in the direct x format exported from blender. i wrote the importer and stored all of the vertex coordinates. i have checked to make sure the coordinates are correct after storing them and they are. Everything seems to line up, but when I render them, they look like this:
From the looks of it, the first triangle(in the back) is rendered correctly, but the next one is scaled, and possibly translated (the translation could be due to scaling), and the next one is scaled a little more and translated a little more, and so on and so forth. Any idea what could be causing this? I included my draw function in the image.
Thanks in advance
Edit: forum scaled the image and made text unreadable. Here is a link to it http://s39.photobucket.com/albums/e172/Craterz/?action=view¤t=problem-1.png