POV-Ray : Newsgroups : povray.general : How to assemble images after distributed rendering? : Re: How to assemble images after distributed rendering? Server Time
29 Jul 2024 12:26:40 EDT (-0400)
  Re: How to assemble images after distributed rendering?  
From: Le Forgeron
Date: 7 Jun 2011 05:35:54
Message: <4dedf0fa$1@news.povray.org>
Le 07/06/2011 11:11, Marvin a écrit :
> Le_Forgeron <jgr### [at] freefr> wrote:
>> Le 04/06/2011 23:01, Marvin nous fit lire :
>>> Dear fellaz,
>>>
>>> After distributed rendering with cluster, I need to reassemble image from
>>> columns into complete image. All columns are dimensioned 400x300 (in example),
>>> but one contains columns 0 to 99 active, second 100 to 199 ... and final 300 to
>>> 399.
>>>
>>> $ povray +FN +W400 +H300 +SC00 +EC99 +Omodel-000000.png radiosity3a.pov
>>> $ povray +FN +W400 +H300 +SC100 +EC199 +Omodel-000001.png radiosity3a.pov
>>> $ povray +FN +W400 +H300 +SC200 +EC299 +Omodel-000002.png radiosity3a.pov
>>> $ povray +FN +W400 +H300 +SC300 +EC399 +Omodel-000003.png radiosity3a.pov
>>>
>>> I would like to reassemble images model-000000.png to model-0.000003.png (but
>>> not limited to 4 columns) into a resulting image of entire rendered scene.
>>>
>>> Many thanks in return. I did lots of research with ImageMagick commands, but at
>>> no avail - it remained stubborn in doing everything but what I wanted.
>>>
>>
>> A hint:
>>
>> convert model-000000.png -transparent black neo-000000.png
>> convert model-000001.png -transparent black neo-000001.png
>> convert model-000002.png -transparent black neo-000002.png
>> convert model-000003.png -transparent black neo-000003.png
>>
>>  convert neo-000000.png neo-000001.png neo-000002.png neo-000003.png
>> -background black -flatten neo.png
> 
> neo-00000[0123].png work as expected, but flatten creates havoc. :-(
> 
> http://magrf.grf.hr/~mtodorov/model/neo-000000.png
> http://magrf.grf.hr/~mtodorov/model/neo-000001.png
> http://magrf.grf.hr/~mtodorov/model/neo-000002.png
> http://magrf.grf.hr/~mtodorov/model/neo-000003.png
> http://magrf.grf.hr/~mtodorov/model/neo.png
> 
> Any idea?

you need to add -page +0+0 after each source image

convert neo-000000.png -page +0+0 neo-000001.png -page +0+0
neo-000002.png -page +0+0 neo-000003.png -page +0+0 -background black
-flatten real.png

You seems to have rendered with 3.6 or previous.
My initial reply was assuming (and I tested it) a 3.7RC3.

$ Identify neo-*.png
neo-000000.png PNG 400x300 400x300+0+0 8-bit DirectClass 18.3KiB 0.000u
0:00.009
neo-000001.png[1] PNG 400x300 400x300+99+0 8-bit DirectClass 30.2KiB
0.000u 0:00.000
neo-000002.png[2] PNG 400x300 400x300+199+0 8-bit DirectClass 30.2KiB
0.000u 0:00.009
neo-000003.png[3] PNG 400x300 400x300+299+0 8-bit DirectClass 24.6KiB
0.000u 0:00.000


There is a bright line of white pixel on each left side of partial image.

-- 
Software is like dirt - it costs time and money to change it and move it
around.<br/><br/>


Just because you can't see it, it doesn't weigh anything,
and you can't drill a hole in it and stick a rivet into it doesn't mean
it's free.


Post a reply to this message

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