POV-Ray : Newsgroups : povray.binaries.utilities : Converting image pixels into POV-Ray *anything* mosaic Server Time
18 Jun 2024 20:04:58 EDT (-0400)
  Converting image pixels into POV-Ray *anything* mosaic (Message 1 to 4 of 4)  
From: Ilya Razmanov
Subject: Converting image pixels into POV-Ray *anything* mosaic
Date: 28 Jan 2024 12:11:32
Message: <65b68ac4@news.povray.org>
Well, it should have been happen someday: to the collection of Python 
programs for conversion of bitmap into POVRay solid objects mosaic two 
more programs (p3zaika.py and p6zaika.py) were added, converting bitmap 
into a pack of triangle prisms or hexagonal prisms, correspondingly 
(sample output of p6zaika attached).

All programs reside at
https://github.com/Dnyarri/POVmosaic
and may be used, modified and tortured for free.

So, currently spheres, cubes, and two sorts of prisms are included as 
mosaic primitives, and all regular plane partitions (3/6, 4/4 and 6/3) 
covered. Considering the fact that POV output of these is as flexible as 
I could imagine, so you may edit objects properties or even replace 
objects globally, there is a vast opportunity to produce mosaic-looking 
posters, greetings cards, ads, and, all in all, molest humans 
graphically. Enjoy.

Meanwhile, while POV primitives seem to be exhaused (more or less), I 
may probably continue with something more complex. Beware.

Ilyich the Toad
https://github.com/Dnyarri


Post a reply to this message


Attachments:
Download '-6.png' (480 KB)

Preview of image '-6.png'
-6.png


 

From: Paolo Gibellini
Subject: Re: Converting image pixels into POV-Ray *anything* mosaic
Date: 28 Jan 2024 13:14:21
Message: <65b6997d$1@news.povray.org>
Il 28/01/2024 18:11, Ilya Razmanov ha scritto:
> Well, it should have been happen someday: to the collection of Python 
> programs for conversion of bitmap into POVRay solid objects mosaic two 
> more programs (p3zaika.py and p6zaika.py) were added, converting bitmap 
> into a pack of triangle prisms or hexagonal prisms, correspondingly 
> (sample output of p6zaika attached).
> 
> All programs reside at
> https://github.com/Dnyarri/POVmosaic
> and may be used, modified and tortured for free.
> 
> So, currently spheres, cubes, and two sorts of prisms are included as 
> mosaic primitives, and all regular plane partitions (3/6, 4/4 and 6/3) 
> covered. Considering the fact that POV output of these is as flexible as 
> I could imagine, so you may edit objects properties or even replace 
> objects globally, there is a vast opportunity to produce mosaic-looking 
> posters, greetings cards, ads, and, all in all, molest humans 
> graphically. Enjoy.
> 
> Meanwhile, while POV primitives seem to be exhaused (more or less), I 
> may probably continue with something more complex. Beware.
> 
> Ilyich the Toad
> https://github.com/Dnyarri

This is a good shot, Ilya!
Now, you can use each kind of shape, like in the old GIMP filter.
Interesting work.

Paolo


Post a reply to this message

From: Ilya Razmanov
Subject: Re: Converting image pixels into POV-Ray *anything* mosaic
Date: 28 Jan 2024 16:45:05
Message: <65b6cae1$1@news.povray.org>
On 28.01.2024 21:14, Paolo Gibellini wrote:
> 
> This is a good shot, Ilya!
> Now, you can use each kind of shape, like in the old GIMP filter.

If you take a look at these programs output, you'll see "thingie" 
declared. That's the basic object, mosaic element. Later it gets color 
and finish added, is scaled, rotated and moved where necessary, but the 
same object is used for all mosaic. Therefore, you may replace it with 
another object once, and it will be replaced throughout the whole scene 
(just take care about it's size. For spheres and boxes it's 1*1*1, for 
others described in the file), using the same symmetry as original. 
About the only thing I don't recommend - using too complex objects. 
Surely, you can edit POV file produced by my program to add .inc with 
very complex object, and it will work (I've tried with spline 
figurines), but very slowly.

Ilyich the Toad


Post a reply to this message

From: Paolo Gibellini
Subject: Re: Converting image pixels into POV-Ray *anything* mosaic
Date: 10 Feb 2024 15:45:39
Message: <65c7e073$1@news.povray.org>
28/01/2024 22:45, Ilya Razmanov wrote:
> If you take a look at these programs output, you'll see "thingie" 
> declared. That's the basic object, mosaic element. Later it gets color 
> and finish added, is scaled, rotated and moved where necessary, but the 
> same object is used for all mosaic. Therefore, you may replace it with 
> another object once, and it will be replaced throughout the whole scene 
> (just take care about it's size. For spheres and boxes it's 1*1*1, for 
> others described in the file), using the same symmetry as original. 
> About the only thing I don't recommend - using too complex objects. 
> Surely, you can edit POV file produced by my program to add .inc with 
> very complex object, and it will work (I've tried with spline 
> figurines), but very slowly.
> 
> Ilyich the Toad

At the moment is difficult for me to spare some time to code, but I will 
surely get a look.
A nice work!

Paolo


Post a reply to this message

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