I had a bit of spare time before I start to re-implement the SSAO, so I went on the hunt for some good articles about Bounding Boxes. I finally found a good article by Tim Jones which explained everything and had a great code example. I read through the article and wondered how I’d get away from creating a
DrawableGameComponent for each model so I have modified the
BoundingBoxComponent code in order to remove this.
With a slight shuffle of the code, it is now instantiated in the
Actor class and the
SceneManager class now has a new property,
ShowBoundingBoxes. Set this to true and you’ll see them 🙂