satguru Posted April 23, 2016 Share Posted April 23, 2016 InstancedMesh.clone() method throws folloiwing exception Uncaught TypeError: mesh._getInstancesRenderList is not a functionShadowGenerator.renderSubMesh @ babylon.2.4.max-04-23.js:10003 ShadowGenerator._shadowMap.customRenderFunction @ babylon.2.4.max-04-23.js:10047 RenderingGroup.render @ babylon.2.4.max-04-23.js:14077 RenderingManager.render @ babylon.2.4.max-04-23.js:14030 RenderTargetTexture.renderToTarget @ babylon.2.4.max-04-23.js:21082 RenderTargetTexture.render @ babylon.2.4.max-04-23.js:21046 Scene._renderForCamera @ babylon.2.4.max-04-23.js:15718 Scene._processSubCameras @ babylon.2.4.max-04-23.js:15787 Scene.render @ babylon.2.4.max-04-23.js:15940 (anonymous function) @ Vishva.js:1184 Engine._renderLoop @ babylon.2.4.max-04-23.js:5836 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 25, 2016 Share Posted April 25, 2016 can you provide a playground? Quote Link to comment Share on other sites More sharing options...
satguru Posted April 25, 2016 Author Share Posted April 25, 2016 see http://www.babylonjs-playground.com/#1TAOTM#1 un-comment line 29 to see error in console. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 25, 2016 Share Posted April 25, 2016 ha yeah..I need to block this..You cannot clone an instance..You have to call createInstance on root mesh I'll automate it Quote Link to comment Share on other sites More sharing options...
satguru Posted April 26, 2016 Author Share Posted April 26, 2016 Makes sense. Not clear by what you mean by automate it thiug. Does that mean if I call clone it will result in createInstance? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 26, 2016 Share Posted April 26, 2016 I think this mean that if you clone an instantiate object, it will take the base object for the cloned rather than a cloned instance. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 26, 2016 Share Posted April 26, 2016 Dad is correct Quote Link to comment Share on other sites More sharing options...
satguru Posted April 27, 2016 Author Share Posted April 27, 2016 Ok. Thanks 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.