Hi, I've been trying to write a very simple 3D wireframe engine for my calculator (don't laugh - it's a moderately powerful TI-89 Titanium). It sounds ridiculous, I know, but all I want is a simple program which can draw a wireframe cube in 3D, output it to screen and be able to rotate and be affected by perspective. And it has to be done in Ti-Basic.
Thing is, I wouldn't have a clue when it comes to doing depth, perspective, rotation, scale and projection onto a 2D screen from virtual 3D space. I have 8 points, each with XYZ values, placed and connected with lines to form a simple 3D looking wireframe cube.
Now, the hardest thing for me to do here has been to implement perspective and rotation. I don't have the slightest clue on how to apply such things to the points (vertices, whatever) of a 3D object in 3D space.
Is there some kind of algorithm, or formula (in plain English/Maths so I can translate it to TI-Basic fairly easily) that I need to do this?
EDIT: Also, speed is of little concern. If it takes several seconds to render a frame, then so be it. Just as long as it isn't extreme (i.e. taking >1 min to render a frame)
Thing is, I wouldn't have a clue when it comes to doing depth, perspective, rotation, scale and projection onto a 2D screen from virtual 3D space. I have 8 points, each with XYZ values, placed and connected with lines to form a simple 3D looking wireframe cube.
Now, the hardest thing for me to do here has been to implement perspective and rotation. I don't have the slightest clue on how to apply such things to the points (vertices, whatever) of a 3D object in 3D space.
Is there some kind of algorithm, or formula (in plain English/Maths so I can translate it to TI-Basic fairly easily) that I need to do this?
EDIT: Also, speed is of little concern. If it takes several seconds to render a frame, then so be it. Just as long as it isn't extreme (i.e. taking >1 min to render a frame)
Last edited by a moderator: