chicagobob123 Posted May 19, 2016 Share Posted May 19, 2016 downloaded the Babylon.js-master\dist from the Git Hub Tried the first example. All I get is Error "WebGL not supported" . I tried this in 3 different browsers that run three js. Should I be using the version in the zip file? <!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>Measurement</title> <style> body { margin: 0; } </style> </head> <body> <div id="renderCanvas" style="position: absolute; left:0px; top:0px; touch-action:none;"></div> <div id="MessageDisplay1" style="position: absolute; top: 50px; left: 50px; background-color: black; opacity: 0.8; color:white; touch-action:none;"></div> <div id="MessageDisplay" style="position: absolute; top: 50px; left: 200px; background-color: black; opacity: 0.8; color:white; touch-action:none;"></div> <script src="babylon.2.3.js"></script> <script> window.addEventListener('DOMContentLoaded',function() { // get the canvas DOM element var canvas = document.getElementById('renderCanvas'); // load the 3D engine var engine = new BABYLON.Engine(canvas, true); <------- Dies here. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 19, 2016 Share Posted May 19, 2016 Hi cb123... welcome to the forum. I think your top <div> needs to be <canvas> instead. Give that a try... to start with. Report back, if you would. Thx. Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted May 19, 2016 Author Share Posted May 19, 2016 <div> needs to be <canvas> instead. I just came here to post that. Well DUH. The Div tag will work in three js maybe it doesnt care or does something else. Anyway THANK you so much. hate being a newbie. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 20, 2016 Share Posted May 20, 2016 We were all a newbie at some point in time gryff, dbawel and Wingnut 3 Quote Link to comment Share on other sites More sharing options...
gryff Posted May 20, 2016 Share Posted May 20, 2016 Quote We were all a newbie at some point in time Exactly DK And if we ever stop being a newbie at something in life - might as well be dead. cheers, gryff Wingnut, dbawel and GameMonetize 3 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.