Schlechtwetterfront / xsizetools

Softimage exporter and importer for ZeroEngine (Star Wars Battlefront I + II) .msh 3D files.
http://schlechtwetterfront.github.io/xsizetools/
Other
19 stars 4 forks source link

Change .msh vertex colour ordering to BGRA. #11

Closed PrismaticFlower closed 4 years ago

PrismaticFlower commented 4 years ago

This changes the ordering of colour channels in the packed integer for vertex colours to BGRA from RGBA. Making this changes fixes the R and B channels appearing mismatched ingame and in Zero Editor. I am unsure how your versioning and update system works so I have left xsizet.ver alone, if you do need me to update it to some value in order to accept this PR let me know.

A few screenshots to show what this PR fixes.

A simple painted sphere in XSI. in_xsi

The same sphere exported and put in Zero Editor without the fix (ingame would give the same result). in_ze_without_fix

Again in Zero Editor with the fix. in_ze_with_fix

Schlechtwetterfront commented 4 years ago

Thanks for the fix!

Strange that no one noticed (or reported) that before.

Could you increment the last number (sort of like a build number) in xsizet.ver? That should be enough to make it pop up as an update. Then I can merge and do a "release".

PrismaticFlower commented 4 years ago

Done! Just let me know if anything else needs changing.

Schlechtwetterfront commented 4 years ago

All good. Thanks again.