Fork me on GitHub
Fonts Sprite Sprite position Register conversion Copperlist translator Diwstart/stop Point Projection Trigonometric tables Raw 2 planar viewer RGB Colors Square root tables

Amiga projection tester

Test 3d points projection on the screen with the folliwing formula

Point generator
      
var Xs = 160 + (Xe * Zu * -1) / (Ze - Zu);
var Ys = 128 + (Ye * Zu * -1) / (Ze - Zu);

Xe Ye Ze = coords of the point in a 3d space
Zu = distance of the viewer

Xs and Ys = projected points on the display monitor
      
    

Xs: 0

Ys: 0

3d Point tester