POV-Ray : Newsgroups : povray.general : img2mesh version 3 Server Time
22 Feb 2025 12:00:04 EST (-0500)
  img2mesh version 3 (Message 1 to 5 of 5)  
From: Ilya Razmanov
Subject: img2mesh version 3
Date: 19 Feb 2025 14:26:17
Message: <67b63059$1@news.povray.org>
Good news everyone:

I substantially changed my Python heightfiled to triangle mesh 
converter, img2mesh. Logically, new mesh structure had to be first to 
come to my mind, so, not surprisingly, it took more than a year. 
Surprising is rendering quality improvement - I expected it to be small 
and, actually, tried new scheme just out of curiosity. However, it 
appeared to be quite noticeable.

As an example, I attach a small rendering with source image. Source is 
small text passed through some Gaussian Blur, and I deliberately made it 
small, with font having thin diagonals, to get as many ugly artifacts as 
possible. However, they appeared to look much less ugly than I expected. 
Surely, I see facets at that one-pixel lines, but expected them to turn 
into total mess.

Surely, with bigger original it looks pretty smooth.

So, after getting such a results with POV-Ray, I had no choice but spend 
some time to change OBJ, STL and DXF exports as well, and now released a 
new version, v. 3, of img2mesh.

Some previews and explanation:

https://dnyarri.github.io/img2mesh.html

Git repository:

https://github.com/Dnyarri/img2mesh

and release, beside sources, contain Win64 exe for lazy Windows users:

https://github.com/Dnyarri/img2mesh/releases/tag/3.14.19.10

So it goes.

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message


Attachments:
Download 'source160x80.png' (9 KB) Download 'result160x80.png' (79 KB)

Preview of image 'source160x80.png'
source160x80.png

Preview of image 'result160x80.png'
result160x80.png


 

From: GioSeregni
Subject: Re: img2mesh version 3
Date: 21 Feb 2025 07:15:00
Message: <web.67b86e38f287d87187aec88159126100@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:
> Good news everyone:
>
> I substantially changed my Python heightfiled to triangle mesh
> converter, img2mesh. Logically, new mesh structure had to be first to
> come to my mind, so, not surprisingly, it took more than a year.
> Surprising is rendering quality improvement - I expected it to be small
> and, actually, tried new scheme just out of curiosity. However, it
> appeared to be quite noticeable.
>
> As an example, I attach a small rendering with source image. Source is
> small text passed through some Gaussian Blur, and I deliberately made it
> small, with font having thin diagonals, to get as many ugly artifacts as
> possible. However, they appeared to look much less ugly than I expected.
> Surely, I see facets at that one-pixel lines, but expected them to turn
> into total mess.
>
> Surely, with bigger original it looks pretty smooth.
>
> So, after getting such a results with POV-Ray, I had no choice but spend
> some time to change OBJ, STL and DXF exports as well, and now released a
> new version, v. 3, of img2mesh.
>
> Some previews and explanation:
>
> https://dnyarri.github.io/img2mesh.html
>
> Git repository:
>
> https://github.com/Dnyarri/img2mesh
>
> and release, beside sources, contain Win64 exe for lazy Windows users:
>
> https://github.com/Dnyarri/img2mesh/releases/tag/3.14.19.10
>
> So it goes.
>
> --
> Ilyich the Toad
> https://dnyarri.github.io/
Nice!
I checked your img using my own tools :)
I am going on your saI didn't apply the smooth triangles because otherwise I
would post tomorrow!me way ....
BR
giovanni


Post a reply to this message


Attachments:
Download 'noname.png' (99 KB)

Preview of image 'noname.png'
noname.png


 

From: GioSeregni
Subject: Re: img2mesh version 3
Date: 21 Feb 2025 07:35:00
Message: <web.67b871dcf287d87187aec88159126100@news.povray.org>
.... and the STL


Post a reply to this message


Attachments:
Download 'clipboard01.png' (76 KB)

Preview of image 'clipboard01.png'
clipboard01.png


 

From: Ilya Razmanov
Subject: Re: img2mesh version 3
Date: 21 Feb 2025 10:03:51
Message: <67b895d7$1@news.povray.org>
On 21.02.2025 15:14, GioSeregni wrote:
> I checked your img using my own tools :)
> I am going on your saI didn't apply the smooth triangles because otherwise I
> would post tomorrow!me way ....

I don't use smooth triangles. Well, I have a couple of variants with 
patches, but still not satisfied with it so have not released it to 
public (and, taking into account my brain speed, will probably never 
catch up to this turtle). Still miss something important regarding where 
all these intermediate points ought to be...

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message

From: GioSeregni
Subject: Re: img2mesh version 3
Date: 21 Feb 2025 12:05:00
Message: <web.67b8b126f287d87187aec88159126100@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:
> On 21.02.2025 15:14, GioSeregni wrote:
> > I checked your img using my own tools :)
> > I am going on your saI didn't apply the smooth triangles because otherwise I
> > would post tomorrow!me way ....
>
> I don't use smooth triangles. Well, I have a couple of variants with
> patches, but still not satisfied with it so have not released it to
> public (and, taking into account my brain speed, will probably never
> catch up to this turtle). Still miss something important regarding where
> all these intermediate points ought to be...
>
> --
> Ilyich the Toad
> https://dnyarri.github.io/

I should implement the transformation in my tool immediately after the scan,
because the scan is ordered with adjacent pixels, and therefore the calculation
of the normals is fast.
If I had done it on my test with my other tool for varous meshes that searches
the entire triangle map it would have taken too long.
What I want to add in the scan code is to eliminate the anti-aliasing pixels
over the background in the bitmap I'm scanning, because it produces unwanted
effects in the generated solids.
Nice and accurate your site!
I also work on DXF - STL - POV - INC conversion ...


Post a reply to this message

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