Ogre Version: 13.2
Operating System: Ubuntu 18.04
Render System: N/A
I am working on a use case where the scene 3D rendered models need to be annotate with rectangle boxes (2D screen coordinates).
The most intuitve way I explored first was using the models AABB bounding boxes (projecting the corners into the 2D screen coordinates). This works roughly but end up providing bad results when some of the bounding box corners get out of the 2D visible screen space (models too close to the camera kind-of).
The second approach I used was for a non-real-time case. The model was rendered into a texture, then the texture was extracted into a bitmap. The contours of the model could be computed pretty easily scanning the bitmap for light up pixels. This works well for ONE model at a time.
I am struggling to find a better solution than the AABB boxing box for many models in a scene, while this should be done in a fast pace (let's say 25 FPS).
Thanks for your help,
Regards