Screen Projection and Culling united
问题 I am currently dealing with several thousand boxes that i'd like to project onto the screen to determinate their sizes and distances to the camera. My current approach is to get a sphere representing the box and project that using view and projection matrices and the viewport values. // PSEUDOCODE // project box center from world into viewspace boxCenterInViewSpace = viewMatrix * boxCenter; // get two points left and right of center leftPoint = boxCenter - radius; right = boxCenter + radius;