🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

D3DIM converting screen click coordinates

Started by
0 comments, last by Futzy 24 years, 5 months ago
Can anyone suggest a good/best way to convert coordinates where a user has clicked on screen to 3-D space coordinates that I can use to determine what/where they clicked on? Thanks, Futzy
Advertisement
Hi,
I don''t know how to do it in 3d, but the way I did it was to take my transformed polygon and write a function called
ISPOINTINTRIANGLE(). Want a copy of it? You pass it the point you want to check, and the three transformed points of your triangle, and it''ll tell you if it''s inside.

The only problem is, I don''t know how to get at coordinates after directx transforms them, so I did my transformations manually.

Anyway, if you want the function, email me at jraptis@csmi.com and I''ll send you a copy.
-- Goodlife-----------------------------Those whom the gods would destroy, they first drive mad.--DirectX design team official motto

This topic is closed to new replies.

Advertisement