pieroaccardi / Unity_PathTracing

Unity Editor GPU Monte Carlo Path Tracing
20 stars 4 forks source link

Strange sampling of voxels. #2

Open ddutchie opened 5 years ago

ddutchie commented 5 years ago

I have noticed that there are some strange artifacts when objects are touching, almost as if the last possible voxel for that object is not being traced.

image

image

Looking into this, but have already managed to implement material sampling with an extra matrix4x4 buffer containing the material info.

ddutchie commented 5 years ago

Another example of this issue:

Scene View: image

Tracing On: image

ddutchie commented 5 years ago

It looks like it has to do with an objects scale. If the plane's scale on the x and z is above 1 issues occur

pieroaccardi commented 5 years ago

I'll check it out

ddutchie commented 5 years ago

Thank you! Another example of some of the artifacts:

Scene: image

Render: image

ddutchie commented 5 years ago

I'll add an example scene with the issues to my branch

pieroaccardi commented 5 years ago

should be fixed, let me know

ddutchie commented 5 years ago

Much better, although I still get some issues with small triangles?

image

image

Any ideas why this would be happening?