Holloweye Posted December 4, 2009 Posted December 4, 2009 When I use camera picking is it possible to get the cordinats where I picked on the mesh? I guess its NZ,NX and NY iam right? Thanks Quote
Chris Paulson Posted December 4, 2009 Posted December 4, 2009 pick.X Y Z are the position pick.NX NY NZ are the normals Quote
Pixel Perfect Posted December 4, 2009 Posted December 4, 2009 Yes, the pick data is returned in a TPick structure as shown below: Struct TPick { TEntity entity; TEntity surface; flt X, Y, Z; flt NX, NY, NZ; int triangle; }; The X,Y,Z co-ordinates give the pick point and the NX,NY,NZ co-ordinates the normals [EDIT] Chris was quicker off the mark Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++
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.