Skip to content

Frustum Culling API #187

@Maksims

Description

@Maksims

Think of nice Frustum Culling API:

  1. Control culling per camera.
  2. Detect if entity is culled.
  3. Enable/disable culling for entity.
  4. Hierarchal culling: culling happens on AABB of entities (which include all children), so if whole entity is culled, no culling needs to be checked for children. Detecting culling have to respect parents too.

Here are example use cases:

  • Someone has car model with some entities inside (turrets, wheels, driver), it is required to cull whole car not partially, and detect when car is culled in script so to prevent any scripts related to rendering (script animations, or particles, etc).
  • Multiple camera culling for shadow rendering where shadow camera as well as any active cameras has to be respected during depth map rendering.
  • Simple game like tanx has single big level, so dev will be sure that level don't have to be ever culled, or UI elements for example, so to optimise will turn of culling on those entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions