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

Any Example or Detailed Documents on CLI Args? #42

Open
Cyux07 opened this issue Sep 23, 2024 · 2 comments
Open

Any Example or Detailed Documents on CLI Args? #42

Cyux07 opened this issue Sep 23, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Cyux07
Copy link

Cyux07 commented Sep 23, 2024

work fine on just skl,skn and animation. But using with--textures and --materials, there are always a lot of strange errors. I think it's because there is something wrong with my parameter format?

PS F:\GameAssets> .\lol2gltf.CLI.exe skn2gltf -m F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ezreal_base.skn -s F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ezreal_base.skl -a F:\GameAssets\EZ\assets\characters\ezreal\skins\base\animations\ --textures F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ -g ./ezreal.glb
Unhandled exception. System.InvalidOperationException: Material name count and Animation path count must be equal
   at lol2gltf.CLI.Program.ConvertSkinnedMeshToGltf(SkinnedMeshToGltfOptions options) in D:\a\lol2gltf\lol2gltf\lol2gltf.CLI\Program.cs:line 46
PS F:\GameAssets> .\lol2gltf.CLI.exe skn2gltf -m F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ezreal_base.skn -s F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ezreal_base.skl -a F:\GameAssets\EZ\assets\characters\ezreal\skins\base\animations\ --textures F:\GameAssets\EZ\assets\characters\ezreal\skins\base\ --materials M_Ezreal_base -g ./ezreal.glb
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\GameAssets\EZ\assets\characters\ezreal\skins\base\'.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)

My file structure is as follows:
F:\GameAssets\EZ\assets\characters\ezreal\skins\base\

  • animations\
    • ezreal_attack1.anm
    • ...
  • ezreal_base.skl
  • ezreal_base.skn
  • ezreal_base_idol_tx_cm.dds
  • ezreal_base_tx_cm.dds
  • 2x_ezreal_base_idol_tx_cm.dds
  • 2x_ezreal_base_tx_cm.dds
  • 4x_ezreal_base_idol_tx_cm.dds
  • 4x_ezreal_base_tx_cm.dds
@Crauzer
Copy link
Owner

Crauzer commented Dec 1, 2024

The first error:
Material name count and Animation path count must be equal
Basically --materials defines the material names and then --textures defines the textures for those materials in the same order.

@Crauzer Crauzer added the documentation Improvements or additions to documentation label Dec 1, 2024
@ssnangua
Copy link

ssnangua commented Jan 6, 2025

The first error: Material name count and Animation path count must be equal Basically --materials defines the material names and then --textures defines the textures for those materials in the same order.

How to get the material name?

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

No branches or pull requests

3 participants