We have years of experience working with the glTF format in our 3D solutions. We’ll share resources for working with glTF files, organizations that support the format, and what’s next for this royalty-free 3D file format.
In this article:
- Difference between glTF and GLB
- Resources for developers working with glTF files
- Tools for converting to and from the glTF format
What’s a glTF File?
GL Transmission Format (glTF) is an open-source and royalty-free 3D file that supports static models, animation, and moving scenes. glTF is used in games, native web applications, AR, VR, and 3D ads. You can also embed glTF files in documents like Microsoft Word or PowerPoint files.
The first version of glTF was discussed in 2012 as an update to COLLADA related to WebGL, but a new format made more sense. The Khronos Group developed the format in 2015 when they released the glTF 1.0 specification. They saw the need for a fast-loading and efficient format that developers could open and edit in a variety of graphics and 3D apps. Several companies (including Microsoft and Oculus) embraced the format the following year.
What Is glTF 2.0?
In 2017, the Khronos Group released version 2.0 of the specification at the Web3D conference. Version 2.0 added the following functionality:
- Physically Based Rendering (PBR), which allows shadows and light to appear more realistic. PBR is both portable (meaning it works the same way across platforms) and scalable (meaning it can keep up with growing demands). PBR uses two material models to create the appearance of an object. The first is Specular-Glossiness, which combines diffused color, specular color, and glossiness. The second is the Metallic-Roughness, which combines a base color, metallic gradient, and roughness.
- An updated version of the binary file.
- Coding updates for speed and improvements in animation.
The glTF 2.0 scene description structure defines how objects and scenes appear. The JSON (glTF) file contains:
- Node hierarchy, nodes are objects in a scene, and a node hierarchy outlines how they relate.
- Descriptions of the PBR material textures used to define the appearance of the object.
- Camera information, which outlines the directions and angles where you can view the objects or a scene.
The binary file (.bin) stores buffer data, which can contain skin, animation, and geometry information. The skin data helps ensure the texture appears correctly on the object’s surface. There may also be an image file (e.g. JPEG or PNG) that it can use as texture.
glTF vs. GLB
Working with glTF Files and Other Resources for Developers
There are a lot of tools available for working with glTF files. All of those listed below are for version 2.0 unless otherwise noted.
Khronos posts a lot of glTF information on GitHub, including the glTF 1.0 and 2.0 specifications and an extensive set of glTF tutorials. Developers can use these to learn how to use the format. They can also read questions and answers by devs about glTF on Stack Overflow.
How to Open and Edit glTF Files
Many 3D programs can open glTF files that you can also use for editing. Here’s are some of the most popular apps:
- Blender, a free open-source application
- Microsoft 3D Paint for Windows, which is free
- Sketchfab, a browser-based tool
- Earth, which you can use to add 3D objects to Google Earth
- CityEngine, an app for drawing and manipulating cities (both real and imagined)
How to Open a glTF File in Blender?
Download and install the Blender importer add-on, available on GitHub. Open Blender, click File, click Import, then click KSons’ glTF 2.0 (.glb/.gltf).
How to Create a glTF File
Many 3D applications allow you to save files in the glTF format. They include Autodesk Maya, Blender, Modo, Paint 3D, Substance Painter, and Vectary. You can create glTF’s in other applications using an exporter, like Autodesk 3DS Max.
How to View glTF Files
You can use a glTF viewer to examine the 3D object encoded in the file, and in many cases, debug errors. There are drag-and-drop viewers, downloadable applications such as clay-viewer. Here’s a mobile app from 8th Wall, and a Vispolygon viewer. There is also code that allows you to embed a viewer on a web page.
How to Convert glTF Files
Many conversion tools that enable importing and exporting glTF files for graphics programs that don’t have native support for glTF. These tools include the Khronos importer and exporter for Blender, exporters for 3D Max, Maya, and Unity, and a SketchUp importer and exporter, a Cinema 4D exporter, and Assimp, a free tool that converts between glTF and other 3D formats.
How to Import glTF into Unity?
Unity is a game creation engine created by Unity Technologies. Unity doesn’t currently support glTF. However, Khronos has posted a set of tools on GitHub that you can use to import glTF files into Unity.
How to Convert glTF to OBJ?
Wavefront Technologies created the OBJ format. There are multiple online tools, including Aspose, that allow this conversion. Some applications also support both file types, including Microsoft 3D Builder and Blender, and import the glTF and export it as OBJ. Learn more about this format by reading Everything You Need to Know About OBJ Files.
How to Convert FBX Files to glTF?
FBX files are associated with Autodesk, and as such, there are many online tools you can use to make the conversion, including Model Converter. Windows users can also use Paint 3D. Learn more about this format by reading Everything You Need to Know About FBX Files.
How to Convert glTF Files to FBX?
You can use the Aspose converter. Windows users can also use Paint 3D for this conversion.
How to Convert C4D Files to glTF?
C4D is the native format for the Cinema 4D application. You can use Model Converter (among others) to convert C4D to glTF
How to Convert USDZ Files to glTF?
USDZ files are from Apple’s ARKit. There’s currently not a way to directly convert USDZ to glTF. Learn more about what you can do with this format by reading Everything You Need to Know About USDZ Files.
Why Is the glTF Format Popular?
Khronos promotes glTF as the JPEG of 3D. They believe that the format is so useful that it will become as ubiquitous as the JPEG format for 2D images. The glTF format works well for augmented reality (AR) and virtual reality (VR) because it supports both motion and animation. The file format is also relatively small and fast loading. The release of version 2.0 added more realistic treatment of light and shadow, making glTF and even better choice for VR and AR applications. Video game developers also use glTF to create realistic-looking scenes in web applications like Facebook and to create CGI videos for ads.
Industry Support for glTF
Many software and hardware companies, industry associations, and other businesses have used glTF. These organizations include:
- AREA (Augmented Reality for Enterprise Alliance)
- Candera CGI Studio
- Safe Software
- Web3D Consortium
What Is the Future for glTF?
Like the rest of the software world, file formats need to be updated to provide functionality that meets the needs of users. Khronos is accepting suggestions and requests from users. Among the options:
- COLLADA to glTF converter
- Support for Unreal, Autodesk, and Blender
- Exporter for Unity
Additionally, Khronos is looking for feedback about various aspects of the ecosystem:
- If developers need more support tools (like the validator)
- The conformance testing process
- A JSON schema
- Support material
- Additions to the specifications
3D Modeling Services and Marxent® 3D Cloud
Creating 3D files is the first step in making 3D images accessible. Having a tool that will allow you to make your complete product catalog available in 3D, export assets to most file formats, and deliver customer applications is essential. Marxent’s 3D Cloud is capable of storing assets generically, providing access to team members when and where they need them. Use the solution to produce consumable format types for many other platforms and search engines, including USDZ, glTF, OBJ, and Google 3D Visual Search.
Marxent’s 3D modeling services are designed to deliver reusable, rapidly rendering 3D assets for enterprise-level ecommerce applications. Our commitment is to ensure that your content investment delivers realism, consistency, and speed, while also optimizing for scale and asset reuse. With nearly a decade of experience in the creation of reusable 3D content for commerce, Marxent is the 3D modeling services provider of choice for major omnichannel furniture and home improvement retailers and manufacturers.
Learn more about our 3D modeling services for product visualization.