MarianG

import from string data

Recommended Posts

Hi.
I'm haveing a new problem. 
I'm trying to import an object from string, but it doesn't work. 
here is my attempt: http://playground.babylonjs.com/#UKNERM#41
the same string saved as babylonjs file work.
https://www.smarteam3d.com/test2 
And a lot of objects worked to import as string till now, but this one not, and I cann't explain what.

Any help is welcome.

PS: string length: 10205552

Share this post


Link to post
Share on other sites

I am not sure because I can't open the PG, but one possible reason could be because of string overflow, and the reason it works when you use scene loader is it uses File IO operations, again if someone could very this. Another reason could be because of JSON parsing error or incorrect format. Hope this helps !

ECMASCript 2016 (ed. 7) established a maximum length of 2^53 - 1 elements. Previously, no maximum length was specified. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length

 

Share this post


Link to post
Share on other sites

Hey, sory for late reply, and thanks for explanations.
Yes, actually I have an babylon file which is base64 encoded, and on decode I got the string above. 

My misunderstanding is that: why, this as example https://playground.babylonjs.com/#UKNERM#42 is loaded and is saying, hey i need an image :)
and my examply doesn't load :(, although that seems is the same problem.

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.