# Gltf metal texture

**URL:** <https://forum.babylonjs.com/t/gltf-metal-texture/21837>\
**Category:** Questions\
**Tags:** material\
**Created:** [June 22, 2021, 7:28am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837 "2021-06-22T07:28:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gt\_aws](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gt_aws/32/16856_2.png) [@gt\_aws](https://forum.babylonjs.com/u/gt_aws)\
**Post date:** [June 22, 2021, 7:28am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837/1 "2021-06-22T07:28:21Z")

</div>

Hello, everyone.  
Can you teach me about texture? I want to display a gltf file of a partially metallic kitchen, but the metal is completely black and does not display well. I uploaded the file to the sandbox and the metal was displayed successfully. I have no idea what program it is using to make this possible.

```auto
BABYLON.SceneLoader.ImportMesh("", "", "model.gltf", scene, function (newMeshes, particleSystems, skeletons) {
                   //Maybe, this is where the ambient texture should be set.
                }

```

↓my program

 ![wa1_LI](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/4/2422c4acfbd5392878680e7e5fa1c6afbd3824ee.jpeg)

↓sandbox

 ![wa2.PNG](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/7/47309814197cc34241daf127fc104f9d57efb34e.jpeg)  
Your help would be very appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [June 22, 2021, 8:15am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837/2 "2021-06-22T08:15:56Z")

</div>

You have to use a [HDR environment](https://doc.babylonjs.com/divingDeeper/materials/using/HDREnvironment). Don’t hesitate to read other PBR articles ([Intro to PBR](https://doc.babylonjs.com/divingDeeper/materials/using/introToPBR), [Mastering PBR](https://doc.babylonjs.com/divingDeeper/materials/using/masterPBR)) 😉

An quick & easy way to do this is to use the createDefaultEnvironment helper: [https://playground.babylonjs.com/#2FDQT5#966](https://playground.babylonjs.com/#2FDQT5#966)

---

<div class="post-metadata">

**Author:** ![gt\_aws](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gt_aws/32/16856_2.png) [@gt\_aws](https://forum.babylonjs.com/u/gt_aws)\
**Post date:** [June 22, 2021, 8:41am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837/3 "2021-06-22T08:41:21Z")

</div>

Thank you so much!!! I could do that. The metallic quality came out well. I’ve been struggling with this for a long time so this is wonderful!  
I also visited your web site and it’s great to know the possibilities of Babylon.js. In particular, the interior simulator is what I’m trying to build now, so I’m learning a lot from it… 😍

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [June 22, 2021, 8:45am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837/4 "2021-06-22T08:45:47Z")

</div>

Thanks, here the forum thread about the [apartment configurator](https://forum.babylonjs.com/t/virtual-staging-apartment-configurator-by-axeon-software/1663) you’re talking about 😉

---

<div class="post-metadata">

**Author:** ![gt\_aws](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gt_aws/32/16856_2.png) [@gt\_aws](https://forum.babylonjs.com/u/gt_aws)\
**Post date:** [June 22, 2021, 8:51am UTC](https://forum.babylonjs.com/t/gltf-metal-texture/21837/5 "2021-06-22T08:51:42Z")

</div>

Thanks!
