Motion blur with replactors

Forums: Motion blur with replactors
Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Motion blur with replactors

Postby Deepwell » Fri Dec 22, 2023 10:14 am

Deepwell Fri Dec 22, 2023 10:14 am
Hi again!

I tried to follow the instructions under
viewtopic.php?f=34&t=73940
to achieve motion blur with replicators.

I have this situation where the point count is different each frame (so the number of transforms differs from frame to frame, I'm using a Surface Emitter) - therefore I cannot use the "Object Motion Blur" checkbox in the "Octane Replicator" settings on the replicator.

The alternative mentioned in the instructions is to instead use the "Kernel->Animation->Refresh Replicators When Scrubbing The Timeline" - which I did.

But the replicated geometry still does not produce motion blur.

So my settings are:

Octane Kernel:
- Camera Motion Blur enabled
- Object Motion Blur enabled
- Refresh Replicators When Scrubbing The Timeline enabled

On the Replicator item:
- Octane Replicator, Object Motion Blur = disabled

I also tried the trick with using the "Use Modo Render Cache" and adding a Motion Vector Output to the Modo Shader Tree - no success...

Am I reading the instructions wrong? What am I missing?

I've attached a demo scene.
Modo: 16.1v8
Octane: 2023.1.1 (13000100)
OS: Windows 10.0.19045 Build 19045

Any help would be greatly appreciated!

Regards
Johannes
Attachments
OctaneReplicatorMotionBlur.zip
Octane Replicator Motion Blur Test Scene
(30.9 KiB) Downloaded 30 times
Deepwell
Licensed Customer
Licensed Customer
 
Posts: 20
Joined: Fri Jan 15, 2021 4:07 pm

Re: Motion blur with replactors

Postby funk » Fri Dec 22, 2023 7:12 pm

funk Fri Dec 22, 2023 7:12 pm
As far as I know, motion blur won't work if the particle count is different in each frame.
IMPORTANT: motion blur on Replicators only works if there are the same number of Point Source transforms each frame


The alternative instructions only seem to allow you to see the replicas (without motion blur), since they'd normally vanish completely.
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Motion blur with replactors

Postby Deepwell » Sat Dec 23, 2023 3:27 pm

Deepwell Sat Dec 23, 2023 3:27 pm
Hey funk,
thx for looking into this!

That is unfortunate... :|

I think I understand why Octane would have a hard time calculating the velocity if not all of the particles are actually present in the previous/next frame (i.e. having varying number of transforms), but I really was hoping that the "Motion Vectors from Modo Render Cache" trick would help here also...
Deepwell
Licensed Customer
Licensed Customer
 
Posts: 20
Joined: Fri Jan 15, 2021 4:07 pm

Re: Motion blur with replactors

Postby Deepwell » Mon Dec 25, 2023 4:39 pm

Deepwell Mon Dec 25, 2023 4:39 pm
In the standalone app (Octane Render Studio) the motion blur works fine - unfortunately that is not an option for me: I tried exporting one scene of the project (of ~20 scenes total) and canceled it after ~7% with a ~2GB Alembic file...

It seems that to export to the standalone app the Alembic file contains ALL geometry of the scene for EACH frame. My scenes (character animation with landscape) contain vegetation etc. - so, a LOT of geometry, which is not a problem in itself as most of it is static. Rendering directly in Modo works nicely with Octane (besides the motion blur), but if I have to generate a ~30GB file for each scene, which, extrapolating from the 7%, would take a little less than an hour - per scene - just to export no rendering done! - then this stops making sense.

I know that I am outside the usual use cases of Octane (and Modo, for that matter) with doing character animation. But I thought motion graphics is a quite common use case for both - and having particle simulations with replicators does not seem to be an esoteric thing in mograph...

J.
Deepwell
Licensed Customer
Licensed Customer
 
Posts: 20
Joined: Fri Jan 15, 2021 4:07 pm

Re: Motion blur with replactors

Postby face_off » Fri Dec 29, 2023 2:18 am

face_off Fri Dec 29, 2023 2:18 am
Hi Johannes

I don't believe that motion vectors from replicator particles is currently supported by the Modo SDK (either in the Render Cache or normal SDK). You can see the particle position and orientation is available at https://learn.foundry.com/modo/developers/latest/SDK/cpp/_rst/lxd_particle.html, but not the velocity.

Thanks

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15483
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Motion blur with replactors

Postby Deepwell » Sun Dec 31, 2023 6:37 pm

Deepwell Sun Dec 31, 2023 6:37 pm
Hey Paul,

you mean that's the reason why Octane cannot acquire the motion vector via the Modo render cache?

Also I'm curious why Octane has a problem in the first place when the number of particles changes. Don't they have a unique ID to identify them from frame to frame?

But that's just me wondering...we won't be able to change that anyway :)

Is there maybe some baking workflow that could constitute a workaround?

J.
Deepwell
Licensed Customer
Licensed Customer
 
Posts: 20
Joined: Fri Jan 15, 2021 4:07 pm

Re: Motion blur with replactors

Postby face_off » Wed Jan 03, 2024 9:59 pm

face_off Wed Jan 03, 2024 9:59 pm
Deepwell wrote:Hey Paul,

you mean that's the reason why Octane cannot acquire the motion vector via the Modo render cache?

Also I'm curious why Octane has a problem in the first place when the number of particles changes. Don't they have a unique ID to identify them from frame to frame?

But that's just me wondering...we won't be able to change that anyway :)

Is there maybe some baking workflow that could constitute a workaround?

J.
Even with the particle Id, I am not sure how that helps. What do you do with the particles that no longer exist, or have not yet been created? They would need to be placed somewhere out of the camera view (or have a 0 scale), so there would be motion blur created getting them into that position. So Octane needs motion vectors for scatter transforms in order to render motion blur if the particle source does not have a fixed number of transforms each frame. The Modo Render Cache does not actually provide Particle source transforms - the plugin goes back to the standard Modo SDK for these - which brings us back to the original issue of the Modo SDK not providing particle velocities.

In theory, the plugin could do the velocity calculation itself when loading all particle transforms into Octane. Although it is only a partial solution, as it would not resolve the issue of vertex motion blur not working. It's something I will look at when I get a chance.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15483
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Return to Foundry Modo


Who is online

Users browsing this forum: Bing [Bot] and 58 guests

Sat Apr 27, 2024 10:00 am [ UTC ]