CodeBase - PickScreen() funtion for DBC, AKA 3D Mouse

Return to the CodeBase listing

Category: 3D Effects

Version: 1.13

0
0

Information

Uploaded: 6th Sep 2005 21:00

Modified: 6th Sep 2005 22:43

Author:  Relativity

Summary

This Pick Screen function will produce a 3D point a certain distance away from the camera that corresponds to a 2D point on the screen. Also can be used as a 3D mouse.

Full Description

This will give the user 3D coordinates a certain distance away from the camera that corresponds to a 2D point on the screen. As far as I can tell, all aspect ratios work with it. It requires you to create an array VECTOR() and will store the results in VECTOR(0), VECTOR(1), and VECTOR(2). It is attatched to an example program.

Comments

No comments yet.