0

I was using webgl-experimental code do display a webgl-demo on a custom webpage on an XAMPP webserver. After that I tried some non-experimental code: https://webglfundamentals.org/webgl/webgl-skybox.html Changing the code to exactly the same like on the demo webpage (using CTRL-U to copy out the exact code) it didn't work.

Opening the demo in the same browser, it displays the running demo, but if I load it in my custom XAMPP webserver it won't load.

Why is it so? Is it also on the webserver dependent? How to install a debug console, that can also print webgl errors?

https://webglfundamentals.org/webgl/webgl-skybox.html

  • are there any error messages in your browser's [javascript console](https://developers.google.com/web/tools/chrome-devtools/console/javascript)? – gman Nov 02 '19 at 03:46
  • ReferenceError: Clazz is not defined m4.js:1:1 http://localhost/resources/m4.js:1 ReferenceError: webglUtils is not defined content_frame.html:60:17 main http://localhost/content_frame.html:60 http://localhost/content_frame.html:243 – user4576528 Nov 03 '19 at 16:50
  • Where can I get a proper m4.js? – user4576528 Nov 03 '19 at 16:50
  • https://webglfundamentals.org/webgl/lessons/webgl-setup-and-installation.html – gman Nov 03 '19 at 17:24

0 Answers0