levere Posted May 8, 2018 Share Posted May 8, 2018 If camera.checkCollisions is enabled, mesh.isBlocker doesn't seem to be working with LensFlareSystem. Is this expected behavior or a bug? http://www.babylonjs-playground.com/#7M28FW (I'm also seeing a WebGL warning about a texture in the browser console window.) Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 9, 2018 Share Posted May 9, 2018 Hi @levere, I am not sure what you were expecting to do here. I assume you wanted the sphere to block the camera's movement? this has nothing to do with the LFS (you can disable it and your demo will not work as well) To enable collisions on the sphere you will need to set the sphere's checkCollisions to true: http://www.babylonjs-playground.com/#7M28FW#2 Quote Link to comment Share on other sites More sharing options...
levere Posted May 9, 2018 Author Share Posted May 9, 2018 I want the sphere to block the lens flare, if it's between the camera and the light source (as it used to). If camera.checkCollisions is true, the sphere does not block the lens flare. If it is false, it does. I need collision checking in my application. Simply turning it off is not an option. Setting checkCollisions to true on the sphere changes nothing with regards to the lens flare. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2018 Share Posted May 10, 2018 This seems to be a bug..Let me check Quote Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2018 Share Posted May 10, 2018 Fixed! Will be in next commit Thank you for the report Quote Link to comment Share on other sites More sharing options...
levere Posted May 10, 2018 Author Share Posted May 10, 2018 Thank you for the fix. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2018 Share Posted May 10, 2018 here we are: https://github.com/BabylonJS/Babylon.js/commit/160d51a4041ebc2e3ae35d1ae02e08f04840f713 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.