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
6
votes
2 answers

How can I update a GLB/GLTF 3D model texture in Python

I want to load a GLB model in Python, replace the existing texture with another texture image and save it. So far I can load, modify and export the model. Also, I found a way to append a local image to the model. But I'm not sure how to find and…
Tom
  • 326
  • 2
  • 17
6
votes
1 answer

Why I get a black model when I load a GLTF model which have materials?

I m trying to load my 3d model which have glb format. Here's the code: What I exept: Image What I have: Image var renderer = new THREE.WebGLRenderer(); renderer.setSize(1000, 1000); renderer.setPixelRatio(window.devicePixelRatio); const camera =…
6
votes
0 answers

THREE.js Whats the best way to add lighting from blender exported gltf

I would like to find the best way to add lights from a blender scene into a THREE.js project. I can not find an explanation of how to import the lighting from blender to THREE.js anywhere. You are expected to already have lighting in your THREE.js…
David Clews
  • 795
  • 6
  • 14
6
votes
2 answers

rendering multiple gltf 3D model in a single layer on map using mapbox gl and three js

I used adding gltf 3D Model on map using mapbox gl with three.js from the link but adding single 3D gltf model in single separate layer and adding them to map is working fine,but is there any way to add mulitple 3D gltf model in a single layer on…
cj devin
  • 1,045
  • 3
  • 13
  • 48
6
votes
2 answers

Conversion from USDZ file to glTF file

I am currently trying to work with AR in android but I have been given models in .usdz format. So far I have been looking for a way to convert this file into one that works with android (.fbx .obj .gltf), preferably being .gltf. Can someone tell me…
Sergio Pardo
  • 774
  • 6
  • 17
6
votes
2 answers

Exporting group to Three.js from Blender in gltf format

I have a Blender scene in which objects are organized into collections. When I export the scene in gltf format and import it in my Three.js project there is no track of these collections. What I expected was that for each collection correspond a…
zed87
  • 435
  • 5
  • 16
6
votes
0 answers

Understanding GLTF 2.0 Skin Animation Joint Matrix Calculations

I am a novice in skin animation so I've been spending a good month trying to figure out why my animation is not currently outputting the proper matrix palette, after performing calculations on my joint matrices. In the GLTF 2.0 skin tutorials, it…
wubw
  • 105
  • 9
6
votes
1 answer

How to dynamically overlay a texture from a GLTF model - Three.js

I want to overlay/switch on&off a texture from a GLTF model, but can't find how or if is it possible. I was able to load it perfectly, but when I try to reload or overlay the texture nothing happens or I get some errors. The last thing I tried don't…
leonardofmed
  • 842
  • 3
  • 13
  • 47
6
votes
2 answers

GLTF create instances

I am new in THREEJS. In the past, I have used AFRAME, CESIUM, XEOGL and BABYLONJS. But eventually, due to memory consumption and performance, I have realized that the best product for making a CAD visualizer is THREEJS. BABYLONJS takes more than 4…
6
votes
1 answer

Archilogic gltf model can't be loaded in a-frame

I wrote a demo scene on glitch to test my exported gltf model in a-frame, but I am getting an error in the console: My code Basic Scene - A-Frame
6
votes
1 answer

Is there a way to convert gltf to dae?

I can make gltf files with the collada to gltf converter. But is there a way to reverse this?
Ryad Shaanbi
  • 109
  • 2
  • 16
6
votes
1 answer

How to properly export from Cinema 4D to GLTF and use it with Three.JS?

I have been trying to do this for a few weeks, Trying to find out how on my own, But I have failed over and over, With little progress. So if anyone can help me, I will be very thankful. In advance thank you.
SilverSurfer8484
  • 93
  • 1
  • 1
  • 7
5
votes
1 answer

Downloaded glb 3D model cut in half

I have this assignment that requires me to use some 3d model assets from the internet. I'm very new to this course. So, I tried to use car asset from https://www.cgtrader.com/items/2518230/download-page and download the glb extension. Once I opened…
Lulu
  • 49
  • 1
  • 3
5
votes
1 answer

Understanding the skinning part of a GLTF2.0 file for OpenGL engine

I have a simple blender model which consists of three meshes with three bones controlling one mesh each. The animation is just the bones rotating the cubes a bit around the y-axis and back. The center bone is the parent of the two outer bones. I…
AudioGuy
  • 413
  • 5
  • 18
5
votes
1 answer

Why are BufferViews and Accessors separate in glTF?

The GLTF format specifies that meshes reference their vertex and index data via accessors, which in turn reference BufferViews. Both of them have an offset and a length. The main difference seems to be that BufferViews are format-agnostic, they…
georch
  • 959
  • 7
  • 18
1
2
3
58 59