July 2002
Intermediate to advanced
336 pages
8h 40m
English

When drawing a 3D object, it is sometimes useful to find a rectangle on the screen that completely encloses the object. This can be used to minimize screen-update and z buffer–clear regions. If the entire object is visible within the screen boundaries, this calculation is easy. You just find the minimum and maximum x and y screen coordinates. If the object extends outside the screen boundaries in one or more coordinates, this calculation is a little trickier. Simply extending the enclosing boundaries to the entire screen dimensions is overly conservative. This chapter describes a way to determine a ...
Read now
Unlock full access