Motion blur support

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Motion blur support

Post by B.Y.O.B. »

Sorry that I didn't check, Dade.
It still looks wrong on my end.
This is with shutter = 0.5, both green sphere and camera moving at same speed, background stationary:
camera and object motion blur - luxcore
camera and object motion blur - luxcore
But it's also weird that when only object motion blur is enabled (no camera motion blur), the result is different from Cycles.
Maybe I'm doing something wrong in the addon.
Attachments
only object motion blur - luxcore
only object motion blur - luxcore
only object motion blur - cycles
only object motion blur - cycles
moblur.zip
(19.08 KiB) Downloaded 270 times
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

Spawned a dedicated thread.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Motion blur support

Post by B.Y.O.B. »

Here's the BlendLuxCore issue: https://github.com/LuxCoreRender/BlendLuxCore/issues/16
There are also other weird things going on, like that the object seems to travel further than it's start and end points with long shutter values.

I think I'll write some unit tests, maybe that will help me sort it out.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

Uhuh, the problem is in Embree when using negative time values. If you use PATHOCL it works fine. This explain some of the confusion and why it was working for me and not for you.

I'm checking if it is a bug in LuxCore Embree-related code or in Embree (or is the expected Embree behavior).
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

Some bug is incredible: https://github.com/LuxCoreRender/LuxCor ... eef0d22d5d

The Embree-related code was always using time between 0.0 and 1.0 because of a Min() swapped with a Max().

Now everything is working fine here.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

I was in the area so I added the support for Embree multi-segment motion blur :D
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Motion blur support

Post by B.Y.O.B. »

I had a good laugh at this log:
scrn_2018-01-19_12-48-31.png
"Let's make an issue, but don't do it right now because it's probably complicated"
"Wait - it's actually really simple"
"Done."
:D
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

B.Y.O.B. wrote: Fri Jan 19, 2018 11:50 am "Let's make an issue, but don't do it right now because it's probably complicated"
"Wait - it's actually really simple"
"Done."
:D
It took about 1 minutes :mrgreen:
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Motion blur support

Post by Dade »

BTW, a couple of days to let the things settle down and I guess we can release alpha2 :idea:
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Motion blur support

Post by B.Y.O.B. »

Yes.
I'll try to fix a bug where particle and hair systems on hidden layers are exported before we release alpha2.
Post Reply