Jump to content

Just starting out and having problems


chicagobob123
 Share

Recommended Posts

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. 


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...