Check if Part/Model is Not Visible To a Camera Via Occlusion Culling

As a roblox developer i cant use occlusion culling to check if a part is visible.
There should be a function called Camera:IsPartSeen(Part : BasePart/Meshpart) : true
differences between raycasting is that the raycast will always check to the center of the targeted part. which means if the center is hidden but the edge is seen the function will fire as its hidden while in Occlusion Culling the entire part needs to be hidden in that to be activated
This will help me in the following cases:

  1. A game that each part or model has a functionality(eg emitting particles and physics) to cease to function if its not in my screen
  2. NPC can actually “see” the player or part not using raycasts but with occlusion culling.
  3. Each Player Locally wont be needed to fire functions from existing players that are not seen in certain games.

Occlusion Culling is a built in function by the engine and it works faster than firing raycasts to each bounds of each part of the player/model.

9 Likes

I would love a feature like this, I wanna cull enemies from the game if they’re not seen to prevent wall hacking and then add them back when potentially seen by the player. This is how many competitive games handle wall hacking prevention methods such as CS2.

3 Likes

This would be super useful for custom rendering systems.