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
0
votes
1 answer

How to rotate the nodes of glTF file using three.js

Am using THREE.glTF loader to load the glTF files in web and file is loaded and animations are working. CODE : /*gltf loader*/ var loader = new THREE.GLTFLoader(manager); loader.load( file_path , function ( data ) { }, function ( error ) { }…
0
votes
1 answer

Threejs / glTF - Black spots on mesh

I'm getting some weird black spots on a mesh loaded in threejs in glTF. Anyone already have this problems before ? The mesh is heavy 145 663 vertices, the biggest part have 89 000 vertices I'm using version r94 of threejs and i load mesh with ths…
0
votes
1 answer

aframe doesn't see embed .gltf scene inside -- 404 Not found. (through the node.js)

aframe doesn't see embed .gltf scene inside 'a-gltf-model' -- 404 Not found. (through the node.js). But if i put src into the 'a-emity' -- scene is on the page somewhere on rainbow with width/height 0/0. Position doesn't help. Starter scene (inline)…
ghett
  • 89
  • 9
0
votes
0 answers

GLTFLoader doesn't feed the property 'bones' of geometry in SkinnedMesh

I'm using export and load function from Blender to Three.js. I'm currently moving from json to gltf2 to do so. But with the gltf export/load there are Geometry.skeleton.bones but Geometry.bones are no longer populated. I look for help, how can they…
user2758635
  • 127
  • 8
0
votes
1 answer

Best way to update THREE.Points Geometry

I have a blender model that has some shape keys on it. I export this model and use it in threejs. Lets say this is a cube. Then I create Three.Points that draws smalls spheres on the vertices of this model (i.e Cube). var cube =…
Ravi Gidwani
  • 198
  • 12
0
votes
0 answers

Three.js: animated gltf model looks disconnected in three.js

I made a gltf file with bone animation by using Blender. It works well in Blender but not in Three.js The model looks disconnected when they are moving. Comparing my model in blender(upper pics) and in three.js I tried several ways to solve it but…
B4U
  • 1
0
votes
1 answer

threejs gltf alpha mode blend option does not work at some angles

I have a gltf in which I apply png textures on rectangular mesh. I have a rectangle png and circle png. rectangle node is at z = 0.01 and circle at z = 0.0. alpha mode used for the materials is BLEND. material is double sided. GLTF { "scenes" : [ …
0
votes
1 answer

a-animation discards initial model rotation

I'm using AR (with marker) and animating a gltf model to rotate on one axis counterclockwise. Initially put my marker on the table and had the model rotate slowly 360 on its vertical axis: https://codepen.io/germanviscuso/pen/rvVomR (you can test…
German
  • 10,263
  • 4
  • 40
  • 56
0
votes
1 answer

glTF Skelet animation and node hierarchy. How to combine them?

Need some help with understanding of glTF spec. I wrote loader for gltf format, but without skinning animation. How to combine joints from skin and node hierarchy? No to add some node twice, and to add all of them in correct order.
morozov
  • 3
  • 2
0
votes
0 answers

GLTFLoader does not make object as 1 mesh

How can i make object that i load in with GLTF loader as 1 mesh. When i move them with mouse ( drag and drop) they are moving as separate objects, also when im trying to check the size in console... it has like 100 lines of the same size over and…
Krizs
  • 65
  • 8
0
votes
2 answers

gltf 2.0 model loads with failed depth testing in Vulkan

I am loading a sample gltf 2.0 model into my Vulkan program using a custom parser, everything loads fine except that on this particular 3d model (which is a bath duck model found on gltf 2.0 github page), the beak of the duck seems to be failing the…
BulBul
  • 1,159
  • 3
  • 24
  • 37
0
votes
1 answer

three.js Cannot read property 'center' of undefined

I'm trying to load a 3D model of a cube onto a 3D Force Directed Graph using GLTFLoader in three.js. The project is built using Angular. The model is loaded, showing GLTFLoader: 23.507080078125ms but the object is not displayed. It further gives an…
Fleur
  • 666
  • 1
  • 8
  • 29
0
votes
0 answers

GLTF format in substance painter exports a huge BIN file

Whenever we export any textured model as GL Transmission Format in Substance Painter it exports a huge BIN file along with GLTF and textures (2Kx2K), where overall folder size will be more than 14 MB. Is there any way we can reduce the size of the…
andy ram
  • 213
  • 3
  • 21
0
votes
1 answer

glTF 2.0 animation not working

I'm trying to experiment a little with glTF 2.0 models with animation. Unfortunately, when i try to update the THREE.animationMixer, I get a warning: THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0. Here's the setup: The…
Piotr Adam Milewski
  • 14,150
  • 3
  • 21
  • 42
0
votes
1 answer

Unity3D glTF Invalid array at buffers when loading a 3d object

I'm using the glTF Unity3D Loader. I want to load some 3D Objects with glTF format in real time. With the glTF files they included in the examples, it works great. But when I try to load my 3D Object I'm getting this error: Does anyone know how can…
Ilan Aizelman WS
  • 1,630
  • 2
  • 21
  • 44