Jump to content

Custom skybox in playground?


gexzor
 Share

Recommended Posts

Hiya gexzor, welcome to the forum. 

I like using a free Github account... which you could also open/use.  Models, textures, drag'n'drop from desktop into Github folders... pretty nice.

Others will have ideas, too... stay tuned.

PS:  There is a package of about 32 skyboxes with displayer... at http://urbanproductions.com/wingy/babylon/skyboxes/skybox_tour.zip (if you might need such).  It is the same as the "Skybox Tour" from BJS main website.  Caution, it contains an older version of BJS.  Skybox images are from http://3delyvisions.co/skf1.htm .  It might be cool to give them some credits if you use one of their skyboxes for a commercial project.

Link to comment
Share on other sites

Hi again

I am still having the same issues with the CORS-policy. When linking to the folder containing the skybox files I get the following error: 

skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("https://github.com/gexzor/bjs-skybox/tree/master/skybox/nebula", scene);

"Redirect from 'https://github.com/gexzor/bjs-skybox/tree/master/skybox/nebula_py.jpg' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.babylonjs-playground.com' is therefore not allowed access."

What am I missing?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...