Original Post
I'm learning DX10, and following a series of great tutorials on Bobby Anguelov's blog. Been going fine until I wanted to apply textures to the meshes I made by following his tutorial. You can recreate the exact thing I get by downloading the tutorial here (http://takinginitiative.net/2009/02/24/directx-10-tutorial-5-basic-meshes/), and adding any variable to the vertex structure in "vertexTypes.h". For example, edit the file so it says;
D3DXVECTOR3 pos;
D3DXVECTOR4 color;
D3DXVECTOR2 texCoord;
and then compile and run it. You will see some very strange graphical glitches and I have no idea why or how to fix it. Can anyone help? Thanks.
If you don't want to load up the project, this is what you see: http://imgur.com/W4Qbj.png
It's meant to be a cube.
D3DXVECTOR3 pos;
D3DXVECTOR4 color;
D3DXVECTOR2 texCoord;
and then compile and run it. You will see some very strange graphical glitches and I have no idea why or how to fix it. Can anyone help? Thanks.
If you don't want to load up the project, this is what you see: http://imgur.com/W4Qbj.png
It's meant to be a cube.