Skip to content

feature: compute frustum culling#130

Merged
schell merged 19 commits intomainfrom
feature/compute-frustum-culling
Sep 29, 2024
Merged

feature: compute frustum culling#130
schell merged 19 commits intomainfrom
feature/compute-frustum-culling

Conversation

@schell
Copy link
Owner

@schell schell commented Sep 21, 2024

This adds a compute step to Stage::render that keeps out-of-view geometry (Renderlets) from being drawn.

Includes a demo app example-culling that shows the culling method/theory visually.

The development notes are on the devlog at https://renderling.xyz/devlog/index.html#sat_sep_28_2024.

@schell schell force-pushed the feature/compute-frustum-culling branch from 3656727 to 765a4dc Compare September 28, 2024 02:19
@schell schell marked this pull request as ready for review September 29, 2024 08:02
@schell schell merged commit 222060d into main Sep 29, 2024
@schell schell deleted the feature/compute-frustum-culling branch September 29, 2024 08:20
schell added a commit that referenced this pull request Dec 27, 2024
* feature: compute culling

* frustum and aabb bounding volumes

* recompile shaderS

* WIP on WASD mouse controls for glTF viewer, can load Sponza

* WASD mouse controls

* better texture support for glTFs

* report duplicated images

* separate example camera control

* added fps, tried tracing - it's useless

* use GltfPrimitive's bounding_box for frustum culling

* cpu side of compute culling

* frustum culling wrapup

* only cull when there are draw calls, Camera's fields are private

* debugging AABBs

* added bvol::BoundingSphere

* flipped a bunch of hit test function names

* fix tests

* workaround for weird CI rate-limiting issue

* readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant