flomonster / path-tracer

Path tracer in rust
6 stars 0 forks source link

Check and fix indirect lighting power #38

Open AlexandreLamure opened 2 years ago

AlexandreLamure commented 2 years ago

Indirect lighting seems too weak Blender: With "bright sky" (using background color as light) blender1

Our results : sponza (1)

AlexandreLamure commented 2 years ago

It seems to come from the BRDF. More specifically, the indirect version of the BRDF (eval_indirect()).

AlexandreLamure commented 2 years ago

There are also some weird artifacts in our version image The normals seem to flipped sometimes (maybe the NDF ?). Or it could be a bug in the metalness values

AlexandreLamure commented 2 years ago

Better examples (indirect light only, using background color as the light)

Blender: image

Ours: image

AlexandreLamure commented 2 years ago

Other tests: 1 - With point light Blender: ref1 Our version : result1 Our version with eval_direct only: result1_2

2 - With bright sky Blender: ref2 Our version : result2 Our version with eval_direct only: result2_2

AlexandreLamure commented 1 year ago

We think there is a problem in metalness

Blender: image

Ours: image