Hi, I am developing an application, where some objects move in a 3D space. I am using OCD as a camera lib. I need to somehow be able to project mouseX and mouseY to the 3D worlds "ground" plane so that if I click the mouse, the objects may get arranged around the point and so that i can select the objects with the mouse. Also I need to be able to project a 3D point to the screen to get some objects data displayed next to the objects.
Ideally the functions would look like this:
float[3] projectPointIn3D(mouseX, mouseY);
float[2] projectPointOnScreen(x, y ,z);
I know that all this is about ray/plane intersection but it involves too much math for me to dive into it right now. Do you know any library to help me with this? Or at least any good source of information where the math is described in a digestible way?
2