Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The far clipping plane set to >1000 cause some artifacts #12

Open
nxrighthere opened this issue Aug 1, 2016 · 7 comments
Open

The far clipping plane set to >1000 cause some artifacts #12

nxrighthere opened this issue Aug 1, 2016 · 7 comments
Assignees

Comments

@nxrighthere
Copy link

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

@keijiro keijiro self-assigned this Aug 2, 2016
@keijiro
Copy link
Owner

keijiro commented Aug 2, 2016

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

@nxrighthere
Copy link
Author

nxrighthere commented Aug 2, 2016

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 nxrighthere changed the title Motions Blur has some artifacts The far clipping plane set to >1000 cause some artifacts Aug 2, 2016
@keijiro
Copy link
Owner

keijiro commented Aug 3, 2016

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?

@nxrighthere
Copy link
Author

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

@keijiro
Copy link
Owner

keijiro commented Aug 4, 2016

Please try 150 and 200 :)

I tried 150 and it seemed to work.

@nxrighthere
Copy link
Author

nxrighthere commented Aug 4, 2016

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

@keijiro
Copy link
Owner

keijiro commented Aug 5, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants