webGLmmk Posted July 18, 2017 Share Posted July 18, 2017 Do I still need to include hand, cannon, and oimo files in the <head> of a local document? Or are they integrated into the main babylon.js cdn link? Just noticed the links are no longer on the github page... It's been a bit... Also, when I download the zip for the playground basic scene, then open it up, it renders fine. When I open the following scene with a procedural texture, i just get white screen. ,, *edit*... uploaded to github and it won't run there either. This was the same file from the downloaded zip in the following playground scene...has preview links... hashtag confused https://www.babylonjs-playground.com/#KM3TC#20 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2017 Share Posted July 18, 2017 So the demo works on PG correct? your issue is when you download the zip? Did you serve it from a local web server ? Quote Link to comment Share on other sites More sharing options...
webGLmmk Posted July 18, 2017 Author Share Posted July 18, 2017 4 hours ago, Deltakosh said: So the demo works on PG correct? your issue is when you download the zip? Did you serve it from a local web server ? The demo does work on the playground. Just tried it from my local webserver (apache 2 var/www etc). I tried 2 files that I downloaded from the playground: 1 the basic scene with the sphere and plane (the one that first appears default on the playground), and my custom scene with the procedural texture: https://www.babylonjs-playground.com/#KM3TC#20 The first file with the basic scene ran in my browser, but my custom one here did not. Still white screen. Thanks... Quote Link to comment Share on other sites More sharing options...
sable Posted July 18, 2017 Share Posted July 18, 2017 I would guess that you need to include the procedural texture in your project. https://preview.babylonjs.com/proceduralTexturesLibrary/babylon.fireProceduralTexture.min.js Quote Link to comment Share on other sites More sharing options...
webGLmmk Posted July 19, 2017 Author Share Posted July 19, 2017 2 hours ago, sable said: I would guess that you need to include the procedural texture in your project. https://preview.babylonjs.com/proceduralTexturesLibrary/babylon.fireProceduralTexture.min.js Great...it worked as long as I was running it through the server. So is the server is needed because of the procedural texture? I don't think I can run it on github then...still not running the file there, or locally without going through the server...that going to have to find an actual host... Also, kinda silly noob question, but I was looking around github to find where you got that link, in case I needed the other ones...is there a convenient place where you copy and paste it from? It didn't work when i just copied a raw link from within the dist/preview folders Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 19, 2017 Share Posted July 19, 2017 Yep server is required due to security constraints enforced when executing js and webgl. All links can be referenced from https://preview.babylonjs.com/xxx where xxx is the folder structure in github repo in the dist/preview release folder webGLmmk 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 19, 2017 Share Posted July 19, 2017 I updated the readme.md: https://github.com/BabylonJS/Babylon.js/blob/master/readme.md webGLmmk 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.