Sign in to follow this  
Zaph-0

Clicking a 3D vertex in 2D Space...

Recommended Posts

Zaph-0    128
Hi, I am not certain if this fits into the directx forum but since I am using directx 9.0 and maybe there are some funtions there to help me I put it here. I have a bunch of vertices on the screen and I want to make it so, that I can click one of them with the mouse. Problem is that I have no 2D-coordinates but only the 3D coordinates (x,y,z) as well as the necessary matrices (world, view, projection) and the shaders to display the vertices. How could I manually transform the 3d-coordinates of the vertices to 2d-coordinates so that I can find the one I clicked ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this