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
Lighting Attenuation Fixes #1941
Conversation
|
@NanoByte011 are you seriously having trouble finding a game that uses LIGHTATTN_SPOT? I tried a few games, and every one of them used it somewhere... |
|
It seems to fix car reflections in the need for speed series too, issue 8072. |
|
The FifoCI thing is cool... is there a threshold setting? Because some of these look like they don't have a diff, even though it thinks there is. |
|
Yea, the threshold is if there is a different pixel value anywhere in the image then it is different. |
|
@NanoByte011 Did you notice some of the lighting stuff in Mario tennis isn't fixed? Like the scores and whatnot? Are those another lighting glitch? |
|
@JMC47 Yeah, I did notice, those seem to be a different issue, the preview court before you start the match is dark too. :( |
|
@NanoByte011: Figures on the Mario Tennis thing. Dolphin's Lighting tends to be bad at doing stuff. |
|
Hmm... the Wind Waker title screen seems like a decent example? |
|
@magumagu hmmm... it's more like a game where it's a spotlight and there is incorrect specular highlights... ie a flash light and then there is no shine on a door knob for example... maybe Luigi's Mansion might have lighting like this. But yeah any ideas on a game with lighting like that, where we can check to determine if Dolphin is doing it right would be good. |
|
This also seems to finish off the remaining lighting quirks in MegaMan Network Transmission. |
|
Good stuff, feeling pretty good about killing multiple bugs in one shot! lol |
Fixed Directional Attenuation (assumed, data was light dir vector already, but it was not!)
|
All should be good now, let me know if anyone finds any lighting issues this PR causes |
|
Wow, how could it be that our lighting code was just /so/ wrong... |
|
Yeah, wow, that's /embarrassing/ levels of bad. Awesome work! |
|
Did you happen to take a quick look into the software renderer and check, if that one has similar issues? At least the mario tennis fifolog looks suspiciously similar. |
|
FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:
automated-fifoci-reporter |
|
Thanks all, there are still some lighting issues to solve (ie Mario Tennis preview court and the Score are still dark and confirmation that spot light specular is working in any games). @neobrain yeah I did briefly see the same problems in the SW Renderer with Mario Tennis in a test... so I assume it's broken as well. I can have a look at it for more future fixes on lighting. |
Fixes a lot of Specular Highlight issues such as Issue 6398, 6169, 7693 and possibly more!
Would like to find a real game case for the Spot Light Attenuation and test if that's ok too.