The main assumptions were: clear code, simplicity, the possibility of adaptation in any project, on any displays and any uC.
The whole was written in C, attached as a library to the main code. There are no references to the hardware in the code, so it can be used with virtually everything. Communication with the hardware and the main program is done by two external functions, one is used to draw the line, the second to put up single points.
The library implements basic functions of the graphic engine:
- loading clouds of points (vertex)
- the simplicity of loading the objects adjusted to *.obj files – i.e. that the engine supports such objects directly from 3dsMAX saved in *.obj files
- defining the points of horizon (perspective) and the camera position
- all operations associated with the rotation of objects
- all operations associated with the movement of objects
The library is monochromatic and does not support texturing.
The video below shows using the library on NOKIA 3310 display and processor AT91SAM7S256.
Link to original thread (useful attachment) –
Prosty silnik 3d dla różnych uC i dowolnych LCD