Simple web service to convert 3D models from COLLADA to glTF using COLLADA2GLTF.
This is a code sample that is a starting point for a Node.js web service that converts COLLADA models to glTF. This version just converts a .dae file to a .gltf with embedded geometry, animations, skins, and shaders. It does not handle textures.
Clone this repo. Install Node.js. From this repo's root directory, run:
Start the server:
Invoke the web service by issuing an HTTP request and providing the COLLADA model with POST:
curl -X POST -H "Content-Type:text/plain" -d @test/data/box.dae localhost:3000/convert
Development and Testing
To automatically restart the server during development, install and run nodemon:
npm install nodemon -g nodemon server.js
Install and run JSHint:
npm install jshint -g npm run jshint
Install mocha and run the tests:
npm install mocha -g npm test
Developed by AGI, founders of the Cesium WebGL engine.