Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

What is a nice, neat way to get the AABB of a sphere's projection onto the screen? This is to determine simplified geometry for lights in deferred shading.

share|improve this question
    
Axis Alighned Bounding Box... So you want a box around the sphere?? –  Savlon Feb 12 '13 at 18:03
    
I want to know what screen space rectangle to draw that will touch all of the pixels a specified sphere would touch. –  Promit Feb 12 '13 at 19:26
    
Have you searched google for AABB of a sphere space projection? –  Savlon Feb 12 '13 at 19:35
add comment

1 Answer

up vote 3 down vote accepted

Found the correct derivation of the extents on AltDevBlogADay: http://www.altdevblogaday.com/2012/03/01/getting-the-projected-extent-of-a-sphere-to-the-near-plane/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.