SarperSoher Posted January 11, 2014 Share Posted January 11, 2014 I need an entity's screen space position, I guess I have to use the below function but don't know how to convert it using matrices. Would you guys like to help me out here? http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/transform/transformpoint-r543 Quote Link to comment Share on other sites More sharing options...
SarperSoher Posted January 11, 2014 Author Share Posted January 11, 2014 Upon further digging I found it http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/cameraproject-r200 Quote Link to comment Share on other sites More sharing options...
Guppy Posted January 11, 2014 Share Posted January 11, 2014 you mean like object picking? http://antongerdelan.net/opengl/raycasting.html I would have though it built in but I cant find anything when searching for it on the site Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
SarperSoher Posted January 11, 2014 Author Share Posted January 11, 2014 Yeah like picking but not projecting into 3D space from screen space, just getting the pixel position of a 3D object. It turned out much simpler than I thought. Camera class has a function called Project which just does it. Quote Link to comment Share on other sites More sharing options...
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.