wowserhq / wowser

World of Warcraft in the browser using JavaScript and WebGL
MIT License
240 stars 63 forks source link

Skin weights for M2 bones are likely supposed to be floats #144

Open fallenoak opened 8 years ago

fallenoak commented 8 years ago

I believe Blizzardry is parsing skin weights (aka bone weights) as uint8s, but three.js expects weights to be floating point values ranging from 0.0 to 1.0. Similar to RGBA values, all we probably need to do is divide the existing values by 255.