Original Post
RESOLVED I was currently using a dynamic index buffer, or so I though, until today when I was adding in degeneative triangles to my terrain, and noticed, much to my dismay that my index buffer broke: http://photobucket.com/albums/c305/biohaz1/?action=view¤t=INDEXBUFFERISFed.gif I have no idea on what happened, but using the settings I had, I was getting triangles every direction if I did not use the entire buffer (I do not remember if I was working on the lod with the dynamic flag or not, so I may have triggered it when I was trying to clean up my code). Now this is the current working buffer, with the defunct one commented out.
if(FAILED(_pDevice->CreateIndexBuffer(numindicesperpatch * sizeof(WORD),
/*D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY*/0, D3DFMT_INDEX16,
D3DPOOL_MANAGED/*DEFAULT*/, &_vecpIndexBuffers[patchindex], 0)))
How would I do one dynamically correctly? Does the Index buffer need the DYMANIC flag or is it just for the vertex buffer? Thanks EDIT: Broke up the long line of code - it was messing up the way your post was displayed. [Edited by - Valor Knight on January 29, 2006 4:09:01 PM]