Open RudainaK opened 1 year ago
Quick update, I resolved 1 issue (reflect.cpp needed to normalize some stuff), so I've started getting reflections (granted they are a little broken), and it seems adding a fudge factor at all was causing me issues with shadows, but they are still weirdly bright
max recursive calls = 10
sphere-and-plane.json:
two-spheres-and-plane.json:
sphere-packing.json:
its definitely an issue with the diffusion part, specular + ambient only results in this
i don't think its completely right either, but at least its kinda pretty
The weird ring looks like a problem in your specular part, might be in issue in computing H. You have weird cropping in your reflections, probably due to too large a fudge factor in the offset.
I have met the same problem with you, here are some hints from my solution, maybe cannot fix to yours but ... you know, just check :)
For parts of the image being way too bright, did you find part of the issue was in your diffusion calculation? At the moment I think that's the biggest culprit but I dont understand whats wrong with it
Hi, I've been debugging for over a day now and I think I've gone through most of the github issues trying to see what might be wrong. I did fix a few things but I've hit a wall.
Here are some sample images, all done with max recursive calls = 10:
sphere-and-plane.json:
two-spheres-and-plane.json:
sphere-packing.json:
For the sake of experimenting, i set max recursive calls = 1 and got the following:
sphere-and-plane.json:
two-spheres-and-plane.json:
sphere-packing.json:
I'm pretty sure it has something to do with blinn-phong because of how weirdly bright some of the images are (especially sphere-packing), but I've double checked my equations and they seem to match unless there was something I misunderstood. If anyone has any ideas/had similar issues, I'd appreciate the help