POV-Ray : Newsgroups : povray.general : POV Mosaic rewritten Server Time
14 Oct 2024 08:35:28 EDT (-0400)
  POV Mosaic rewritten (Message 1 to 5 of 5)  
From: Ilya Razmanov
Subject: POV Mosaic rewritten
Date: 12 Jun 2024 05:20:31
Message: <6669685f$1@news.povray.org>
Greeting,

I would like to inform that POVRay mosaic collection of Python programs
https://github.com/Dnyarri/POVmosaic
was completely rewritten, hopefully providing more flexibility and 
simplicity for end users.

POVRay mosaic is a set of programs, which read every pixel of source 
image and convert it into a 3D object, colored after source pixel, 
together with neighbour objects, thus creating something like 3D-mosaic. 
Object properties (location, size, rotation) can be made dependent 
(mapped) on source pixel brightness.

Several old programs were converted to just two: 3zaika and 4zaika, 
packing objects into triangle and square grids correspondingly. Main 
idea of rewriting was compressing all variables, introduced into initial 
versions, into compact set of #define objects, vectors and stuff. For 
example, default output of 3zaika is a union of tightly packed spheres, 
but you can turn it into perfectly packed hexagonal prisms by changing 
"#declare thingie = thingie_1" to "#declare thingie = thingie_4" in the 
"Selecting variants" section of exported POV files. Similarly you can 
switch predefined finishes and transfer functions. Surely, you can write 
your own - easiest way is patching scene with preset.inc files (some 
examples are provided). Some rendering examples are provided at 
https://dnyarri.github.io/
in corresponding sections. Help file, describing options in presumably 
human-compatible form, is included.

Hopefully you'll find it funny enough to start boring your friends with 
mosaic pictures.

Suggestions on extending are quite welcome.

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


Post a reply to this message

From: yesbird
Subject: Re: POV Mosaic rewritten
Date: 12 Jun 2024 09:03:43
Message: <66699caf$1@news.povray.org>
On 12/06/2024 12:20, Ilya Razmanov wrote:
> I would like to inform that POVRay mosaic collection of Python programs

Excellent !
I like the cylinders as basic form and different angles layout.
Looks like it's possible to implement fur this way.
--
YB


Post a reply to this message

From: Ilya Razmanov
Subject: 3/6 POVRay mosaic (was Re: POV Mosaic rewritten)
Date: 22 Jul 2024 07:33:29
Message: <669e4389@news.povray.org>
Today I want to offer my full support and endorsement for... sorry, 
couldn't resist.

Last missing part was added to POVRay mosaic: the one for triangular 3/6 
pattern:

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

IMHO it's the least promising part of the collection, but may be it's 
just because I personally can't imagine such a variability of patterns 
as it is possible with the others.

Speaking of the others, other programs in this pack got some 
improvements, and some more presets are added, including supposedly 
funny ones (example of new 44zaika preset "44_puzzle.inc" rendering 
attached).

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


Post a reply to this message


Attachments:
Download '409.png' (180 KB)

Preview of image '409.png'
409.png


 

From: Bald Eagle
Subject: Re: 3/6 POVRay mosaic (was Re: POV Mosaic rewritten)
Date: 23 Jul 2024 06:40:00
Message: <web.669f885d994b74491f9dae3025979125@news.povray.org>
Ilya Razmanov <ily### [at] gmailcom> wrote:

I like this one a lot.
It would look even cooler with a bit of a border to the pieces.

Keep up the good work!


- BE


Post a reply to this message

From: Ilya Razmanov
Subject: Re: 3/6 POVRay mosaic (was Re: POV Mosaic rewritten)
Date: 23 Jul 2024 10:14:48
Message: <669fbad8@news.povray.org>
On 23.07.2024 13:39, Bald Eagle wrote:
> Ilya Razmanov <ily### [at] gmailcom> wrote:
> 
> I like this one a lot.
> It would look even cooler with a bit of a border to the pieces.

If "this one" you are referring to is "puzzle", "thingie" element 
already ends with "scale 0.99" to get some narrow gaps between thingies. 
Just check the corresponding preset and you'll see that it's merely a 
cube with 4 cylinders, 2 "plus" and 2 "minus" (holes). Cylinders are 
even somewhat linked to easily reposition pin and hole in pair. It was a 
small illustration of that thingies may go out of the grid box, in case 
we push holes opposite to where we pull pins.

I believe if you duplicate it, rescale sligtly wider yet shorter, add 
separate color and make a union, color of child outline object will 
override overall color of thingie. Well, at least that's what happened 
with dice in "44_dice.inc" preset at the bottom of

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

- spherical marks in it have they own color.

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


Post a reply to this message

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