Jump to content

SceneLoader.Load from object


roman_44
 Share

Recommended Posts

Hey, Babylon Professors!

I have *.babylon file exported from Blender. Whole scene with objects, lights, materials.

I need to replace whole scene many times in my SPA with several different scenes. And also I need to change a lot of materials before reloading. And default behavior of SceneLoader.Load is making GET request to server with given path of the file. Is it possible to Load scene not from file on the server, but from my Javascript object (JSON) from browser?

Source code for Babylon SceneLoader.Load function is too complicated for me to change it in right way.

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