Sign in to follow this  
darkpgn

Mouse In the World Managed

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
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

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