hunts Posted February 26, 2017 Share Posted February 26, 2017 This is bugging me. How can I check meshes in a camera frustrum? Quote Link to comment Share on other sites More sharing options...
davrous Posted February 27, 2017 Share Posted February 27, 2017 Hello, What are you trying to do exactly? Babylon.js is checking the meshes visible in the frustrum for you automatically to discard it for the rendering. Are you trying to do something different? David hunts 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 27, 2017 Share Posted February 27, 2017 Like this: var frustumPlanes = BABYLON.Frustum.GetPlanes(camera.getTransformMatrix()); mesh.isInFrustum(frustumPlanes) hunts 1 Quote Link to comment Share on other sites More sharing options...
hunts Posted February 27, 2017 Author Share Posted February 27, 2017 @Deltakosh yeah something i was looking for GameMonetize 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.