Converting Onshape & STEP Files to glTF
AdvantageScope's 3D view accepts custom models for fields and robots, which can be installed using the process described here. All models must use the glTF file format, chosen for its efficiency when storing and loading models. Note that AdvantageScope uses the binary form (.glb), which includes all resources in a single file, rather than the pure JSON form (.gltf).
Converting Onshape to STEPโ
While Onshape includes an export option for glTF, this often produces very large files that are difficult to manage. Instead, it is recommended to export from Onshape to STEP, then follow the instructions in the next section to convert to glTF.
- After opening the Onshape file, right-click on the main assembly and choose "Export...":
- In the options pop-up, ensure that the export format is "STEP" and click "Export":
- Wait for the file to convert and download. This may take a few minutes.
Converting STEP to glTFโ
-
Download CAD Assistant. This free application is able to convert between many 3D formats, including STEP and glTF.
-
Open CAD Assistant and select the STEP file to convert:
-
Wait for the STEP file to import. This may take a few minutes.
-
Click the "Save" icon:
- Choose a save location, then use the drop-down to switch the export format to "glb":
- Click the gear icon, then enable "Merge faces within the same part":
- Click the "Save" icon and wait for the export to finish: