# Cant export material from blender (gltf)

**URL:** <https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258>\
**Category:** Questions\
**Tags:** gltf-loader, materials\
**Created:** [January 21, 2020, 4:53pm UTC](https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258 "2020-01-21T16:53:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay\_Kananov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nikolay_kananov/32/8515_2.png) [@Nikolay\_Kananov](https://discourse.threejs.org/u/Nikolay_Kananov)\
**Post date:** [January 21, 2020, 4:53pm UTC](https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258/1 "2020-01-21T16:53:15Z")

</div>

Hi I am using project from view technic in blender then applying result on mesh but materiadoes not appear in three js (there is light source)

 ![blender_example](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/9/9c721aecff2281d23279444980911424bdd2966c.jpeg) ![Three_example](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/3/35fd7d7cd589bb67cd7cb090aa44aaed815b2de7.png)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [January 21, 2020, 5:54pm UTC](https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258/2 "2020-01-21T17:54:39Z")

</div>

A typical error producing this result are PBR materials not configured properly. Please try to alter the materials of your gltf asset like so after loading:

```auto
gltf.scene.traverse( ( object ) => {

   if ( object.isMesh ) {

     object.material.roughness = 1;
     object.material.metalness = 0;

   }

} );

```

---

<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:** [January 21, 2020, 6:14pm UTC](https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258/3 "2020-01-21T18:14:57Z")

</div>

I’d also suggest checking your model in [gltf-viewer.donmccurdy.com/](http://gltf-viewer.donmccurdy.com/). If the model appears correctly there, something is probably wrong with your lights. If it’s incorrect there, the model is not being exported correctly. Knowing which will help to narrow things down. 🙂

---

<div class="post-metadata">

**Author:** ![Nikolay\_Kananov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nikolay_kananov/32/8515_2.png) [@Nikolay\_Kananov](https://discourse.threejs.org/u/Nikolay_Kananov)\
**Post date:** [January 22, 2020, 6:38am UTC](https://discourse.threejs.org/t/cant-export-material-from-blender-gltf/12258/4 "2020-01-22T06:38:46Z")

</div>

Thank You SOOOOO Much,  
please tell me from where You know all of this?  
and is there a way to learn from You like course?
