can someone explain me why this isn't working?!

Started by
13 comments, last by Pipo DeClown 19 years, 7 months ago
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,

Andy



sorry... don't understand the question... :(


Any thoughts on my problem?
Advertisement
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.
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
hey! guess what:




HUGE thanks you guys! :)
Doom3? [wink]

Edit: how did you fix it?

This topic is closed to new replies.

Advertisement