Re: [Algorithms] Depth-Sorting Axis-Aligned Boxes
Brought to you by:
vexxed72
|
From: Sebastian S. <seb...@gm...> - 2009-08-02 22:18:20
|
On Sun, Aug 2, 2009 at 8:30 PM, Richard Mitton <mi...@tr...> wrote: > I may be missing something, but can't you just do a sort based on their > furthest point along the camera axis? > > i.e. transform into view space, then sort by furthest Z coordinate. Also, the closest corner of the AABB will be the same for every AABB, so you can just look at the camera direction once per frame, and compute which "corner index" you need to check for each AABB. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 |