Skip to content

Dnyarri/POVthread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POVRay Thread - Bitmap to 3D canvas and cross stitch simulation converter

Python utilities for conversion of bitmap image (in PNG format) to some sort of solid objects in POVRay format, resembling threads of canvas or cross stitches. Each source image pixel is converted to a 3D object, colored after source pixel.

Example of linen export rendering

Brief programs description

  • linen - creates an object, simulating canvas, colored after source image (taffeta, print on canvas, and the like).
  • stitch - simulates common cross stitching embroidery appearance.
  • averager - an accessory for preprocessing source PNG files. Averages colors in RGB PNG within linear or squarish areas between contrast edges, providing color reduction somewhat similar to used in real cross stitch.

Example of cross-stitch 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.

Dnyarri projects website