Mugen87 / three-m2loader

three.js loader for importing M2 assets from World of Warcraft.
MIT License
25 stars 8 forks source link

Looking for M2 asset with animated colors. #6

Closed Mugen87 closed 10 months ago

Mugen87 commented 2 years ago

M2 allows to animate the color and transparency of vertices. The loader already parses M2Color but it does not yet map the data to three.js entities. AFAICS, M2Color.color would animate Material.color and M2Color.alpha would animate Material.opacity(next to texture weights).

It would be good to know the filename of such an asset for testing (https://wow.tools/) so _readColors() can verified and the animation implemented:

https://github.com/Mugen87/three-m2loader/blob/2a4c56181aefcb3981302086aa2132a7d4892d9d/M2Loader.js#L145

Mugen87 commented 10 months ago

Implemented via 3d87bd0d42db35823f232ff1b0e8bff015d47368.

The airelemental.m2 asset can be used for testing.