Jump to content

[SOLVED] Transform between world coordinate and screen image coordinate?


photo

Recommended Posts

Posted

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!

Posted

data/core/scripts/utils.h: int Unigine::getScreenPosition(Vec3 point,int &x,int &y);

×
×
  • Create New...