Sign in to follow this  
quaikohc2

projection space object size

Recommended Posts

hi
what's the best way to calculate 3d objects size in projection/screen space? Is it fast enough to use this for culling? Is it used in modern game engines?

Share this post


Link to post
Share on other sites
How accurate do you need to be?
If you want perfect accuracy then you need to project every vertex to screenspace, finding the minima and maxima. I.e. not very efficient.

I typically use a bounding sphere representation, in which case i'm just projecting the left, top, right and bottom of the sphere.
I don't use this for culling however, I've needed screen space size approximation for impostoring tricks.
For culling of these, i just do sphere-vs-plane intersection tests (SIMD optimized)

Ultra modern game engines are looking to move culling either directly onto the GPU (Splinter Cell Conviction, iirc), or via a software hi-z approach (Frostbite 2)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this