Introduction To 3D Programming in Delphi
Introduction To 3D Programming in Delphi
3D programming in Delphi
Yuriy Kotsarenko
R&D Consulting
[email protected]
http://afterwarp.io
● 3D vectors: X, Y and Z
● 3D matrices (4x4 array)
○ Translation
○ Rotation
○ Scaling
○ A combination of above…
● 3D vector multiplied by matrix
○ Applying transformation
● 3D matrix multiplied by another matrix
○ Combining multiple transformations
○ Order is important!
The basics of 3D programming
● World matrix
○ Place object in 3D world.
■ Scale, move, rotate, etc.
● View matrix
○ How do we see the world?
■ Eye position, direction and orientation.
● Projection matrix
○ How the world is displayed.
■ Field of view, aspect ratio, dimensions…
The basics of 3D programming
V(2)
Indices
Vertices I(0) = 2
I(1) = 0
I(2) = 1
V(1)
V(0)
3D: What library to use?
Application Window