GlTF: Difference between revisions

From FreeCAD Documentation
(Category:Formats -> Category:File_Formats)
(Added translation tags and some tweaks.)
Line 1: Line 1:
<languages/>
== Background ==
<translate>


</translate>
glTF™ (GL Transmission Format) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. glTF minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets. glTF defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry.
{{TOCright}}
<translate>


==Description==
Website: https://www.khronos.org/gltf/
Repo: https://github.com/KhronosGroup/glTF/blob/master/README.md


The [https://www.khronos.org/gltf/ GL Transmission Format] (glTF™) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. It minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets.
== Importing ==


==Importing==
Currently not supported in FreeCAD v0.19


Currently not supported in FreeCAD.
== Exporting ==


==Exporting==
FreeCAD has native export support for gITF format since v0.19.23074. Access this through the [[Std_Export|Std Export]] dialog.


Since FreeCAD version 0.19.23074 the [[Std_Export|Std Export]] command can export to the gITF format.
=== Alternative export solutions ===


===Alternative export solutions===
Previous to native glTF support there were a couple of workarounds:


For earlier versions these workarounds can be used:
1. Export as STEP → Import into CAD Assistant from Opencascade -> Export glTF

1. Export as STEP → Import into CAD Assistant from Opencascade -> Export to glTF


OR
OR


2. Use the python library {{incode|cqparts}} ([https://github.com/cqparts/cqparts website]) by importing in to the FreeCAD [[Python console]] like so:
2. Use the {{incode|cqparts}} python library ([https://github.com/cqparts/cqparts website]):
{{code|
{{code|
import cqparts
import cqparts
Line 28: Line 32:
}}
}}


<small>Source: [https://forum.freecadweb.org/viewtopic.php?f=8&t=31680&p=449977#p449977 Forum thread]</small>
Source: [https://forum.freecadweb.org/viewtopic.php?f=8&t=31680&p=449977#p449977 Forum thread]


== Related ==
==Related==


* [[Import Export]]
* [[Import Export]]
Line 36: Line 40:




</translate>
{{Userdocnavi{{#translation:}}}}
[[Category:File_Formats{{#translation:}}]]
[[Category:File_Formats{{#translation:}}]]

Revision as of 11:23, 20 December 2020

Other languages:

Description

The GL Transmission Format (glTF™) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. It minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets.

Importing

Currently not supported in FreeCAD.

Exporting

Since FreeCAD version 0.19.23074 the Std Export command can export to the gITF format.

Alternative export solutions

For earlier versions these workarounds can be used:

1. Export as STEP → Import into CAD Assistant from Opencascade -> Export to glTF

OR

2. Use the cqparts python library (website):

import cqparts
cqparts.Assembly.importer('step')('myfile.stp').exporter('gltf')('myfile.gltf')

Source: Forum thread

Related