Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change .msh vertex colour ordering to BGRA. #11

Merged

Conversation

PrismaticFlower
Copy link
Contributor

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

Changes it to BGRA which is the expected ordering by Zero Editor and modelmunge.
@Schlechtwetterfront
Copy link
Owner

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
Copy link
Contributor Author

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

@Schlechtwetterfront Schlechtwetterfront merged commit a542617 into Schlechtwetterfront:master Feb 11, 2020
@Schlechtwetterfront
Copy link
Owner

All good. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants