Original Post
I have a windowed application in c#. I am using DirectX and Direct3D, so no OpenGL functions.
What I am looking for is to convert my 2D(X,Y) mouse coordinates, when I click someplace in the window, into 3D(X,Y,Z) coordinates.
I want to be able to simply insert an object into the 3D world with the click of the mouse button. And I want it to be created exactly where I have my mouse pointer.
I''ve tried various things, but it just didn''t seem to work correctly. I just need a solid explanation and some good sample code to guide me through this.
Thanks.