Skip to content

Instantly share code, notes, and snippets.

@matteopic
Created February 6, 2019 08:41
Show Gist options
  • Save matteopic/cba7a7ae102b71a7dada28d56ffd62b9 to your computer and use it in GitHub Desktop.
Save matteopic/cba7a7ae102b71a7dada28d56ffd62b9 to your computer and use it in GitHub Desktop.
Massive convert .dae to .gltf using COLLADA2GLTF.exe
@ECHO OFF
echo ### CONVERSIONE DAE/GLTF ###
SET DIR=%~dp0
:Loop
IF "%~1"=="" GOTO END
SETLOCAL
CD "%~dp1"
echo Creating file "%~n1.gltf"
"%DIR%\COLLADA2GLTF-bin.exe" -i "%1" -o "%~dp1%~n1.gltf" -v 2.0
ENDLOCAL
SHIFT
GOTO Loop
:END
pause
@matteopic
Copy link
Author

matteopic commented Feb 6, 2019

  • You can drag multiple .dae files over this bat file
  • All gltf files are produced in the same folder of dae file with the same name (but with gltf extension)
  • COLLADA2GLTF-bin.exe has to be in the same folder of this script. Get it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment