MD2 Loader + Animation - Texturing

BlitzMax Forums/BlitzMax OpenGL Programming/MD2 Loader + Animation - Texturing

Thanks :)

Actually the fancy hardcoded pixel flipping trick is not needed.

Just replace


For i=0 To numTexCoords-1
	uvs[i*2]=Float ReadShort(fichier)/ skinWitdh
	uvs[(i*2)+1]=1-Float ReadShort(fichier)/ skinHeight
Next 


with


For i=0 To numTexCoords-1
	uvs[i*2]=Float ReadShort(fichier)/ skinWitdh
	uvs[(i*2)+1]=Float ReadShort(fichier)/ skinHeight
Next 



I'll post a seperate MD2 Model file loader/drawer that can just be included as well as a simple texture helper later if I get the time:)