I get an error message when trying to open my glTF-file in an external viewer

Solution Number: 1256
Title: I get an error message when trying to open my glTF-file in an external viewer
Platform: All Platforms
Applies to: All Products
Versions: 5.4
Categories: Export, Postprocessing
Keywords: gltf, Image Export

Problem Description

After exporting a glTF-file from my COMSOL Multiphysics model, I get an error message when I try to open it in an external viewer.

Solution

The most probable cause for this issue is that the external glTF-file you are using does not support lines. This is for instance the case with using glTF-files in Microsoft Office or on Facebook.

The workaround is to only export plot groups that contain surfaces to glTF. This means that plotting data set edges in the plot group has to be disabled. Streamline and line plots can be used if they are set to be tubes rather than lines.


Disclaimer

COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.