POV-Ray : Newsgroups : povray.binaries.utilities : img2mesh PNG height field to POV mesh converter finished (hopefully) Server Time
2 May 2024 10:50:38 EDT (-0400)
  img2mesh PNG height field to POV mesh converter finished (hopefully) (Message 1 to 1 of 1)  
From: Ilya Razmanov
Subject: img2mesh PNG height field to POV mesh converter finished (hopefully)
Date: 19 Apr 2024 06:46:10
Message: <66224b72@news.povray.org>
Greeting,

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:

https://github.com/Dnyarri/img2mesh

In supposedly final 2.8.1.0 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 
readability.

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
https://dnyarri.github.io/


Post a reply to this message


Attachments:
Download 'printscreen2x2.png' (40 KB)

Preview of image 'printscreen2x2.png'
printscreen2x2.png


 

From: ingo
Subject: Re: img2mesh PNG height field to POV mesh converter finished (hopefully)
Date: 19 Apr 2024 08:00:00
Message: <web.66225bbfd3361b7317bac71e8ffb8ce3@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:

> https://github.com/Dnyarri/img2mesh

Time to explore. Thank you.

ingo


Post a reply to this message

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