@SGaist

My solution is heavily inspired by: this old ogre wiki post (should have linked it as well, forgot about it until now).
I mostly slimmed it down to what I posted as my solution, but I agree if I have time I'll try to make an example/entry.
There are some things that need to be updated from the linked post to fit Ogre 2.1 since the post is old.