Jump to content

Multiple Scene Loaders issue?


Recommended Posts

what browser are you using?

first replace the alert(msg) with console.log(msg);  unless you want those dialog popups and hit f12 to view the developers console.

scene.ambientColor = new BABYLON.Color3(1, 1, 1); -> produces Uncaught TypeError: Cannot set property 'ambientColor' of undefined
    at main.php:316

which is going to make all the scene invalidate because they never compile due to the error.  

start using your console and all answers will come easier to you.

Link to comment
Share on other sites

Cause of your code erasing the scene variable here:


As I was saying "you have a mix of scene being the scene and being accessed as an array"

Basically your array gets replaced by the variable which you can see in the dev tools.

Rename the variable scene (and create one not in your full script scope) in the method CreateScene.

Link to comment
Share on other sites

@Mythros before asking new questions on the forum, please follow these rules now:

1 - learn how JavaScript is working by following various tutorials you'll find on the web

2 - learn how to use the F12 / developer tool of your favorite browser 

3 - search our documentation / samples / forum / playground samples if the question can be solved that way

4 - if you still need help, use the playground to reproduce your issue to ask for help 

The team and great forum's members can't spend their time helping you until you've first done that.


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