Markemp / Cryengine-Converter

A c# program to convert Crytek files to Collada (XML) format
https://www.heffaypresents.com/GitHub/
GNU General Public License v2.0
220 stars 53 forks source link

Maintain Original MatID and Rename MultiMat to .mtl name #89

Open Baconator650 opened 3 years ago

Baconator650 commented 3 years ago

image

Current state of of the exporter condenses and alters the original MatID of .cgf and .cga files. Some alternate formats (.skin) keeps the original MatID.

Requesting a mode to keep original MatID order and load all materials in the .mtl, regardless if the material is used or not.

Requesting the name of the MultMat to be renamed the to the source files name.

Example below: image

Markemp commented 1 year ago

Can you provide a bit more info on this? I've made some changes to how material handling is working, so want to make sure this is still an issue, and see if I can make it work more like you need.

Cryengine materials... ugh.

Baconator650 commented 12 months ago

Sorry for the super long response, I can confirm that this and future builds are just containing the name of the material and not the mtl name

vmxeo commented 11 months ago

Just to jump in on this, it appears the naming is breaking our workflow - whereas before it was:

_filename_mtlmatname

it's now just:

matname

We've been using that filename prefix in Starfab to prevent name collisions between materials from different assets that share the same name. If there could be a option to include this it would help our users out immensely :)

Markemp commented 7 months ago

This should be fixed in the v1.6 release. Working on a draft release now.

Baconator650 commented 4 months ago

Wasn't a really a major need for this, but one of the new vehicles (Miria Pulse) have multiple materials with identical names and it is making the autoloader specifically design to work with Blender and the 3DS Max workflow to fail.

Could you please look at the og post on the material format placed on the mesh.

Possible solution: 1.) Have single multimaterial applied to all the meshes, with meshes not using every numerical ID

2.) amend the material naming scheme again to include the the MatID from the .mtl ie: filename_mtlmatname"0"+MatID.mtl

image