Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SkyNet_ITA

Mouse and meshes

This topic is 5965 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, how can i know when the pointer of the mouse passes on a mesh? And if i rotate the point of view? how can i do that? Thx!

Share this post


Link to post
Share on other sites
Advertisement
I JUST solved this myself. The example that comes with the directx SDK is called "Pick" that shows you how to convert the 2d mouse coordinates into a vector that can be used to select an object that has not had it''s world coordinates changed. so it takes into consideration the viewing and projection matrices but not the world. if you goto http://www.mvps.org/directx/articles/improved_ray_picking.htm there is a great example on how to apply the world matrix to what that "Pick" example gives you.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!