Jump to content

Why is this not working?


Recommended Posts

Are you using a web server (like apache-xampp)?

Sites with Babylon need a web server to test and check the scene.

For Xampp you can:

Go to 'control panel' then mark 'Start' for Apache and MySQL

Copy your project folder into 'C:/xampp/htdocs' folder

Call (index.html) in the browser as: localhost/YOURPROJECTNAME

Link to comment
Share on other sites

@freddythenoob : Hi freddy,, welcome to the forum :)

I'm sure the code experts will help you, but just a thought from a code dummy:

Try moving the "babylon.js"  (or whatever you call it) script below the "hand.js" and "cannon.js" scripts. in your html file

cheers, gryff :)

Link to comment
Share on other sites

You have to put all your inside  window.onload, because your browser is not already when you call document.getElementById("renderCanvas").


window.onload = function () {

    var canvas = document.getElementById("renderCanvas");




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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...