There's a "GetVectorInScreenSpace( vecPlayerOrigin, iScreenX, iScreenY )" function you could use for taking a world position and getting screen coordinates for it.
Also, if you search the archives Yahn posted code for mouse picking objects on the HUD and finding corresponding world coordinates for the objects being picked. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 05:46 To: [email protected] Subject: [hlcoders] [hlcoders]Unproject 2D to world 3D / mouse coordinates to world Hi I have been looking into converting 2D screen coordinates into 3D World coordinates. I have using a method based on spherical and cylindrical coordinates. Is there a function like Unproject I could use? Or do I need to use a method based on sweeping a trace line around the world And using Screentransform function? No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.16/1250 - Release Date: 29/01/2008 22:20 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

