WhoAteDaCake Posted August 3, 2017 Share Posted August 3, 2017 I have a .babylon file that I've read.And I need to load the mesh into the scene. What would be the best way to do it? I can't use HTTP requests, it has to import from that object. I've tried: const loader = BABYLON.SceneLoader.GetPluginForExtension('babylon'); loader.load(scene, data); But it gave an error: Quote importScene of undefined from undefined version: undefined, exporter version: undefinedimportScene has failed JSON parse foot.babylon Quote Link to comment Share on other sites More sharing options...
WhoAteDaCake Posted August 3, 2017 Author Share Posted August 3, 2017 Okay, it turns out, that loader only accepts string type. So I can just do loader.load(scene, JSON.stringify(data)) GameMonetize 1 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.