# Babylon friendly materials from Blender

**URL:** <https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751>\
**Category:** Questions\
**Tags:** blender, exporter\
**Created:** [October 8, 2020, 2:05am UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751 "2020-10-08T02:05:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgonzosan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jgonzosan/32/10007_2.png) [@jgonzosan](https://forum.babylonjs.com/u/jgonzosan)\
**Post date:** [October 8, 2020, 2:05am UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/1 "2020-10-08T02:05:20Z")

</div>

Hello,

I’ve searched around trying to find the solution, but I’m not sure I know what to look for so I’m posting the question here. I’m trying to export a scene in Blender (version 2.82.7) using the Babylon exporter (version 6.4.3). I can export just about everything but the textures.

 ![NoTextures](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/99ae054011a3b687d31d90f35deb32b29ec70a23.png)

The odd thing is that the textures actually show up when I test this in the sandbox. So I don’t know if it’s a material linking issue or what. This is my first time trying to export with textures using the Babylon exporter so I may be missing something simple. Here is a simpler example using a cube with the nodes shown in Blender which also has the same issue:

 ![BlenderTextures.PNG](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/1/1e8bc0e0e541cfb1dfcfb5dc37ef48587b950d4b.jpeg)

Is there some special way I need to setup materials? I don’t have any of these issues when exporting a glb/gltf. I really want to use the Babylon exporter as it allows me to easily set things up in Blender.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 8, 2020, 10:36am UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/2 "2020-10-08T10:36:45Z")

</div>

Welcome aboard!

Check the browser console: you probably have 404 errors meaning the files could not be found.

If you are testing locally you will need to setup a web server to serve your pages ([How to setup a local webserver for BabylonJs - Babylon.js Documentation](https://doc.babylonjs.com/resources/running_a_local_webserver_for_babylonjs)).

---

<div class="post-metadata">

**Author:** ![jgonzosan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jgonzosan/32/10007_2.png) [@jgonzosan](https://forum.babylonjs.com/u/jgonzosan)\
**Post date:** [October 10, 2020, 8:41pm UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/3 "2020-10-10T20:41:28Z")

</div>

Sorry for the late reply, yes that’s more than likely what the issue was. There wasn’t a problem with the export, I just couldn’t load the textures properly due to Chrome. For anyone else who comes across this issue. This is the error I had in the console:

 ![Error](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/5f4dbef6d01b0837e6788dc198f7662bbea368e6.png)

I then decided to try by uploading the Babylon file to an S3 bucket and using a playground environment. The models loaded fine but the same checkerboard pattern appeared. I had a similar error appear in the console. I realized when I export a Babylon file it also exports all the textures so I uploaded all those textures to the same bucket and that worked.

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [October 10, 2020, 9:06pm UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/4 "2020-10-10T21:06:37Z")

</div>

BTW, you can inline your textures using the exporter, which can be useful when running from file during dev. There is a checkbox on blender world properties tab.

---

<div class="post-metadata">

**Author:** ![jgonzosan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jgonzosan/32/10007_2.png) [@jgonzosan](https://forum.babylonjs.com/u/jgonzosan)\
**Post date:** [October 10, 2020, 9:38pm UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/5 "2020-10-10T21:38:00Z")

</div>

What exactly does that do? The tool tip says _ **’turns textures into encoded string for direct inclusion into source code’** _. Does that mean it packs the textures into the Babylon file? Thanks for the help!

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [October 10, 2020, 11:20pm UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/6 "2020-10-10T23:20:48Z")

</div>

Yes, and now no browser will either get a 404 or refuse to get your texture because you are using a file:// url

---

<div class="post-metadata">

**Author:** ![jgonzosan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jgonzosan/32/10007_2.png) [@jgonzosan](https://forum.babylonjs.com/u/jgonzosan)\
**Post date:** [October 11, 2020, 12:03am UTC](https://forum.babylonjs.com/t/babylon-friendly-materials-from-blender/14751/7 "2020-10-11T00:03:49Z")

</div>

Thank you, that’s even easier. I was hoping there was something similar to how the glb/gltf exporter worked in that regard.
