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

Poping particles shadows on dynamic mesh #30

Open
Wenzy-- opened this issue Sep 23, 2019 · 7 comments
Open

Poping particles shadows on dynamic mesh #30

Wenzy-- opened this issue Sep 23, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Wenzy--
Copy link

Wenzy-- commented Sep 23, 2019

Your addon's effect is so great.But when i try to generate some procedural mesh
https://imgur.com/euTGxR3
There are some particles shadow will pop out and appear randomly.(From the picture it seems aceptable ,by if run in video it looks very anoying )

Is there any way i can avoid this issue happen.The shadow will follow the direction light.And
I found it's related to the voxel?When the resolution is low,the particle shadow will become bigger.

This issue seems won't happen in the static mesh.

@Looooong
Copy link
Owner

Looooong commented Sep 23, 2019

On the VXGI script in the inspector, you can enable "Visualize Mipmap" property to see where are those voxels at. You can then figure it out or post me a picture with mipmap visuallized so I can help you out.

@Wenzy--
Copy link
Author

Wenzy-- commented Sep 23, 2019

https://imgur.com/K4CSUpJ
What does it means? i saw some colored voxels pop out.Is it because i generate some useless vertex in the mesh?

@Wenzy--
Copy link
Author

Wenzy-- commented Sep 23, 2019

https://imgur.com/X2DpSYC
https://imgur.com/HrTseoE
But it seems impossible,because i have made a clamp function to cut the mesh to avoid it out of the section

@Looooong
Copy link
Owner

You can switch to wireframe mode in Unity to see if there are "tiny" triangles there.

@Looooong
Copy link
Owner

My guess is that this is a precision error on the GPU side because of extreme steep surface (comparing at one point to another).

@Wenzy--
Copy link
Author

Wenzy-- commented Sep 23, 2019

ok, thank u for your suggestions.I have checked my mesh is fine.And i found a temporary solution~When i rotate the plane a little bit.Like set the Rotation (0.1,0,0),the strange particle shadow will disappear.I don't figure out why

@Looooong
Copy link
Owner

Based on the irregularity of the mesh, I guess this is because the steepness of the slope relative to the projection used in voxelization that causes floating point errors. I will think of some way to improve it later on.

@Looooong Looooong added the bug Something isn't working label Apr 25, 2020
@Looooong Looooong self-assigned this Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants