Kesshi Posted June 30, 2016 Share Posted June 30, 2016 In this playground i'm using SSAO: http://www.babylonjs-playground.com/#27DV4V If you click on the canvas, the 2 spheres will be removed from the scene (but not disposed). The problem is that SSAO effect of the spheres remains visible. I think this line is causing the issue: https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/Textures/babylon.renderTargetTexture.ts#L238 getActiveMeshes returns a SmartArray and the internal data array is used directly here wihtout using the real length of the SmartArray. This also means that the frustum culling is not working correclty for the DepthRenderer at the moment. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted June 30, 2016 Share Posted June 30, 2016 Hi, another option, if you don't want to dispose them, you can also set isVisible = false; to remove them from the "render list" http://www.babylonjs-playground.com/#27DV4V#3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 30, 2016 Share Posted June 30, 2016 Good catch I'll fix it Kesshi 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.