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

Vertex colors don't export correctly #16

Open marth8880 opened 5 days ago

marth8880 commented 5 days ago

I don't believe this happens for all models, but for one of my models the vertex colors export incorrectly no matter what I seem to do. I don't know how to reproduce this, but I've supplied the XSI 2015 scene for you to have a look at it.

Here's how the vertex colors are supposed to look: image

And here's how they appear in-game and in WorldEdit: image

Here's how the affected polymsh ("mess") hierarchy looks: image

And finally, here are the XSI 2015 scene and model files to assist with debugging. Broken vertex colors scene.zip Broken vertex colors emdl.zip

I also made a clip of me going through the problem here: https://www.twitch.tv/aarongamemaker/clip/FurtivePoorHumanMVGame-MNXtqyA_AB02csBr

It's worth noting that all the other polymsh objects in the model seem to have correct vertex colors, it's only the "mess" object that's wrong. I've tried breaking up the mesh, tried deleting the Vertex_Color property and creating a new one, tried messing around with the lights - nothing seems to fix it. Any and all help would be very much appreciated.

Thank you!

marth8880 commented 1 day ago

I think somehow the affected polymsh got corrupted in some way. Extracting the polygons out of it and replacing the old polymsh with the new one fixes this completely.