converting 3d coordinate to 2d raster position.
6 replies to this topic
Members - Reputation: 322
Posted 14 September 2001 - 05:03 AM
Im making a small prog to make 3D models in, with curved spline patch surfaces based on a few control points. When making large models, the amount of control points makes it hard to select/mark specific points for manipulation with just using keyboard commands etc.. I need to be able to click on a point (which I only have the 3D coordinate of) with the mouse to select it. I know how to detect mouseclicks, but I cant find out how to get the pixel coordinate on the screen of a given 3D coordinate in the scene. I''d appreciate it if anyone could help me with this.