Problem converting directx8.1 to dx9
I have a problem with a terrain generator that was generating nice terrain in a directx 8.1 app. Now when I use the same classes in my directx9 app, after converting the appropriate function calls, it renders totally wrong.
By wrong, I mean it seems that there is one vertex in one corner that is being used in each triangle drawn. I have checked the index buffers and vertex buffers and the values in them are exactly the same as the ones in my directx 8.1 app.
I am thinking I have screwed up with drawIndexprimitive or setstreamsource or something when I added the extra parameters needed for the directx 9.0 version of the API call.
Any help, or stuff I should look for??
Thanks
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement