Maths: Camera Position From AABB?

Miscellaneous Forums/General Discussion/Maths: Camera Position From AABB?

Could you place 8 objects on each corner of the bounding box, project the world coordinates to 2D, and then check wether each of these objects has a valid 2D projection coordinate, e.g. within the graphics screen.

If one is < 0 or > ScreenWidth, you could then move the camera back until they are all valid.

Much like how you use ProjectedX, ProjectedY etc in Blitz3D.

Just an idea! :)