getting the 2d cords of a 3d object

Blitz3D Forums/Blitz3D Programming/getting the 2d cords of a 3d object

Swifty(Posted 2007) [#1]
Is there a way for a program to track the 2d cords of a 3d object, so my 2D hud overlay can highlight specific objects in the 3d plane.


(tu) sinu(Posted 2007) [#2]
cameraproject cam,x#,y#,z#

x,y,z = entity coordinates


Matty(Posted 2007) [#3]
followed by the use of the functions:

projectedx() x position on screen
projectedy() y position on screen
and projectedz() - is greater than zero if point is in front of camera