• Advertisement
Sign in to follow this  

Mouse In the World Managed

This topic is 3675 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 I have been working on this problem for a few days now with no success. My problem is that i am trying to create a simple map editor for my program. But im having a problem locating were my mouse is in the device. I have my device setup in a picturebox. I mean it wouldnt be a problem if i didnt want to zoom in on the map, but since i want to be able to zoom in i need to be able to find the ratio from my map on the screen to my actual map in pixels. And the map is just how it sounds there is no 3d work on the world itself its all done on a 2d plane. I dont know if this made sense but it would be nice if someone could comment on how i could do something like this thanks.

Share this post


Link to post
Share on other sites
Advertisement
ok i found out how to find the position of my mouse. using this page...

http://www.mdxinfo.com/tutorials/picking.php

however... i am not using the framework.

so whenever i change my view matrix this code does not work and i do not understand why... does anyone have a thought about this?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement