Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Automatically compiling an algorithm is easier than it seems. This task comes down to writing a 3D rendering algorithm.
First, the viewport parameters are set. That is, sheet size, drawing resolution (motor step in X and Y). This is how the scale = length to height ratio is defined (4:3, 5:4, 16:9, etc.). This is necessary so that the user can move the camera on the monitor screen, rotate the model - in order to ask the program what exactly he wants to see as a result.
Then the camera parameters are set - position in space, focal length, rendering depth, sharpness, fog color, visual filters, brightness, contrast, saturation, etc.
After that, the transformation matrix of the model is set - how it should be rotated and shifted.
After that, you can start rendering - directly drawing.
Once the 2D projection is obtained, it can be drawn using a printer, in this case an Arduino, and a manipulator with a felt-tip pen.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question