I am writing a 3d design/viewing program in visual basic and I am trying to create a function where the user can draw lines on a plane (right now i just have y=0) by clicking on the screen. I need to know how to transform the 2d point (x,0) to a 3d point. another related problem is the mouse’s coordinates (x,y) are not the same as the camera or world space coordinates.
also…vb’s line drawing function is too slow for my application…is there a high performance line drawing function available?