jellix Posted April 25, 2017 Share Posted April 25, 2017 Hi, In my example, I'm creating 1000 spheres (so it may take some seconds to build up): http://www.babylonjs-playground.com/#F0HDSP#1 Now turn the camera to the right ... whoops - balls are away It seems like the "isInFrustrum" function doesn't know the whole mesh but only the left row of the balls. The reason could be that I'm not only building one SPS but two of them where the first SPS is used as a mesh for the second SPS. Or are there any other reasons for that behavior? Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 25, 2017 Share Posted April 25, 2017 Try to use : sps.refreshVisibleSize(); Quote Link to comment Share on other sites More sharing options...
jellix Posted April 25, 2017 Author Share Posted April 25, 2017 And that's it! Great, Thank you! Temechon 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted April 26, 2017 Share Posted April 26, 2017 http://doc.babylonjs.com/overviews/solid_particle_system#sps-visibility jellix 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.