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
209 stars 53 forks source link

Texture Handling #69

Closed ventorvar closed 2 years ago

ventorvar commented 2 years ago

Rebased to make life easier. This replaces and obsoletes #68 and #67

Fixed path separator normalization for collada texture outputs. This will probably address #54. Absolute paths were be generated like so: /I:\sc\full\Data/objects/spaceships/ships/aegs/textures/interior/atlas/retaliator_cockpit_atlas_diff_diff.dds (notice the conflicting path separators) which would cause import issues with some tools (see Blender)

Refactored material texture handling and discovery for collada output. Should be more robust.
Added a -png option to use .png textures instead of .dds
Added -loglevel parameter to control output levels and updated outputs to use Utils.Log
Added a version number to the usage output

The last two are opinionated changes, feel free to reject and I'll go undo them.