How to convert a step file to gltf for cesium.js

Here is a quick note of generating gltf file without losing colors on the original step file. Since I am converting cad files from my company, I have avoided using online conversion tools.

First, you got to have a step file.(YES)
you can find some sample files here: https://grabcad.com/library

2. Import step file, and then export to dae using freecad https://www.freecadweb.org/wiki/Download

3. Lastly, conver dae to gltf with the following tool:
https://github.com/KhronosGroup/COLLADA2GLTF

You may test out your gltf with cesium.js
download the latest release here https://cesiumjs.org/downloads/
And then run cesium locally with node.js.

Follow the 3D models example to replace the url of sample 3D models to your gltf.

Have fun!

I work as an IT in Taiwan.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store