this is related to geometry (maths and physics) PLEASE READ THE INSTRUCTIONS in order to use this properly - reshared to improve diffuse lighting and add orthographic projection == instructions: == to exit an action, type the same key that allowed you to enter it (for the actions that change the points' colours). the points are just positions that you can create and manipulate, to insert triangles that stay at their positions. instructions are formatted as "[key] - action" [1] - load octahedron [2] - load empty grid for pixel art [3] - load cube [4] - load tetrahedron [i] - import save code [j] - export save code (click j to close again) [c] - click on 2 points to create a point in between them [t] - fill (or unfill if it is already filled) a triangle at the 3 points that you click [r] - remove a point (if the point is part of a triangle, it will remove the triangle too) at the point you click [h] - change the colour of a triangle at the 3 points that you click on (press h again to exit) [right arrow] - rotate the object right [left arrow] - rotate the object left [up arrow] - rotate the object up [down arrow] - rotate the object down [space] - toggle hiding points and variables so you can see the actual model without editor prompts when you are holding down on a point, you can do the following: [w] - move the point up the z axis [s] - move the point down the z axis [d] - move the point up the x axis [a] - move the point down the x axis [e] - move the point up the y axis [q] - move the point down the y axis [p] - position the point at an exact 3D position (i.e. for each prompt enter 100) file exportations available (.obj, .mtl, .off, .ply): [o] - view .obj (click again to view .mtl, and again to close menu) [u] - view .off file [n] - view .ply file lighting is only diffuse and ambient == credits: == @mathmathmath - 3D rotation blocks http://www.c-jump.com/bcc/common/Talk3/OpenGL/Wk06_light/Wk06_light.html for diffuse lighting formulae me ( @_logo ) for the rest == bug report management: == if you see a bug (other than the dodgy sorting) please put it in the comments and i will try to fix it asap if it is an actual bug feel free to share your models in the code, i may add them to the built in section!