Skip to content

This package provides essential scripts (FrustumVisibilityManager and VisibilitySubject) that enable the dynamic management of object visibility and shadow casting based on the camera's view frustum.

License

Notifications You must be signed in to change notification settings

safakgulpinar/FrustumVisibilitySystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frustm Visibility System

Purpose

The Frustum Visibility System is designed to optimize scene performance in Unity by dynamically adjusting the visibility and shadow casting properties of objects based on their presence within the camera's view frustum. This system helps in reducing the rendering load by only processing objects that are within the player's field of view. For a deeper understanding of camera frustums in Unity, refer to the Unity Manual on Camera's View Frustum.

How to Use

  • Drag and Drop: Drag and Drop: To implement the Frustum Visibility System, simply drag and drop the FrustumVisibilityManager script onto any active camera in your scene. Ensure that objects that need visibility management are equipped with the VisibilitySubject script.
  • Adjust Settings: Customize settings such as check intervals, visibility types, and visibility offsets in the FrustumVisibilityManager script according to your specific requirements.
  • Runtime Efficiency: This system automatically updates the visibility state of objects based on player movement and predefined intervals, ensuring optimal performance during runtime.

Package Overview

This package provides essential scripts (FrustumVisibilityManager and VisibilitySubject) that enable the dynamic management of object visibility and shadow casting based on the camera's view frustum. It is designed for easy integration and minimal setup, making it an ideal solution for performance optimization in various Unity projects.This system offers an understandable and straightforward start in performance optimization.

Screenshot 2024-04-20 at 22 06 33

Performance Comparison

Screenshot 2024-04-20 at 20 07 29 Screenshot 2024-04-20 at 20 11 41
XS.mov

About

This package provides essential scripts (FrustumVisibilityManager and VisibilitySubject) that enable the dynamic management of object visibility and shadow casting based on the camera's view frustum.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published