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:
- 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
- NPC can actually “see” the player or part not using raycasts but with occlusion culling.
- 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.