I am writing a collada model viewer and have been using the BasicEffect.fx from XNA. The model I am trying to render is of a dice(cube) which renders fine only that it is skewed and looks like a trapezium. It renders fine if I use a different effect file.
Slimdx Direct3d9 Model skewing
Here is the screenshot of the model
https://docs.google.com/leaf?id=0BwVB_dthrIq6MTYxMDU3MDgtYmY4YS00MzM5LWI4NDMtZjc3YTQ5Y2E5ZjBk&hl=en
https://docs.google.com/leaf?id=0BwVB_dthrIq6MTYxMDU3MDgtYmY4YS00MzM5LWI4NDMtZjc3YTQ5Y2E5ZjBk&hl=en
Its not skewed.
Your triangle winding order is opposite of your back-face culling mode.
Have a look at renderstates and d3drs_cullmode in particular.
You are seeing the inside of the cube as if the outside faces were see-through.
Your triangle winding order is opposite of your back-face culling mode.
Have a look at renderstates and d3drs_cullmode in particular.
You are seeing the inside of the cube as if the outside faces were see-through.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement