# 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:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [October 27, 2021, 9:00pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/2 "2021-10-27T21:00:29Z")

</div>

Hey @igorroman777

It’s always most helpful if you can provide a playground for us to look at it. It is very difficult to help troubleshoot without one.

That said, please check out this thread and see if it helps:

> [@How to make model lighting/pre-processing in code the same as how a model appears in the sandbox?](https://forum.babylonjs.com/t/how-to-make-model-lighting-pre-processing-in-code-the-same-as-how-a-model-appears-in-the-sandbox/17772/11):
>
> Well I’m now second-guessing if that’s actually the problem that’s remaining. It seems to me like something goofy is happening with the textures on the model itself. Here’s the underside of your model in the sandbox: I see the same thing in the playground. That leads me to believe that perhaps the normals are facing the wrong way on your model. If we’re looking at the wrong sides of your models, that COULD explain why it’s not appearing correctly. Kinda just guessing, but it seems …

Also this doc page should help as well as it talks about skyboxes and the 6 cube faces needed to create one:

> **[Skyboxes | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/environment/skybox)**
>
> Learn how to add a skybox to your Babylon.js scene.

---

_[View the full topic](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852)._
