# Export gltf model from blender

**URL:** <https://discourse.threejs.org/t/export-gltf-model-from-blender/24094>\
**Category:** Questions\
**Tags:** gltf-loader, blender-exporter\
**Created:** [March 5, 2021, 2:01pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094 "2021-03-05T14:01:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 5, 2021, 2:01pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/1 "2021-03-05T14:01:47Z")

</div>

I have texture issue, and don’t know solution how to make texture normal, like blender, how to remove those squares, and get smooth texture?

 ![check1](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/b/1b19a7b4ba5de8766ff0b603a3d34e9976365b55.jpeg) ![check1png](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/f/6feb2a7335a6d9c82124b28c56fad191ea7fb6ac.svg)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [March 5, 2021, 2:12pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/2 "2021-03-05T14:12:50Z")

</div>

Could you share Blender shader graph screenshot for the material on this model (and maybe also the UV maps) ?

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 9:14am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/3 "2021-03-23T09:14:05Z")

</div>

![2021-03-23 12-09-41](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/e/2/e22845279fb91be9aa846a86b09ce99049e597e2.png)

---

<div class="post-metadata">

**Author:** ![BobRazowsky](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/bobrazowsky/32/17244_2.png) [@BobRazowsky](https://discourse.threejs.org/u/BobRazowsky)\
**Post date:** [March 23, 2021, 9:23am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/4 "2021-03-23T09:23:11Z")

</div>

Can you share the UV maps? Material nodes looks ok to me.

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 10:00am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/5 "2021-03-23T10:00:38Z")

</div>

![333333](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/8/883e86026528dd5feb4f59e4bd297684e9145277.jpeg)

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 10:08am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/6 "2021-03-23T10:08:15Z")

</div>

And there problems with numbers

 ![numbercompare](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/e/0e96c5aec224755d2212edf557811a8a0aaa947f.png)

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 10:11am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/7 "2021-03-23T10:11:34Z")

</div>

![UVmap](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/f/7/f787733050b80e246aec3858885cec2b5a38326b.jpeg)

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 11:19am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/8 "2021-03-23T11:19:25Z")

</div>

Solution is easy, anisotropy was 1, but has to be 16, code below solve this issue:

```
const maxAnisotropy = renderer.capabilities.getMaxAnisotropy();
for(let i = 0; i < gltf.scene.children.length; i++){
                                    if(gltf.scene.children[i].isMesh === true && gltf.scene.children[i].material.map !== null){
                                        gltf.scene.children[i].material.map.anisotropy = maxAnisotropy;
                                    }
                            }
```

but with numbers isn’t work yet

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 12:41pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/9 "2021-03-23T12:41:14Z")

</div>

how to fix vertices, and get smooth number ? after export from blender to three.js

 ![numberPallet](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/d/1d37518efb3bd288d7f2f830d8a0249208d627e4.jpeg)

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 23, 2021, 2:11pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/10 "2021-03-23T14:11:54Z")

</div>

how to get more rounded zero?  
more smooth 2?

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [March 23, 2021, 4:50pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/11 "2021-03-23T16:50:25Z")

</div>

This is more a Blender question than a three.js question, you will have better luck asking in Blender forums and checking the model against any available glTF viewer before bringing it into three.js.

My guess: Text must be converted to a mesh to export out of Blender. Doing so requires choosing settings about resolution, and the exporter cannot always guess them correctly. Try to convert the text to a mesh in Blender yourself, before exporting, which will give you more control over the chosen resolution. There are settings to control it in the text panel in Blender’s sidebar.

---

<div class="post-metadata">

**Author:** ![11152Igor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/11152igor/32/16805_2.png) [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Post date:** [March 24, 2021, 7:37am UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/12 "2021-03-24T07:37:57Z")

</div>

Yeah, before you answer, i did yesterday the same things, change text to mesh, and it works!  
But if I want change text, I have to start from beginning.

**first solution for my problem was** :   
Anisotropy was 1, after changes become 16

```
const maxAnisotropy = renderer.capabilities.getMaxAnisotropy();
	for(let i = 0; i < gltf.scene.children.length; i++){
	if(gltf.scene.children[i].isMesh === true && gltf.scene.children[i].material.map !== null){
			gltf.scene.children[i].material.map.anisotropy = maxAnisotropy;	
									}
							}
```

**second solution** :  
Change text to mesh

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [March 24, 2021, 4:52pm UTC](https://discourse.threejs.org/t/export-gltf-model-from-blender/24094/13 "2021-03-24T16:52:01Z")

</div>

> [@11152Igor](#):
>
> But if I want change text, I have to start from beginning.

Not sure that’s avoidable, but if the Blender exporter is not using the settings on the Text option when exporting then maybe that would be a feature request for [GitHub - KhronosGroup/glTF-Blender-IO: Blender glTF 2.0 importer and exporter](https://github.com/KhronosGroup/glTF-Blender-IO).

> Anisotropy was 1, after changes become 16

THREE.GLTFLoader only ever uses the default `texture.anisotropy` settings, so I don’t think that changes in your Blender scene should affect what is loaded here.
