WhoAteDaCake Posted August 9, 2017 Share Posted August 9, 2017 Code: https://pastebin.com/zE0zhn7K So if you try to load a scene asynchronously, do something else, start the engine using that scene, The scene will just show an empty space. However, if you take a look at the code above, go to async function createScene(config) { const { textureModifier } = config; const { height, width, color } = config; const scene = new Scene(config.engine); await importScene(config.mesh, scene); And comment 'importScene' line, the go to async function run() { // await importScene(config.mesh, scene.internal); engine.runRenderLoop(() => scene.render()); // engine.runRenderLoop(() => console.log('test')); } And uncomment 'importScene' here, it works fine. I've included a .babylon file below. foot.babylon Quote Link to comment Share on other sites More sharing options...
WhoAteDaCake Posted August 9, 2017 Author Share Posted August 9, 2017 Nevermind I am just stupid, if you look at createScene method, i was adding a second camera, even if one was already inside of the scene I am importing. That's the reason it was not showing anything 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.