WolfKodi Posted November 26, 2015 Share Posted November 26, 2015 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! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2015 Share Posted November 27, 2015 Hey! there may be bugs Could you please share the file you tried to load? Quote Link to comment Share on other sites More sharing options...
MasterK Posted November 27, 2015 Share Posted November 27, 2015 i found some similar problem... i update the latest babylon.js code just now. and load my (.babylon) scene, i found the scene.meshs has only 6 meshs, and the 2015.11.04 version, it's ok and it has 20 meshes. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 27, 2015 Share Posted November 27, 2015 I'm interested by any sample .babylon scene you may have Quote Link to comment Share on other sites More sharing options...
MasterK Posted November 27, 2015 Share Posted November 27, 2015 i have 5 scenes model. 3 is ok to import. and 2 scenes import nothing. i cant attach files. i tryied 3 times... (.rar file, 700k.) Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 27, 2015 Author Share Posted November 27, 2015 Here's a sample .babylon file that gives the following error:Unable to import meshes from /kodi3d/rigmorph.babylon (Exception: TypeError: y.Parse is not a function)@MasterK, you could also upload the file someplace else and share the link here.rigmorph.zip Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 28, 2015 Share Posted November 28, 2015 This scene works perfectly for me: Could you check you are using the latest version? perhaps clear browser cache as well Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 28, 2015 Author Share Posted November 28, 2015 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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 28, 2015 Share Posted November 28, 2015 Ok this was an issue with the ImportMesh that Raanan fixed this afternoon:) It should work now that I published the new version WolfKodi 1 Quote Link to comment Share on other sites More sharing options...
WolfKodi Posted November 28, 2015 Author Share Posted November 28, 2015 Awesome. It's working now! So it was an issue with multi material mesh import parsing. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 28, 2015 Share Posted November 28, 2015 ABsolutely Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.