『✅EN』 | RU |
---|
Python program for conversion of bitmap heightfield (in PNG format) to 3D triangle mesh in POVRay POV, Wavefront OBJ, Autodesk DXF and stereolithography (3D printer) STL format. Resulting triangle mesh provides better rendering in case of low-res source files as compared to using source bitmaps as a heightfield directly.
Import image format | Export 3D mesh format |
---|---|
16 and 8 bits per channel PNG, PGM and PPM | POV, OBJ, ASCII STL, ASCII DXF |
-
img2mesh - suitable GUI frontend comprising all programs and functions.
-
img2pov - Image to POV-Ray scene converter. Exported scene contains 3D mesh, bounding box (CSG intersection) to make it solid object with interior, camera and light. Textures are declared separately and easy to edit.
-
img2obj - Image to Wavefront OBJ converter. Exported file contains 3D mesh only.
-
img2dxf - Image to Autodesk DXF converter. Exported file contains 3D mesh only.
-
img2stl - Image to STL converter. Exported file contain 3D mesh with side and bottom meshes necessary for 3D printer software.
- PyPNG. Copy included into current img2mesh distribution.
- PyPNM. Copy included into current img2mesh distribution.
- Tkinter. Included into standard CPython distribution.
Programs distribution is rather self-contained and is supposed to run right out of the box. Programs are equipped with minimal GUI, so all you have to do after starting a program is use "Open..." dialog to open image file, then use "Save..." to name exported file to be created, then wait while program does the job, then open resulting file with suitable 3D software and render the scene.
Module list2mesh, including 3D-export functions, may be copied and used by other developers.
-
POV-Ray and POV SDL specifications.
-
Wavefront Object Files (.obj) specs from Paul Bourke collection.
-
Stereo Lithography Files (.stl) brief description ibid.
-
DXF Reference by Autodesk, Inc.
Dnyarri website - the rest of Dnyarri stuff with previews etc.