Skip to content

Q about possible frustum culling with bepu #123

Answered by RossNordby
BreyerW asked this question in Q&A
Discussion options

You must be logged in to vote

For the purposes of rendering or similar use cases using bepuphysics2 infrastructure, the easiest thing would be to piggy back on the broad phase Tree (or a Tree maintained specifically for whatever the use case is, if it's not the same as physics objects) and implement a frustum-tree test. I haven't implemented that in bepuphysics2 yet unfortunately (all frustum culling is done on the GPU in my projects), but it would not be too hard to do.

You could take the existing ray-tree test and replace the ray-AABB test with a frustum-AABB test. I might add such a thing eventually, but if you'd like to give it a shot, here's some HLSL for such a test.

First, since the frustum is going to be teste…

Replies: 8 comments 20 replies

Comment options

You must be logged in to vote
5 replies
@BreyerW
Comment options

@RossNordby
Comment options

@BreyerW
Comment options

@RossNordby
Comment options

@BreyerW
Comment options

Answer selected by BreyerW
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RossNordby
Comment options

Comment options

You must be logged in to vote
7 replies
@RossNordby
Comment options

@BreyerW
Comment options

@RossNordby
Comment options

@filnet
Comment options

@BreyerW
Comment options

Comment options

You must be logged in to vote
3 replies
@RossNordby
Comment options

@BreyerW
Comment options

@RossNordby
Comment options

Comment options

You must be logged in to vote
2 replies
@RossNordby
Comment options

@BreyerW
Comment options

Comment options

You must be logged in to vote
2 replies
@RossNordby
Comment options

@BreyerW
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants