Page 1 of 2

Animated Alembic setup

Posted: Thu May 20, 2021 3:02 pm
by carlo.giesa
Hi there!

I did already ask this a couple of years ago but cannot find anything in my mails anymore. My question concerns the correct setup to run an alembic ROP for multiple frames on the farm. I tried to set different values on the render range of the ROP and of the Afanasy node, but I always get unexpected results like

* I only get the last frame stored in the alembic
* Houdini runs all frames for each frame on the farm

I'm sorry if that is obvious, but I tried all kind of combinations and settings and don't get it to run correctly.

Any help is welcome.

Thanks,
Carlo

Re: Animated Alembic setup

Posted: Fri May 21, 2021 6:37 am
by timurhai
Hi!
Alembic is like a movie. All frames are paked in to a single file. And this movie should be encoded on a single machine by a single task.
So if you are going to render 1-100 frame range, frames per task should be 100. This way Afanasy ROP will produce 1 task job. You can also use Single Task checkbox for this.

Re: Animated Alembic setup

Posted: Fri May 21, 2021 8:21 am
by carlo.giesa
Hi Timur!

Thanks for your feedback. Yes, indeed, that is exactly what I have done. But the problem is that the execution time gets longer with more frame which does not make any sense. I tried to run a single frame on the Afanasy node with frame range strict on the ROP and the number of tasks set to the number of frames. The result is a single task running the entire frame range, which is good. But when I launch n frames, the execution time per frame is n times the duration of a single frame. So, there is something fishy or I really do not understand how to set this up correctly.

But maybe there is something fishy in my network. When I try to do a simple setup, the result works as expected. I will need to dig into my stuff again to see if there is anything else that I missed. For some reason, my execution time increases exponentially as if for each frame Houdini executes all frames.

I attached a simple scene just to see if that looks correct to you.

Greets,
Carlo

Re: Animated Alembic setup

Posted: Fri May 21, 2021 8:25 am
by carlo.giesa
And what I forgot is that I do not have the same effect when running the ROP locally. Every frame takes more or less the same time.

Re: Animated Alembic setup

Posted: Fri May 21, 2021 12:35 pm
by carlo.giesa
So, I continued my little research and I don't know if that is related to CGRU or Houdini, but when I run the abc writing job on the farm, the time per frame increases with the number of frames to render:

Code: Select all

 20 frames:   5m22 --> 16s per frame
 30 frames:  11m34 --> 23s per frame
 40 frames:  20m52 --> 31s per frame
100 frames: 127m47 --> 77s per frame
But when I run the same scene locally, it scales perfectly linearly.

Re: Animated Alembic setup

Posted: Fri May 21, 2021 1:35 pm
by timurhai
Can you watch the output file?
May be Afanasy task rewrites it on each frame?

Re: Animated Alembic setup

Posted: Tue May 25, 2021 7:39 am
by carlo.giesa
Hi!

I'm not really sure with what you mean by 'watching the file'. How do you want me to distinguish and update and a recreation of the file? Sorry, I'm not an IT specialist.

Greets,
Carlo

Re: Animated Alembic setup

Posted: Tue May 25, 2021 7:44 am
by timurhai
Try to watch file size.

Re: Animated Alembic setup

Posted: Tue May 25, 2021 12:39 pm
by carlo.giesa
Hi Timur!

Yes, it seems to rewrite the entire file on each frame. When I launch the job locally, my file size grows constantly but when running on the farm with CGRU, the file size starts from 0 for each frame. So, is the problem on the CGRU side or in my Houdini graph setup?

Greets,
Carlo

Re: Animated Alembic setup

Posted: Tue May 25, 2021 2:11 pm
by timurhai
Hm. Indeed.
I have no deal with alebmics myself.
I see that other users wrote something alembic special.
Try create alemic export node in the ROP context and connect it with Afanasy ROP directly.