Hiding entities when they are not on screen

Blitz3D Forums/Blitz3D Programming/Hiding entities when they are not on screen

you don't have to hide them manually! Blitz will automatcly skip rendering things that are not in view, aka behind the camera. Tho they need to be seperate meshes. But if they once are seperate meshes, you don't have to care about hiding them. Hiding them would also skip collision detection, so if you walk backward, you could fall trough the earth right to china.

Just make sure your world is made of reasonably sized seperate meshes, so the camera will automaticly skip rendering things that are a) out of the camera range or b) not in view.

If you have a huge big one-mesh map, you may use the ClusterizeMesh Function from the codearchives.