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:

2. Import step file, and then export to dae using freecad

3. Lastly, conver dae to gltf with the following tool:

You may test out your gltf with cesium.js
download the latest release here
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