REM *********************************************** REM Title: 3D-2D Projection REM Author: Phaelax REM Downloaded from: http://dbcc.zimnox.com/ REM *********************************************** #CONSTANT projectionMatrix = 3 #CONSTANT viewMatrix = 4 #CONSTANT worldMatrix = 5 null = make matrix4(projectionMatrix) : projection matrix4 3 null = make matrix4(viewMatrix) : view matrix4 viewMatrix null = make matrix4(worldMatrix) : world matrix4 worldMatrix null = make vector3(1) function project3dTo2d(result as integer,x as float, y as float, z as float) set vector3 result,x,y,z view matrix4 viewMatrix project vector3 result,result,projectionMatrix,viewMatrix,worldMatrix endfunction