3d co-ords to 2d?

Blitz3D Forums/Blitz3D Programming/3d co-ords to 2d?

Boiled Sweets(Posted 2006) [#1]
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?


Stevie G(Posted 2006) [#2]
The simplest way would be ..

cameraproject camera, entityx( mesh ), entityy( mesh ) , entityz( mesh )

text projectedx(), projectedy(), "Hello", 1, 1

Stevie


t3K|Mac(Posted 2006) [#3]
cameraproject(), ProjectedX#(),ProjectedY#() should do the job.


Boiled Sweets(Posted 2006) [#4]
DOH! Of course!

Thanks!!!!!