f13rce Posted August 15, 2013 Posted August 15, 2013 Hi all, Was kinda wondering how I can obtain the 2D screen co-ordinates from a 3D world point. I'm currently needing this for the UI in my game. I want to draw a line from my mouse to an object in my world using Context::DrawLine(). Anyone have a clue how I could do this (in C++)? Thanks in advance! Quote Using Leadwerks Professional Edition (Beta), mainly using C++. Windows 10 / Linux Mint, Visual Studio 2017. GPU: NVidia GeForce GTX970, CPU: Intel i7 7700K @ 4.20 GHz Previously known as Evayr.
Rick Posted August 15, 2013 Posted August 15, 2013 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/cameraunproject-r201 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/cameraproject-r200 Quote
f13rce Posted August 15, 2013 Author Posted August 15, 2013 Thanks Rick! Quote Using Leadwerks Professional Edition (Beta), mainly using C++. Windows 10 / Linux Mint, Visual Studio 2017. GPU: NVidia GeForce GTX970, CPU: Intel i7 7700K @ 4.20 GHz Previously known as Evayr.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.