CodeBase - 3D from 2D Mouse In Any Resolution
Return to the CodeBase listing
Category: 3D Maths
Version: 1.0
Information
Uploaded: 20th Aug 2010 15:11
Modified: 1st Jan 1970 01:00
Author: LeeBamber
Summary
Get a true 3D coordinate from the 2D mouse position easily with this code.
Full Description
Using inverse projection and view matrices from the 3DMATH command set, this code shows you step by step how to calculate the true 3D coordinate of the 2D coordinate of your mouse pointer, no matter what resolution or camera orientation you are in. Useful for a variety of 3D interface situations, and especially true of new touch based approaches.
Comments
No comments yet.