Page 1 of 1

Motion blur support

Posted: Tue Jan 16, 2018 2:13 pm
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.

Re: Motion blur support

Posted: Wed Jan 17, 2018 5:50 pm
by Dade
Spawned a dedicated thread.

Re: Motion blur support

Posted: Wed Jan 17, 2018 8:38 pm
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.

Re: Motion blur support

Posted: Fri Jan 19, 2018 10:11 am
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).

Re: Motion blur support

Posted: Fri Jan 19, 2018 10:29 am
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.

Re: Motion blur support

Posted: Fri Jan 19, 2018 11:09 am
by Dade
I was in the area so I added the support for Embree multi-segment motion blur :D

Re: Motion blur support

Posted: Fri Jan 19, 2018 11:50 am
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

Re: Motion blur support

Posted: Fri Jan 19, 2018 12:28 pm
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:

Re: Motion blur support

Posted: Fri Jan 19, 2018 12:29 pm
by Dade
BTW, a couple of days to let the things settle down and I guess we can release alpha2 :idea:

Re: Motion blur support

Posted: Fri Jan 19, 2018 12:38 pm
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.