chao.zhang Posted July 16, 2012 Share Posted July 16, 2012 Hi all; need your help! If I have a point(x, y, z) in the world coordinates in unigine scene, how can i compute its (xi, yi) coordinates in the rendered image that shown on the screen and vice visa? Are there any ready function in unigine API to do this? thank you in advance! Link to comment
frustum Posted July 16, 2012 Share Posted July 16, 2012 data/core/scripts/utils.h: int Unigine::getScreenPosition(Vec3 point,int &x,int &y); Link to comment
chao.zhang Posted July 16, 2012 Author Share Posted July 16, 2012 I 've got it! Great thanks! Link to comment
Recommended Posts