GithubHelp home page GithubHelp logo

hylelaine / collada2gltf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from khronosgroup/collada2gltf

0.0 2.0 0.0 1.69 MB

COLLADA to glTF converter

License: Other

CMake 1.84% C++ 95.27% C 2.89%

collada2gltf's Introduction

Build Status Build Status

COLLADA to glTF converter

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

Compile from source

1. Clone repository

git clone --recursive https://github.com/KhronosGroup/COLLADA2GLTF.git

2. Install dependencies

Debian

apt-get install cmake libxml2-dev libpcre3-dev libpng-dev zlib1g-dev

Windows

Install Visual Studio

Install CMake

OSX

Install Xcode

Install dependencies with brew

brew install cmake pkgconfig pcre libpng

if the PNG package is not found, the workaround is to Download the the *.tar.gz install from libpng and then:

./configure
make check
sudo make install

3. Compile

cd COLLADA2GLTF
mkdir build
cd build
cmake ..

Linux

make

Windows

Open COLLADA2GLTF.sln with Visual Studio and build

OSX

Open COLLADA2GLTF.xcodeproj and build or if you installed xcode command line tools you can also build in the terminal: xcodebuild -target collada2gltf -configuration Release (or Debug)

4. Run

Linux

./bin/collada2gltf

Windows

./bin/Release/collada2gltf.exe

OSX

./bin/Release/collada2gltf

Usage

collada2gltlf -f [file] [options]
options:
-z -> path of configuration file [string]
-f -> path of input file, argument [string]
-o -> path of output file argument [string]
-b -> path of output bundle argument [string]
-g -> [experimental] GLSL version to output in generated shaders
-i -> invert-transparency
-d -> export pass details to be able to regenerate shaders and states
-p -> output progress
-l -> enable default lighting (if no lights in scene) [bool], default:true
-c -> compression type: available: Open3DGC [string]
-m -> compression mode: for Open3DGC can be "ascii"(default) or "binary" [string]
-v -> print version
-s -> experimental mode
-h -> help
-r -> verbose logging
-e -> embed resources (bin, shaders, available textures) in glTF file
-n -> don't combine animations with the same target
-k -> export materials and lights using KHR_materials_common extension

collada2gltf's People

Contributors

lasalvavida avatar pjcozzi avatar tomped avatar lexaknyazev avatar remiarnaud avatar kermmartian avatar skrat avatar gbeatty avatar elfprince13 avatar heronote avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.