Soundbomber's picture

3D extents

Does anyone know of a method to calculate the extents for all 3D objects in a scene?
So I want x_min,x_max........z_max calculated by comparing each solid after any transformations.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Not yet.

Soundbomber's picture

Thanks for your help.

zahirtezcan's picture

you may use bounding spheres too. bounding sphere's radius remain same after object rotation, and you only need to translate the center of the sphere for translation . Here is a discussion on GameDev. There is an article on last post for implementation of sphere trees.