Jump to content

Recent parse refactoring commit broke mesh import?


WolfKodi
 Share

Recommended Posts

The latest commits by DK, labelled as "Keep working on serialization refactoring", on the 2.3 alpha preview release started giving me SceneLoader.ImportMesh error as follow:

Unable to import meshes from /location/file.babylon (Exception: TypeError: y.ParseMultiMaterial is not a function)

An even more recent commit, labelled as "Serialization/Parsing refactoring done", gave me this instead:

Unable to import meshes from /location/file.babylon (Exception: TypeError: y.Parse is not a function)

The latest commit as of this time of writing still gives me the above error message.

My mesh exported out from and using the Blender Exporter (version 3.0.6) imports and loads without errors with the previous commits. (Was wondering why the screen was stuck at the preloader until I decided to stick an onerror callback function into the mesh loader.)

I don't see updates to the Blender Exporter or I'd try that.


p/s: Oh and by the way, hi there, all of you kind souls on here. I've been stalking these forums a lots this past week when I decided to start my webGL exploration with Babylon.js. Also been itching to communicate and I finally found enough reason to create an account for this post. Cheers!

 

 

 

 

Link to comment
Share on other sites

Hmm maybe it's the load script or html related. I'm using a private hosted site but linking the BJS script from "http://www.babylonjs.com/babylon.js"

I setup a jsfiddle with a basic mesh import function and I got the same error message. I set it to show an alert of the error message: http://jsfiddle.net/7x0nkh0g/2/

If I switch the BJS script to a previous commit, before the prasing update (around 25 November) such as the following, the scene imports without errors.
https://rawgit.com/BabylonJS/Babylon.js/2bf66f15f8f5947faa4cef2a76d3811f98d21e44/dist/preview%20release/babylon.js

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