Simple 3D Projector 1.2
HXCTCreations - Custom level - Jul 6, 2016 from AndroidDisplays wireframe of 2D perspective projection of 3D objects generated within the script.
Z: Rotate object in xz and yz plane
X: Rotate object in xy plane
F: Previous object
G: Next object
-----Changelogs-----
-----v1.0.0
-Added edge thickness
-----v1.1.0
-Rewrote the entire script, mainly on object data, it's more flexible now :)
-Because of new script, this no longer renders same edges multiple times :)
-New display
-----v1.1.1
-New object
-Minor changes
-Updated Description
-----v1.2
-New advanced draw function(with culling and fog effects!)
-----
It has a lot of potential and can render any object! (As long as the object is low poly, too much face can cause lag) Post your suggestion for new objects!
THE IDEA:
Object structure:
Each object is a table and has two subtables, the first contains vertices datas and the second contains edge datas.
Each edge is a table containing two vertices ids.
Each vertex is a table containing x, y, and z coordinates.
Projection:
Each vertex in the object is projected from a point, in the script defined by cam, which is a table containing x, y, and z coordinates and faces down the z axis.
using the projection function, it returns x and y coordinates of the vertex when displayed in 2D plane. With each vertex has its own (x,y) projected coordinates, the rendering function draws lines for every edge.
Downloads: 905 - Level ID: 22656