Jump to content

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


ramkrishna
 Share

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.

http://playground.babylonjs.com/#1W8WP0

For dowload refer:
https://ramkrishnautpat.github.io/platform/platform/Edit.html

Edit.html

Link to comment
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.

Thanks

 

error.JPG

Link to comment
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) {
    glb.downloadFiles();
});

Let me know if have further questions on this.

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