Questions tagged [gltf]

A file format that uses JSON for the efficient transmission and loading of 3D scenes and models. Should be used in the scope of Blender and related packages regarding transmission as opposed to being a technical reference for glTF.

Filter by
Sorted by
Tagged with
18
votes
5answers
12k views

Does Blender support the glTF format?

Is the import/export of GLTF files is going to be supported or is there a python script that can handle that?
16
votes
4answers
33k views

How to open a .glb or .gltf file in blender?

My question is about opening .glb or .gltf files in Blender. I don't see these extensions in the Import options, although Export allows me to create files with either of those extensions.
6
votes
1answer
7k views

Export transparent material in GLTF in blender 2.8

I am trying to export a glass material in gltf. Here is the material principled shader, notice I have transmission set to 1.0: this gives me this result in cycles (the glasses have the glass material)...
4
votes
1answer
166 views

Import image to plane not exported in GLTF

I want to create a 3D object of an image to use in AR using the Blender Python API. I've added the image to the scene as a plane, this works perfectly. The image is also shown in the ...
4
votes
1answer
3k views

Blender 2.79, how to install Khronos Group gltf exporter?

I downloaded the KhronosGroup addon from https://github.com/KhronosGroup/glTF-Blender-Exporter I read install instructions, but those were for Windows. I tried copying the addon under ~/.blender/2.79/...
3
votes
1answer
906 views

Exporting to glTF doesn't work properly

I have tried multiple times to export a simple design made from importing an svg file, extruding and adding textures to gltf, glb etc and it seems that there is just no way for blender to export the ...
3
votes
1answer
580 views

exporting multiple animated objects to gltf

I'm fairly new to gltf and am gradually learning about it's abilities/limitations. I am currently trying to test a file that would have multiple objects animate in a scene. However, whenever I export, ...
3
votes
1answer
2k views

How to scale imported .gltf model?

I imported a gltf model in Blender and it's way too big. If I convert the same model to .obj before, I can import it in Blender and set the Clamp-Size to 1.00 and the scaling is alright. Unfortunately,...
2
votes
1answer
303 views

glTF export has twice the vertices it should

I am turning instances on a template into copies in a glTF file. When I import that glTF file into Blender again, the number of vertices has doubled. The number of faces also shows as double, but ...
2
votes
2answers
8k views

How do you export GLTF from Blender?

Is there a way to export GLTF or do I need a plugin or something? Thanks! Benjamin
2
votes
1answer
3k views

Exporting a GLB file to share it on Facebook

I have tried "glTF Blender Exporter", "blendergltf" and "glTF 2" to try and export a Cycles model I made to .GLB format for Facebook upload, however nothing I tried worked. Only "glTF Blender ...
2
votes
1answer
605 views

Bump Maps are missing after exporting as glTF 2.0

My goal is to export my entire FBX model into GLTF 2.0 format with all bump maps using Blender, and upload it online using Three.js I've uploaded my FBX model to Sketchfab https://skfb.ly/YOGv and it ...
2
votes
1answer
329 views

Text Not being exported to GLTF

I am trying to export an object (above right), and I put 3D text (not a texture) on it. But every time I export the glTF, the text does not come with it. Is there a way to get text, or is text not ...
2
votes
2answers
994 views

how to import .glb file in blender 2.80 beta using python api?

I want to import a model of bench in .glb format using python inside blender. What function am I supposed to use?
2
votes
2answers
557 views

Substance / Blender GLTF workflow = wrong metal render

I have a 3D armor which was textured in Substance and exported following that pipeline: https://www.khronos.org/blog/art-pipeline-for-gltf, that is to say with a ORM map. However, once the maps ...
2
votes
1answer
4k views

glTF: How to optimize exported glb file from blender having more number of loop-cuts?

I have plane with 200x100 loopcuts, when I export glb the size of the file is around 2MB than I again sub divided the mesh couple of times and now binary file is around 8MB. How can I use more number ...
2
votes
1answer
1k views

Export to glTF with PBR materials ( facebook integration)

I'm experimenting with 3D posts on Facebook on the only supported format is binary glTF. I'm using the Khronos exporter and their PBR node groups. Has anyone been able to export a model with PBR and ...
2
votes
1answer
31 views

gltf2.0 export ignores “Inherit Rotation” property changes

This potentially affects other bone properties, but this is the only one I'm comfortable with messing with. Is this simply not something that's supported by gltf2.0 or is there a setting I'm missing ...
2
votes
1answer
158 views

Python script - objects are grey after export to glb file

There is my short code. I'm using blender_osm addon to generate these buildings. After the first render, it looks fine with colors on textures. But when I export it and reopen all textures are grey. ...
2
votes
1answer
290 views

Convert Blend file to GLTF with baked materials

I am trying to convert MMD files into gltf files for use on the web. I use a plugin called https://github.com/powroupi/blender_mmd_tools to import them into blender, but when I export them, they don't ...
2
votes
3answers
582 views

Shape key values saved as 0

I created a simple animation with shape keys. However exporting this animation not working properly. After I export it in gltf2 or fbx format, the shape keys are reset to 0 in exported file. What ...
2
votes
1answer
235 views

Can metallic car paint be exported in GLTF?

I'm trying to export a car model with red metallic paint as a GLTF model. A diffused red metallic with a high gloss clear. It appears that with GLTF it's either one or the other? I can get somewhat ...
2
votes
1answer
190 views

exporting procedural landscape

hi guys sorry if this is a repeat question but I haven't found the answer and I've been trying for days this is driving me nuts. So I am new to blender and I have created a procedural landscape and ...
2
votes
0answers
20 views

Rotating around z-axis in Blender does not convert to y-axis in GLTF-export

I have a scene with a door in it. There is an animation on the door to open it. I want to use the scene in ThreeJS so I export it in GLTF (.glb specifically) format. The problem is, that the Z-axis in ...
2
votes
0answers
36 views

blender 2.83: find imported GLB mesh

In 2.82, I was able to import and find the imported GLB mesh by bpy.ops.import_scene.gltf(filepath=input_filename) imported = bpy.context.selected_objects However, ...
2
votes
0answers
387 views

Blender 2.80 GLTF Import and Export Issues

I am having an issue with Blender 2.80 on Ubuntu 19.10 Linux. If I attempt to import any GLTF files, Blender crashes immediately and I can't find any logs in my /tmp/ directory. The second part of ...
2
votes
0answers
140 views

Build Blender as a Python module with Draco compression enabled

I've succeed in building Blender as a Python module, but I would like to be able to use the draco compression when exporting glTF (gltb) files. When building Blender as a Python module, I set CMake ...
2
votes
0answers
228 views

GLTF export/import Sketchup 2017 to Blender 2.80 overrides origin and local axis orientation

I'm exporting a .glb file from Sketchup 2017 using the KhronosGroup GLTF exporter and importing it into Blender 2.80 using the KhronosGroup GLTF importer. Once the file is imported I get the ...
2
votes
1answer
726 views

How to bake roughness into green channel only for usage with GLTF (Blender 2.8)

I've got a node setup that uses the red channel of the diffuse map for the roughness. I've described this method here. This works really well for wood textures. The node setup looks like: I want to ...
1
vote
1answer
570 views

GLB (GLTF) export, how to include color/material information?

As a complete beginner with Blender, I have been creating simple 3D models to export as GLB and import into another program. For this purpose there is no animation, no physics, etc. I just need them ...
1
vote
1answer
103 views

How to stop blender from generating duplicate vertices on export?

Yes, I know, use Mesh -> Clean up -> remove by distance. I did that, and in blender, it appears as if things are all fine and dandy, I made 3 cubes and made pyramids at the end, total vertex ...
1
vote
1answer
2k views

Batch exporting scene collections or selected objects using glTF-Blender-IO

I'm still new with python and scripting. I tried editing the obj exporter that I found. Since I'm exporting tons of object groups, I need each of scene collection or selected objects to be exported as ...
1
vote
1answer
578 views

How to export an Image(png / jpg) as glTF?

Sorry if I'm a complete noob, this is my first time using blender. So far, I've managed to import the image as a plane with the addon (import/export image as a plane), and now want to export it out ...
1
vote
1answer
49 views

How to set up shader materials with main node Principal BSDF

I have issue with exporting shaders on blender model. I need to export model with shaders in GLTF . The problem is that shader materials are not exporting - only the main color of Principal BSDF node. ...
1
vote
1answer
54 views

Export armature DAE -> glTF rotates mesh 90 degrees

To reproduce: Download DAE Open in Blender Export to glTF (default settings) Open exported glTF in Blender Click on mesh Go into edit mode See that it is rotated 90 degrees around the X axis
1
vote
1answer
472 views

cannot export .glb with material setting like specular

When I export the scene as glTF 2.0 file format, it exports it with textures, but without any material information like specular-ness. I literally set it to 0 in principled BSDF, but when it's ...
1
vote
2answers
736 views

Diffuse node compability for glTF exporter

I got a problem using glTF exporter for Blender (To upload 3D content on Facebook). I downloaded the last version of the add-on on this site: https://github.com/KhronosGroup/glTF-Blender-Exporter The ...
1
vote
1answer
453 views

I am using the gLTF addon, how do I make my node group glTF Metallic Roughness exactly the same as my Diffuse BSDF

When using the Diffuse BSDF When using the glTF Metallic Roughness As you can tell the colour of the cubes looks different from each other. Additionally when using the glTF Metallic Roughness, you ...
1
vote
1answer
62 views

All animations are not exporting in .glb format?

I tried creating a ps1 style character in blender by following a tutorial. I created 7 animations in there as you can see below. But when I reimport the .glb file inside blender, it only shows ...
1
vote
1answer
59 views

Metallic BSDF shader is always black

I'm trying to model a textured and anodized aluminum material (think Apple MacBook). I'm using the Principled BSDF node because my end target is a glTF for display in the browser. Whatever I do, when ...
1
vote
1answer
509 views

How do I export my model with some light (in .gltf)?

I'm working on a model and I'm trying to export it in .gltf format. In blender, I put a light to brighten the model, but when I export it, the lighting goes away. I'm quite new to blender and I've ...
1
vote
1answer
38 views

Import GLTF Tilt Brush via Google Poly is throwing an error

Blender Version 2.90.1 (2.90.1 2020-09-23) I have made a very simple Tilt Brush drawing on Oculus Quest 2. I have exported it to Poly from Tilt Brush. In Poly I have published the sketch in private ...
1
vote
2answers
139 views

Does gltf only support the export of one strip per NLA track?

This blend file contains only the default cube. I've create two Actions: MyTrans that implements only a translation & MyRot that implements only a rotation. Each of those Actions, I've 'pushed ...
1
vote
1answer
101 views

obj to glTF batch exporter

I have a set of obj exports comprising of a million files(each file between 100-200kb). Is there are a way to pick up files from a folder and export them to glTF? What I am talking about is batch ...
1
vote
1answer
234 views

Whats the right way to create scenes ready for gltf and draco compression?

I am new to Blender and 3d modelling and I have created a scene with several meshes and textures/materials. All materials are gltf compatible (Principled BSDF nodes with image texture and normal ...
1
vote
1answer
325 views

Anvil from Guru blender not exporting with all materials and textures to glb file for WebGL

I cannot for the life of me figure out why my Anvil model from the famous Guru Blender series tutorial will not export to a glb file for use with WebGL. Since I made it in Blender 2.79b, I have been ...
1
vote
1answer
1k views

When I export a animated blender model as GLTF into three.js it stretches out

when I animate a blender model with bones It runs fine in blender, I export it like so and then, this happens Any help appreciated. Link to the GLB https://www.mediafire.com/file/wrubnxlgf6f6pu1/...
1
vote
1answer
778 views

png loses alpha on gltf export

I was trying out the gltf + bin + texture export feature on blender 2.8. and the model i was exporting had a png eye texture with a transparent background. with a Principled BSDF shader like this, ...
1
vote
1answer
356 views

Installing glTF-Blender-IO latest Version in Blender 2.8

Blender 2.80 now includes the glTF-Exporter addon, but due to some limitations, I would like to test the latest version of glTF-Blender-IO from here: https://github.com/KhronosGroup/glTF-Blender-...
1
vote
3answers
1k views

Error exporting animation as GLTF file

I have made a very basic animation in Blender (2.79) and I am trying to export it as a GLTF or GLB. I have succesfully installed the gltf exporter and am able to export both gltfs and glbs of ...