[SOLVED] position of the object 3D (world) in 2D (viewport)


photo

Recommended Posts

Hello.

 

Как мне получить 2D координаты 3D объекта пространстве? Чтоб показать эффекты и статистику над персонажем через GUI, не используя ObjectGUI и ObjectBillboards.

 

===================== translation from google =====================

 

How do I get the 2D coordinates of a 3D-object in the viewport? I need this to show the object's effects and stats using GUI but not via ObjectGUI and ObjectBillboards

 

Thanks.

Link to post
#include <core/scripts/utils.h>
.....
Unigine::getScreenPosition( vec3 xyz_world, int& x_screen, int& y_screen );

Link to post