Previous Up Next

M3calcProj
Calculates an object’s projection on a camera and if the object is visible, returns the screen x and y coordinates, the z distance and the apparent radius r.
All values are returned as integers.
Returns nil if the object is not visible or if an error occurs. The visibility calculation takes only the z (front & back) clipping into account. It disregards lateral clipping.
This function applies only to meshes.

[I I I I] M3calcProj (
S3d _session_
H3d _camera_
H3d _object_
)
Parameters

_session_
3D Session
_camera_
Camera
_object_
3D object
Return value

Screen X and Y coordinates, Z distance and apparent radius R