Myjestic

Problems importing *.babylon in Chrome

Recommended Posts

Hi,

I created some merged meshes with babylon.js. Then I serialized them and put into a JSON-file (*.babylon).

Now I am importing the meshes from this files. Most of them are imported correctly.

One file gives me the following error:

"BJS - [17:06:47]: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse".

 

Strange on this error is - it only appears on Chrome 55.0. With Firefox 31.6

Any Idea where to search for the error?

 

 

Share this post


Link to post
Share on other sites

About a year ago, a producer tag started getting put into .babylon files by all the exporters.  This identified what produced the file.  Looks like the serializer does not add this field.  Probably should.  Upshot is you are not going to figure out much looking at that error.  Perhaps, you serialized the scene with an older version of BJS, that is causing the problem now.  (Which is why the serializer should add the producer info)

Share this post


Link to post
Share on other sites

I did this with BJS 2.5:

	var	strMesh = BABYLON.SceneSerializer.SerializeMesh(mesh);
	strMesh = JSON.stringify(strMesh)	

and wrote the String to a file. There is no producer tag like if I am exporting from blender, like this:

	"producer": {
		"name": "Blender",
		"version": "2.76 (sub 0)",
		"exporter_version": "5.0.6",
		"file": "question1.babylon"
	},

I also added this lines to my exported JSON. No change.

 

And nonetheless, all other exported files are working.

Share this post


Link to post
Share on other sites

Now, this is really strange! I tried it on another Computer with exactly the same version of Chrome and there is no error. Everthing works as expected.

The only difference between the two computers is, that the one where it does not work has an internet proxy with a whitelist.

Mh now I am totally confused 

 :blink:

 

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.