ospray icon indicating copy to clipboard operation
ospray copied to clipboard

Dark artefacts

Open Noctiluce opened this issue 3 years ago • 3 comments

Hello everybody,

I encounter a problem when I applied the normal of my models. There is dark artifacts appearing on the edges of my dragons and weird black shapes on the bottom geometries. It's especially surprising because the geometry of the sphere at the top is the same as the ones on the sides.

dragons

Does anybody have an idea of why these dark artifacts appears ? Thank you in advance !

Noctiluce avatar May 10 '21 15:05 Noctiluce

hi, yes unfortunately this is a known issue with shading normals at grazing angles. @johguenther ?

carsonbrownlee avatar May 10 '21 18:05 carsonbrownlee

Those artifacts can happen if the shading normals deviate much from the true geometry normal and in combination with the material. What material do you use, is this Principled (diffuse with clearcoat)? Odd that the hemispheres and hemi-cylinders of the pedestal look facetted – could you check the vertex normals (e.g. via debug renderer with method=Ns).

johguenther avatar May 11 '21 07:05 johguenther

I realized that the problem on the hemi-cylinders and hemispheres was partially due to a miss calculation in my normal transform matrix. But the problem is still present on grazing angles. Currently I'm using a pathtracer-principled material with only an ior of 1.5. I'm sorry, I do not see in the documentation where to look for a debug renderer, by the way I'm using an pathtracer renderer. But I have verified the normals on blender and they are good. Now it looks like this :

dragon

Do you think I could tweak some ospray/renderer values (like pixelSamples) to fix this problem ?

Noctiluce avatar May 11 '21 12:05 Noctiluce