COLLADA to glTF converter for Mac

A command-line tool to convert COLLADA (.dae) files to glTF.

Releases

Compiled binaries for Windows and Linux can be found under releases. It is recommended to use the last versioned release

Compile from source

  1. Clone repository
git clone --recursive https://github.com/KhronosGroup/COLLADA2GLTF.git
  1. Compile
cd COLLADA2GLTF
mkdir build
cd build
cmake .. 切换到cmakelist.txt文件所在目录
make
编译出现报错

fatal error: 'experimental/filesystem'

升级gcc
brew install gcc@6
cd /ABSOLUTE/PATH/TO/PotreeConverter/build
cmake -DCMAKE_BUILD_TYPE=Release -DLASZIP_INCLUDE_DIRS=/ABSOLUTE/PATH/TO/LASlib/LASzip/dll/ -DLASZIP_LIBRARY=/ABSOLUTE/PATH/TO/LASlib/LASzip/build/src/liblaszip.dylib -DCMAKE_C_COMPILER=/usr/local/Cellar/gcc\@6/6.4.0_1/bin/gcc-6 -DCMAKE_CXX_COMPILER=/usr/local/Cellar/gcc\@6/6.4.0_1/bin/g++-6 ..


  1. Run
COLLADA2GLTF-bin[.exe]
  1. Run tests
COLLADA2GLTF-test[.exe]
GLTF-test[.exe]

Usage   使用:./COLLADA2GLTF-bin -i Cesium_Man.dae

COLLADA2GLTF[.exe] [input] [output] [options]

Options

FlagDefaultRequiredDescription
-i, --input Yes ✅Path to the input COLLADA file
-o, --outputoutput/${input}.gltfNoPath to the output glTF file
--basepathParent of input pathNoResolve external uris using this as the reference path
-s, --separatefalseNoOutput separate binary buffer, shaders, and textures
-t, --separateTexturesfalseNoOutput textures separately
-b, --binaryfalseNoOutput Binary glTF
-m, --materialsCommonfalseNoOutput materials using the KHR_materials_common extension
-v, --version NoglTF version to output (e.g. '1.0', '2.0')
-d, --dracoCompressionfalseNoOutput meshes using Draco compression extension
--qp NoQuantization bits used for position attributes in Draco compression extension
--qn NoQuantization bits used for normal attributes in Draco compression extension
--qt NoQuantization bits used for texcoord attributes in Draco compression extension
--qc NoQuantization bits used for color attributes in Draco compression extension
--qj NoQuantization bits used for joint indice and weight attributes in Draco compression extension
--metallicRoughnessTextures NoPaths to images to use as the PBR metallicRoughness textures
--specularGlossinessfalseNooutput PBR materials with the KHR_materials_pbrSpecularGlossiness extension
--lockOcclusionMetallicRoughnessfalseNoSet metallicRoughnessTexture to be the same as the occlusionTexture in materials where an ambient texture is defined



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值