How can i import texture from babylon Library

Hi,

I’m currently doing my first project with babylonjs and have very little experience in coding.

My project is a small golf game and I want to integrate a skybox with a texture.

For that I found this code: https://playground.babylonjs.com/#G3HSAW#6

However when I put it in my project the texture is not present.

I guess I have to import this texture because I’m not in the ‘Playground’ but even after searching I have no idea how to do this.

If a gentleman could come to my aid that would be great!

THANKS
ask me if you need more information

Hi, you have to put the textures in your project directory (actually here it’s 6 textures composing the skybox), the ones you use in the playground are here Babylon.js/packages/tools/playground/public/textures at master · BabylonJS/Babylon.js · GitHub

2 Likes

Perfect thanks for the help !