b3dCameraProject

Projects 3D world position to 2D screen coordinates (stores in camera for retrieval). Takes camera (camera entity handle), worldX/worldY/worldZ (3D world position). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

camera Int
worldX Double
worldY Double
worldZ Double

Returns

Void

Quick Summary

Projects 3D world position to 2D screen coordinates (stores in camera for retrieval). Takes camera (camera entity handle), worldX/worldY/worldZ (3D world position). Returns nothing.

Technical Exegesis...

Projects 3D world position to 2D screen coordinates (stores in camera for retrieval). Takes camera (camera entity handle), worldX/worldY/worldZ (3D world position). Returns nothing. Validates camera entity, allocates Camera3D if null, transforms world position through view/projection matrices to screen coordinates, stores results in camera->projectedX/Y/Z. Retrieve results with b3dProjectedX/Y/Z.

This function transforms 3D to 2D.

Example

Example.bam
; No example implemented yet