You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
let us have a flat terrain, this terrain is a scene node containing a mesh.
I'd like to subdivide all (or a part) of this terrain in a grid of cells, so when I roll the mouse over the terrain I can highlight the cell the mouse is in.
How can I do that? How to get the coordinates of the collision point (relative to the terrain mesh) between the ray beginning from the mouse and the terrain mesh?