Skip to main content
gamedev.net
🔒 Locked

Problem with index buffering..

Started by krad7 2 replies 200+ views
Original Post
krad7
krad7
Ok i used D3DFMT_INDEX16 format for my index buffer and i declared it as WORD * and everything worked just fine. now i change it to D3DFMT_INDEX32 and i changed WORD* to DWORD* and allocated memory appropriately. it stopped working ! i dont know why.. please someone enlighten me on this stuff... if we give the option D3DFMT_INDEX32 when creating index buffer, dx, should read 32 bits for each index, and thatz y i declared DWORD instead of WORD. now y isnt my program working. i have the code at http://www.gamedev.net/community/forums/topic.asp?topic_id=97431. thanks in advance Slow and steady wins the race.
Slow and steady wins the race.
Jim Adams
Jim Adams
32-Bit indices as not widely supported, so you''re better off sticking to 16-bit for now. If you have to use 32-bit, then do what the docs say and check the MaxVertexIndex flag of the device caps.




Jim Adams
home.att.net/~rpgbook
Author, Programming Role-Playing Games with DirectX
krad7
krad7
So if i use 16bit indices, i am limited to 64K vertices right?


Slow and steady wins the race.
Slow and steady wins the race.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.