# Error: Cannot load cubemap because 6 files were not defined

**URL:** <https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852>\
**Category:** Questions\
**Tags:** react, material\
**Created:** [October 27, 2021, 8:35pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852 "2021-10-27T20:35:50Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 2, 2021, 9:12pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/24 "2021-11-02T21:12:58Z")

</div>

> [@bghgary](#):
>
> `SceneLoader.ImportMeshAsync('', 'https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BoxAnimated/glTF-Binary/BoxAnimated.glb').then(result => {`

I have made an update. Unfortunately that did not help. ☹

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 2, 2021, 9:40pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/25 "2021-11-02T21:40:33Z")

</div>

Ok, I need a repro in order to help. Is this something you can set up?

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 2, 2021, 9:43pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/26 "2021-11-02T21:43:40Z")

</div>

> [@bghgary](#):
>
> Playground app for BabylonReactNative on Android

I am trying to reproduce it.  
Where can I find it:

```auto
the default Playground app for BabylonReactNative on Android

```

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 2, 2021, 9:52pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/27 "2021-11-02T21:52:56Z")

</div>

i tried in playgroung, there works.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 2, 2021, 10:04pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/28 "2021-11-02T22:04:00Z")

</div>

If you can put your code on GitHub so I can clone it and repro, that would be the best.

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 4, 2021, 9:28pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/29 "2021-11-04T21:28:06Z")

</div>

Hi @bghgary  
I did it. My Code is here:

I start develop with:

```auto
npx react-native start

```

and

```auto
npx react-native run-android

```

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 1:02am UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/30 "2021-11-09T01:02:09Z")

</div>

Sorry for the delay. I finally got this running. Uncommenting the line for the environment works fine for me on Android. I also removed the ground since that probably isn’t what you want.

```auto
scene.createDefaultEnvironment({ createSkybox: false, createGround: false });

```

What exactly is not working? Can you send some screenshots?

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 9, 2021, 8:49am UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/31 "2021-11-09T08:49:44Z")

</div>

Hi @bghgary  
Hi,  
no problem. Thank you for helping me.  
Yes, it works perfectly without that:

 ![20211109_142055](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/4/547aebd7905b3d33520d0916f6eb0092dad963b1.jpeg)

This line does not work for me (Model is not shown.):

 ![20211109_132400](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/f/6fa3ead324e87803d5e4e161433c40815b94eb4f.jpeg)

```auto
scene.createDefaultEnvironment({ createSkybox: false, createGround: false });

```

But my goal is to activate the “PBR materials using probes for realtime reflections”.  
For example, as you can see in the screen sheet of playground, there are “reflections” in the door glass and roof.  
And I want to get that in the app. In the app everything is black.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/8/78c0aea533df485611d1fc8237f6c76794a0bab6.jpeg)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 5:14pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/32 "2021-11-09T17:14:08Z")

</div>

This is working for me on my OnePlus 8.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/5/f5640761de62e0846683e13734057e73b7b06634.jpeg)

What phone are you using?

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 9, 2021, 6:30pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/33 "2021-11-09T18:30:52Z")

</div>

Samsung Galaxy A6+ , Android 10

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 9, 2021, 7:05pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/34 "2021-11-09T19:05:30Z")

</div>

@bghgary might be related to A6+ using ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/c/4c41bc21eb1679d3c11bee955503fe6f220f5497.png)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 7:44pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/35 "2021-11-09T19:44:34Z")

</div>

@igorroman777 Do you have any other phones you can test this with? It would be good to get a sampling.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 7:57pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/36 "2021-11-09T19:57:46Z")

</div>

I have a Samsung Galaxy Note 20 Ultra and it’s working for this phone as well.

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 9, 2021, 8:45pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/37 "2021-11-09T20:45:31Z")

</div>

Which android version is it?

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 8:56pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/38 "2021-11-09T20:56:21Z")

</div>

Latest version from Samsung. I just reset it so I don’t know the exact number.

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 9, 2021, 8:56pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/39 "2021-11-09T20:56:49Z")

</div>

Android 10?

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 8:57pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/40 "2021-11-09T20:57:52Z")

</div>

Probably Android 11.

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 9, 2021, 8:59pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/41 "2021-11-09T20:59:12Z")

</div>

You can see this in system info settings

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [November 9, 2021, 10:27pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/42 "2021-11-09T22:27:45Z")

</div>

Yes, I know. I reset the phone and don’t want to go through the steps of setting it up again just to see the version. Some of my devices come from a lab and I need to return them in a reset state. My OnePlus 8 (which is my personal device) is on Android 11.

---

<div class="post-metadata">

**Author:** ![igorroman777](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@igorroman777](https://forum.babylonjs.com/u/igorroman777)\
**Post date:** [November 10, 2021, 2:34pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/43 "2021-11-10T14:34:31Z")

</div>

Hi @bghgary  
all clear, I have built release and published on google play:

> <https://play.google.com/store/apps/details?id=com.artspacesvr&gl=DE>
>
> Presentation of the user's images in 3D Spaces (e.g., Gallery)...

After that I have app on other smarphone but also Samsung Galaxy A6+, Android 10  
And it runs.  
I.e. there was problem only on one phone with developer deploy.  
But same system.

[Previous page](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852.md?page=1)

[Next page](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852.md?page=3)
