KinoMotion icon indicating copy to clipboard operation
KinoMotion copied to clipboard

The far clipping plane set to >1000 cause some artifacts

Open nxrighthere opened this issue 7 years ago • 7 comments

https://my.mixtape.moe/acwaoz.mp4 Unity 5.4.0f3

nxrighthere avatar Aug 01 '16 22:08 nxrighthere

Hmm, it seems the shader used for the capsule doesn't make correct motion vectors. Could you provide this project for testing?

keijiro avatar Aug 02 '16 11:08 keijiro

Nope, this is Standard (Specular) Unity shader. I noticed that this happens if the far clipping plane set to 5000. Test project [Link removed]

nxrighthere avatar Aug 02 '16 18:08 nxrighthere

Thanks for providing the project!

The issue can be solved by increasing the depth filter coefficient. Here:

https://github.com/keijiro/KinoMotion/blob/master/Assets/Kino/Motion/Shader/Reconstruction.cginc#L28

This possibly causes side effects but seems working in this case. Could you give it a try?

keijiro avatar Aug 03 '16 01:08 keijiro

It has no effect... I tried to set it to 50, 75 and 100.

nxrighthere avatar Aug 03 '16 12:08 nxrighthere

Please try 150 and 200 :)

I tried 150 and it seemed to work.

keijiro avatar Aug 04 '16 01:08 keijiro

Well, I tried but no luck on my side. https://s31.postimg.org/8e76q0n2j/Motion_Blur_Bug.png

nxrighthere avatar Aug 04 '16 09:08 nxrighthere

Thanks for clarifying!

So, this problem might be harder than what I thought. I'll look into it more precisely. Unfortunately, I have no good workaround for it at the moment. Please consider decreasing the far value as much as possible.

keijiro avatar Aug 05 '16 03:08 keijiro