3d co-ords to 2d?
Blitz3D Forums/Blitz3D Programming/3d co-ords to 2d?
| ||
Hi, I'm sure I sen a simple 3d to 2d co-ords convert function somewhere. So a 3d object in 3d space, how to get the screen x, y co-rds from it? Anyone? |
| ||
The simplest way would be .. cameraproject camera, entityx( mesh ), entityy( mesh ) , entityz( mesh ) text projectedx(), projectedy(), "Hello", 1, 1 Stevie |
| ||
cameraproject(), ProjectedX#(),ProjectedY#() should do the job. |
| ||
DOH! Of course! Thanks!!!!! |