Getting no light scene using scene serializer downloaded scene and no light mesh when cloning

Recommended Posts

Hello All,

I am trying to save scene after editing using scene serializer. Below are the things i have achieved till now. 

1. I am able to edit meshes under scene
2. I am able to download edited scene successfully.

Below are problems i am facing

1. When i clone scene (using double click) i am not getting exactly same replica of required mesh.
2. When i try to play downloaded scene under sandbox new scene showing with no light.

Below is the link to example play ground.


For dowload refer:


Share this post

Link to post
Share on other sites

Hello @kcoley,

Thank for reply and apologies for delayed replay.

I have tried implementing suggestion provided by you and below are my findings.

1. I could able to download edited scene in ".glb" format.

2. However. when i try to render the downloaded scene in sandbox i get attached error, any mistake i made or route me to right way to download scene.

I have  question in continuation with your suggestion.

1. How can implement same mechanism in my code (refer Edit.html) so that i can make generic logic. So whenever user wants to save he will get download of file in same way.




Share this post

Link to post
Share on other sites

Hi @ramkrishna

2. The error is currently a bug in sandbox, which has been flagged here: https://github.com/BabylonJS/Babylon.js/issues/5360

3. You can trigger an event where you serialize your scene to gltf or glb based on the docs here: https://doc.babylonjs.com/extensions/gltfexporter
Something like this:

BABYLON.GLTF2Export.GLBAsync(scene, "fileName").then(function(glb) {

Let me know if have further questions on this.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.