Resolve "[Ogre] R2VB objects can't be picked"
What does this MR do?
This allows quad-based meshes to be picked. Since the quads are triangulated with a geometry shader, it was not that easy to perform. The chosen solution is noot very elegant, I added intersection tests on the quads themselves. Testing intersections on the triangulation is harder to perform and on top of that, at the beginning we did not intend to read it from the CPU.
However we could keep this principle and code it a bit more generically. A mesh traverser for instance wouldd be useful, especially because at the end we should not copy vertices and indexes. We can simply transform the ray in object space instead, that would be much more effective. But for now I did not have the time to work on this.
Closes #140 (closed)
How to test it?
Load the mesh provided below and try to pick points on it with CTRL+Left Click. Without the MR, nothing happens, otherwise it works.