Questions tagged [gltf]

The GL Transmission Format (glTF) is a runtime asset delivery format for GL APIs: WebGL, OpenGL ES, and OpenGL. glTF bridges the gap between 3D content creation tools and modern GL applications by providing an efficient, extensible, interoperable format for the transmission and loading of 3D content.

The GL Transmission Format (glTF) is a runtime asset delivery format for GL APIs: , , and . glTF bridges the gap between 3D content creation tools and modern GL applications by providing an efficient, extensible, interoperable format for the transmission and loading of 3D content.

The need for a network-enabled 3D content delivery format such as glTF has been compared to the need for JPEG for images, and MP3 for audio.

Specification

The glTF specification is maintained by the Khronos Group. This standards organization is also responsible for OpenGL, WebGL, COLLADA, and others.

Sample Models

A collection of Sample models are available for learning glTF, and testing runtime engines and content pipeline tools.

Converters and Exporters

glTF files can be created by converting from other popular formats such as , OBJ, , and others. View the list of converters.

As support for glTF grows, 3D authoring packages may gain the ability to export to glTF directly. For example, a exporter is in early stages of development.

Loaders and Viewers

Support for glTF is available for , , , , and others. Khronos maintains a list of glTF loaders and viewers.

File Structure

A structural overview diagram (by Marco Hutter) shows an at-a-glance view of the structure of a glTF file and its contents.

880 questions
5
votes
1 answer

How can I add a glossiness / specular texture to a GLTF model?

QUESTION: I have a specular/glossiness texture image for a model which is not yet being used by the GLTF model. How can I use/add the texture to my model so that it is reflective/glossy where it should be ? I don't know what to change inside the…
TheProgrammer
  • 1,409
  • 4
  • 24
  • 53
5
votes
2 answers

Create a GLTF file from scratch using js

I have some vertices and faces data just simple x,y,z coordinate Like this : var vertices = [1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0] var triangles = [0,1,2,2,3,0,4,5,1,1,0,4,6,7,5,5,4,6,3,2,7,7,6,3,7,1,5,7,2,1,4,0,6,0,3,6] Is it possible…
A bou
  • 53
  • 2
  • 4
5
votes
2 answers

Why is blender rigged animation distorted when exported as GLTF?

I created an animation in Blender with armature rigging. When I test it in Blender by pressing Alt-A, it works perfectly fine. However, when I export it as a .glb using the KhronosGroup GLTF exporter, the resulting animation is distorted (e.g.,…
Kyle Lin
  • 827
  • 8
  • 16
4
votes
1 answer

How to apply a rotation to a node in trimesh

I have a .glb glTF file that specifies a character. The character has 75 nodes, and no animation track. I wrote the following code to render the character, and now I would like to apply some rotation to specific nodes before I render it. My…
Amit
  • 5,924
  • 7
  • 46
  • 94
4
votes
1 answer

Multiple GLTF loading and Merging on server side

We are trying to merge multiple GLTFs on server side and export the merged gltf as final result on server. Things we have trued that worked and that didn't: We have used three js GLTFLoader parse method to load multiple gltf files, merge the parent…
Nilu
  • 262
  • 1
  • 8
4
votes
1 answer

How can I load my glTF file on SceneViewer with ARCore Android SDK

I'm following the document at Google (https://developers.google.com/ar/develop/java/scene-viewer#ar-only). I put glTF file in assets/models directory (as same location with Andy.obj) and I tried to load glTF 2.0 file (from KhronosGroup Sample) but…
Joona Yoon
  • 314
  • 3
  • 16
4
votes
2 answers

Loading a GLTF model with Three JS and React JS

I have trouble loading a GLTF file which I downloaded from sketchfab, using React JS. When I try to do it without using React (with a regular index.html and index.js) it works, but when I bring the code inside my React App, it throws an Unexpected…
ninja_nugget
  • 712
  • 1
  • 8
  • 19
4
votes
2 answers

How to load .gltf in a Blazor application

I am trying to load .gltf model using three.js into my Blazor application. However the server does not serve this type of files. I am aware that MIME type must be added, but for some reasons, that cannot be done with Blazor web app as the 'app'…
Saajid Akram
  • 169
  • 4
  • 10
4
votes
0 answers

How to convert shape key animations from .glb to .usdz using the python usdz command line tools

I create models in blender and export them as .gltf files. I am experimenting with converting these models to .usdz files using the apple python command tools as discussed in this video. These conversions work well if the keyframed animation is made…
Nick
  • 914
  • 1
  • 10
  • 30
4
votes
1 answer

Can I put a THREE.js material on a gltf model?

Im currently working on my portfolio in A-frame. I'm trying to change the material of the objects to a wireframe material, i'm using the wireframe material (MeshBasicMaterial) of THREE.js to do that. If I put this material on objects like "a-box" or…
4
votes
0 answers

Three.js - Load Textures from ZIP File and Parse to GLTF

Suppose someone selects a .zip file () with the following content: 3d-model.zip |- 3d-model.obj |- 3d-model.mtl |- texture1.jpg |- texture2.jpg Here are some methods I tried ✔️ means that it worked ✖️ means that…
Florian Ludewig
  • 4,338
  • 11
  • 71
  • 137
4
votes
1 answer

glTF 2.0 video texture support

I have been reading the glTF specs and looking around and haven't been able to find an explicit answer to this: are video textures supported by glTF 2.0 or one of its extensions? Could anyone point me to the right thread or documentation if such…
Silvain
  • 399
  • 4
  • 20
4
votes
2 answers

How move a gltf model in threejs?

How move a gltf model in threejs indipendently from the scene defined? In my code I have updated an gltf model and I tried to move it using KeyboardState.js. The control used is OrbitControl.js. KeyboardState.js :…
mikecolux95
  • 83
  • 1
  • 10
4
votes
1 answer

How to apply OrbitControls to a loaded camera from a gltf file?

I am using three.js to load a gltf scene which has a camera. The camera and model shows well but when I try to apply OrbitControls.js to that loaded camera it won't work. It only works with cameras created directly in the three.js with the new…
AlvaroMerino
  • 125
  • 7
4
votes
1 answer

Godot - Loop animation from GLB import

In Blender, I modeled, textured and animated an idle animation for a simple robot character for a game in Godot. Using the Blender-gltf exporter by KhronosGroup, I successfully exported the mesh, material and animation into one .glb file, and then…
Carol9009
  • 223
  • 2
  • 12
1 2
3
58 59