|
|
|
|
|
|
| |
| |
|
|
From: Ilya Razmanov
Subject: Converting image pixels into POV-Ray spheres
Date: 25 Nov 2023 21:48:05
Message: <6562b1e5@news.povray.org>
|
|
|
| |
| |
|
|
Greetings,
I rewrote one of my old plugins turning it into Python program. The
program read images (like PNG) and convert them into POV-Ray scene
consisting of packed spheres, each sphere having a base color of
corresponding pixel. Since Python nowadays seem to be preinstalled on
almost any computer, I assume it makes my old program cross-platform.
Hopefully someone will find it suitable for something. Just one warning:
it turns one source pixel into a POV sphere supposed to be rendered
relatively big, so start testing it with small source images.
Have fun,
Ilya
Post a reply to this message
Attachments:
Download 'pov sphere 001.py.bz2.zip' (2 KB)
Download 'example.png' (553 KB)
Preview of image 'example.png'
|
|
| |
| |
|
|
From: Ilya Razmanov
Subject: Converting image pixels into POV-Ray spheres
Date: 25 Nov 2023 22:14:59
Message: <6562b833@news.povray.org>
|
|
|
| |
| |
|
|
Greetings,
I rewrote one of my old plugins turning it into Python program. The
program read images (like PNG) and convert them into POV-Ray scene
consisting of packed spheres, each sphere having a base color of
corresponding pixel. Since Python nowadays seem to be preinstalled on
almost any computer, I assume it makes my old program cross-platform.
Hopefully someone will find it suitable for something. Just one warning:
it turns one source pixel into a POV sphere supposed to be rendered
relatively big, so start testing it with small source images.
Have fun,
Ilya
Post a reply to this message
Attachments:
Download 'pov sphere 001.py.bz2.zip' (2 KB)
Download 'example.png' (553 KB)
Preview of image 'example.png'
|
|
| |
| |
|
|
From: Ilya Razmanov
Subject: Upd: not only spheres (was: Converting image pixels into POV-Ray spheres)
Date: 12 Jan 2024 09:02:58
Message: <65a14692@news.povray.org>
|
|
|
| |
| |
|
|
Hi,
I finally added some system to that Python stuff for image to POVRay
conversion, so now it, by default, turns image pixels into either
spheres or boxes, rotates and scales them somehow, covers both C3 and C4
symmetry (well, actally with options for C2), and mostly resides here:
https://github.com/Dnyarri/POVmosaic
and here:
https://gitflic.ru/project/dnyarri/povmosaic
Attached is a casual rendering with default settings just to capture
your attention.
Post a reply to this message
Attachments:
Download 'boxeye.png' (312 KB)
Preview of image 'boxeye.png'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Sorry, wrong picture. Now attached it result of "b4zaikaR" with default
setting. Source image is also attached. I hope it sort of shows the idea
I had in mind when starting it.
On 12.01.2024 17:02, Ilya Razmanov wrote:
> Hi,
>
> I finally added some system to that Python stuff for image to POVRay
> conversion, so now it, by default, turns image pixels into either
> spheres or boxes, rotates and scales them somehow, covers both C3 and C4
> symmetry (well, actally with options for C2), and mostly resides here:
>
> https://github.com/Dnyarri/POVmosaic
>
> and here:
>
> https://gitflic.ru/project/dnyarri/povmosaic
>
> Attached is a casual rendering with default settings just to capture
> your attention.
Post a reply to this message
Attachments:
Download 'b.png' (495 KB)
Download 'mdn.png' (6 KB)
Preview of image 'b.png'
Preview of image 'mdn.png'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Op 13/01/2024 om 09:44 schreef Ilya Razmanov:
> Sorry, wrong picture. Now attached it result of "b4zaikaR" with default
> setting. Source image is also attached. I hope it sort of shows the idea
> I had in mind when starting it.
>
I think it is neat and I like it. Maybe this is also thought of here,
but what if the cube rotations were increasingly random with
increasingly darker colours? Might not be a good idea, but....
--
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 14.01.2024 10:11, Thomas de Groot wrote:
> I think it is neat and I like it. Maybe this is also thought of here,
> but what if the cube rotations were increasingly random with
> increasingly darker colours?
Well, programs are small and key part is mostly concentrated in on
string, so, if you have Python (I had it because daughter installed it
for some other purposes, so, to get the Python, you should get a
daughter as an installation manager), you can rotate, resize, whatever
these cubes as you wish. Besides, they are not just cubes - they are
declared as "thingie" in the beginning of POV file, so you can change
them from "box" to something else. The only reason I don't do every
possible thing inside program is that it would actually require some
fast preview to make sence of such a flexible editing, and I don't see
the way to have a preview so far. Rumors are there's a OpenGL for
Python, but I have no experience with it, maybe it's not good enough for
my purpose.
But well, so far you can edit all this with text editor and hopefully do
something that may be considered "art".
Ilya
Post a reply to this message
|
|
| |
| |
|
|
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'
|
|
| |
| |
|
|
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: Ilya Razmanov
Subject: Superellipsoids (was: Converting image pixels into POV-Ray spheres)
Date: 2 Feb 2024 09:28:42
Message: <65bcfc1a@news.povray.org>
|
|
|
| |
| |
|
|
Greeting,
weeked season of grand openings at
https://github.com/Dnyarri/POVmosaic
meaning first of subfolders is opened to public, namely superellipsoid one.
Currently contain just one program to convert image into a mosaic of
superellipsoids with random parameters. Effect is rather pop than
artistic, but probably useful to make people laugh. Any suggestions on
mapping superellipsoids to something else rather than random are welcome.
Ilyich the Toad
https://github.com/Dnyarri
Post a reply to this message
Attachments:
Download 'super1.png' (167 KB)
Preview of image 'super1.png'
|
|
| |
| |
|
|
|
|
| |
|
|