mecanicus Posted June 20, 2017 Share Posted June 20, 2017 Hello,I begin in the use of babylon.js. I meet the following problem: I load from the playground the zip of the demo http://www.babylonjs-playground.com/* XCPP9Y#1.When I throw the file the console send back the following error: babylon.max.js:5410 BJS - [13:19:37]: Babylon.js engine (v2.5) launched test1.html:64 Uncaught TypeError: Cannot read property 'AdvancedDynamicTexture' of undefined at createScene (test1.html:64) at test1.html:82 createScene @ test1.html:64 (anonymous) @ test1.html:82 Thanks for your answer test1.html.back Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2017 Share Posted June 20, 2017 hello to get GUI you need to add a reference to https://preview.babylonjs.com/gui/babylon.gui.min.js Furthermore you should use Bjs 3.0 instead of 2.5 Quote Link to comment Share on other sites More sharing options...
mecanicus Posted June 20, 2017 Author Share Posted June 20, 2017 Merci pour votre réponse (je me permet de continuer en français, car je sais que vous le parlez ;-) ). Je viens d'essayer avec le lien, mais j'ai toujours des erreurs. Pour être sûr, je charge les js à partir de lien internet. J''ai joint le code et les copies d'écrans. Merci test2.html.back Quote Link to comment Share on other sites More sharing options...
jerome Posted June 20, 2017 Share Posted June 20, 2017 Download your html page and all the resources (images, js code, etc) from a local webserver, not from the file system. http://localhost/my/path instead of file:C///my/path Quote Link to comment Share on other sites More sharing options...
mecanicus Posted June 20, 2017 Author Share Posted June 20, 2017 I launched to wampserver it does not still work, to see code and screenshots test2.html.back Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 20, 2017 Share Posted June 20, 2017 C'est parce que tu utilise la version 2.5. Utilise la version 3.0 pour que BABYLON.GUI fonctionne <script src="http://cdn.babylonjs.com/2-5/babylon.max.js"></script> <script src="https://preview.babylonjs.com/babylon.js"></script> mecanicus and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
mecanicus Posted June 20, 2017 Author Share Posted June 20, 2017 Ca fonctionne Merci beaucoup 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.