roland zhang Posted July 27, 2018 Share Posted July 27, 2018 (edited) BABYLON.SeceneLoader.ImportMesh can't get the reference to instancemesh is there any way to handle this question https://www.babylonjs-playground.com/#QCA0SH Edited July 30, 2018 by roland zhang add the example Quote Link to comment Share on other sites More sharing options...
brianzinn Posted July 27, 2018 Share Posted July 27, 2018 Are you not getting them from the callback? BABYLON.SceneLoader.ImportMesh("spaceship", "Scenes/SpaceDek/", "SpaceDek.babylon", scene, function (newMeshes, particleSystems) { console.log('imported', newMeshes, particleSystems) }); Quote Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2018 Share Posted July 27, 2018 Can you share a repro? Quote Link to comment Share on other sites More sharing options...
roland zhang Posted July 29, 2018 Author Share Posted July 29, 2018 Yes, I can't get them from the callback, there's only meshes, and no intanced meshes. Quote Link to comment Share on other sites More sharing options...
brianzinn Posted July 29, 2018 Share Posted July 29, 2018 You will need to share a model in that case. Quote Link to comment Share on other sites More sharing options...
roland zhang Posted July 30, 2018 Author Share Posted July 30, 2018 following is example: https://www.babylonjs-playground.com/#QCA0SH instancedMeshes can't be added to group brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted July 30, 2018 Share Posted July 30, 2018 i parented the instances to the group and it looks OK. looks like that needs to be done? https://www.babylonjs-playground.com/#QCA0SH#2 Quote Link to comment Share on other sites More sharing options...
roland zhang Posted July 30, 2018 Author Share Posted July 30, 2018 @brianzinn Thanks brianzinn 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.