Skip to content

Python utilities for conversion of bitmap image to 3D objects mosaic in POVRay format.

License

Notifications You must be signed in to change notification settings

Dnyarri/POVmosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POVRay mosaic - Bitmap to 3D solid mosaic converter

Python utilities for conversion of bitmap image (in PNG format) to some sort of solid objects mosaic in POVRay format. Each source image pixel is converted to a 3D object, and objects are packed side by side, forming a grid.

Example of 3zaika export rendering

Brief programs description

  • 3zaika - converts every single pixel into 3D object, by default a solid sphere. Spheres are packed into triangle 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.
  • 4zaika - 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.

Example of 4zaika export rendering

Dependencies: Tkinter, PyPNG

Usage: programs are equipped with minimal GUI for file 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.

Project website

Project mirrors:

github Dnyarri

gitflic Dnyarri