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

Some ZE materials lost on import, all specular colour lost on import #15

Closed RJP1992 closed 6 days ago

RJP1992 commented 4 months ago

I have a few models which lose all ZE material attributes upon importing, and I think the loss of specular colour has been around a fairly long time. Is it possible for you to take a look at some example files if you're still active? I have no other details to give other than the imported mesh where material ZE properties are lost has a lot of materials.

Schlechtwetterfront commented 4 months ago

If you upload the files somewhere, I can take a look, sure.

Which exporter created those files?

What are the expected values that are lost on import?

RJP1992 commented 4 months ago

Many thanks! I'll send you the entire folder so you can pick and choose a few examples.

The ones I'm uploading were exported via the blender addon, however it has also happened with models exported with XSIZETOOLS too.

In XSI, it's possibly to define a specular colour for RBG (0 - 1 range) on a material under the specular section. Whatever you set these values to, they are lost upon import (not export as they are read by the game) and all 3 channels read as 1 - pure white.

I have sent a google drive link via your email under your github profile, as the source assets are currently not for public release.

Schlechtwetterfront commented 4 months ago

Just FYI: I got your mail, just didn't get around to have a look yet. Hope I'll have some time at the end of the week.

RJP1992 commented 4 months ago

No rush at all, entirely at your own pace! Thanks for being willing to take a look.

Schlechtwetterfront commented 4 months ago

I just pushed some fixes:

Can you check if it fixes your issues? I tested some of the RO_* files and they seemed to be working fine now.