Size of Entity in View

Blitz3D Forums/Blitz3D Programming/Size of Entity in View

BLaBZ(Posted 2009) [#1]
How do I get/Whats the equation for the size of an entity as it appears on screen?

I need to scale an image depending on whether an object is close or distant from the camera


Bobysait(Posted 2009) [#2]
Maybe, 2 ways ( and many else... ) for doing this

first one : (pseudo-code)


Second one :
The "easy" method (but not efficient)



BLaBZ(Posted 2009) [#3]
Thanks a lot, I'll give that a try