Quote: Original post by hksduhksdu I have a question. For example, your vertex number 36 are being used twice. In this case, the first time it is being used is using UV(1.0, 0.0), the second time it MAY use UV(1.1, -0.4). But in your MDX file, your UVs stick with every vertex, how do you resolve this? Thanks, Andysorry... don't understand the question... :(
Any thoughts on my problem?
Cancel
Save
Sorry didn't notice this the first time around... Your face struct has int for the type of your 3 indices, but the index buffer is 16 bit values. You can't memcpy one ot the other. You need to change the face struct to use "unsigned short" (or WORD) instead of int. That is in addition to the stuff I already mentioned.
Cancel
Save
Quote: Original post by reltham Sorry didn't notice this the first time around... Your face struct has int for the type of your 3 indices, but the index buffer is 16 bit values. You can't memcpy one ot the other. You need to change the face struct to use "unsigned short" (or WORD) instead of int. That is in addition to the stuff I already mentioned.well... it seems a bit better now (I can almost distinguish a hand), but still:
thanks again
Cancel
Save
Doom3? [wink] Edit: how did you fix it?
Cancel
Save