POV-Ray : Newsgroups : povray.general : img2mesh PNG height field to POV mesh converter finished (hopefully) : img2mesh PNG height field to POV mesh converter finished (hopefully) Server Time
19 Jun 2024 16:57:34 EDT (-0400)
  img2mesh PNG height field to POV mesh converter finished (hopefully)  
From: Ilya Razmanov
Date: 19 Apr 2024 06:46:10
Message: <66224b72@news.povray.org>

bothering you to inform about (hopefully) final version of img2pov 
converter of PNG heightfields into POVRay 3D-mesh. The program uses 
image tracing algorithm quite different from normal, creating four 
triangle pyramids per pixel, rather than two triangle fold per four 
pixels as most programs do. Program is written in Python and is 
available from:


In supposedly final version POVRay output is completely 
rewritten to remove all POVRay transforms, hopefully making things to be 
parsed faster. Textures and stuff reorganized and reformatted to improve 

Also Wavefront OBJ and streolithography STL outputs added. Attached is a 
screencap of Windows Explorer window, showing icon preview of output 
generated from 2x2 pixels checkerboard PNG image (no idea who decided to 
introduce such a previews for potentially huge files but in this case it 
allows me to easily show them side by side without complex presentation).

Internally, img2pov, img2obj and img2stl programs converted into 
self-calling functions, thus allowing both running them as standalone 
and importing into some other program. For Windows users it gives a 
benefit of having single img2mesh GUI with import of all three of the 
above programs into single compressed EXE file, thus reducing the size 
of this all-in-one converter (exe file is available for download from 
"Release" section.

Hopefully this appear of some use :-)

Ilyich the Toad

Post a reply to this message

Download 'printscreen2x2.png' (40 KB)

Preview of image 'printscreen2x2.png'


Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.