Python utilities for conversion of bitmap image (in PNG format) to some sort of solid objects mosaic in POV-Ray format. Each source image pixel is converted to a 3D object, and objects are packed side by side, forming a grid following Euclidean tilings.
Current version of POV-Ray Mosaic consist of several parts:
-
POVRayMosaic - Main program GUI, joining all components together;
-
povzaika module, including:
- zaika63 - converts every single pixel into 3D object, by default a solid sphere. Spheres are packed into triangle/hexagone grid. Spheres may be easily replaced by other predefined objects, object positions and properties may be mapped to source image brightness and/or randomized, etc.
- zaika44 - converts every single pixel into 3D object, by default a solid cube. Cubes are packed into square grid. Spheres may be easily replaced by other predefined objects, object positions and properties may be mapped to source image brightness and/or randomized, etc.
- zaika36 - converts every single pixel into 3D object, by default a triangular prism. Prisms are packed into triangle grid.
-
pypng and pypnm modules contain components providing PNG and PPM image files reading.
- PyPNG. Copy included into current ScaleNx distribution.
- PyPNM. Copy included into current ScaleNx distribution.
- Tkinter. Included into standard CPython distribution.
Program is equipped with simple GUI for file browsing and selection. Exported scene contains enough basic stuff (globals, light, camera) to be rendered out of the box, and is well structured and commented for further editing. For detail on scene structure and editing refer to help.html included in distribution.
-
POV-Ray Mosaic rendered examples and description.
-
github POV-Ray Mosaic repository.
-
gitflic POV-Ray Mosaic repository mirror.
-
Dnyarri website - other Python programs by Ilyich the Toad.