Jump to content
  • Advertisement

Archived

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

Odd the Hermit

World vs. Screen Coordinates

This topic is 5656 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

Ok, I''ve checked every reference I can, including the Pick program, and I still can''t figure this out. How do you transform world coordinates to screen coordinates? I''m trying to write some custom mouse code, such that the mouse cursor is actually moving above (and parallel to) the z-plane, while the camera is able to rotate around the y-axis, and I want to make sure that the mouse cursor never leaves the visible screen area. Any help is greatly appreciated, since this is driving me batty, and it seems like it should be fairly easy to do. Thanks in advance, -Odd the Hermit

Share this post


Link to post
Share on other sites
Advertisement
I had trouble in this area too. Check out:

http://www.gamedev.net/community/forums/topic.asp?topic_id=146066

use Vector3.Project()

Pinz.

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!