Skip to content
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

Fix GasGiant clipping and bright spots on models #5157

Merged
merged 2 commits into from
Mar 28, 2021
Merged

Conversation

Web-eWorks
Copy link
Member

@Web-eWorks Web-eWorks commented Mar 27, 2021

As promised, this was pulled out of #5156 to be applied to master. This PR contains a fix for planets and gas giants clipping out of the view, and also a fix for the unreported issue of persistent bright-spot acne on our models, most noticeable on the fuselage of the Pumpkinseed (but prevalent pretty much everywhere).

Closes #5145.

These screenshots are identical loads of the same save (including camera position/zoom), showing the difference with this change applied.

Before:

Screenshot from 2021-03-26 22-37-23
Screenshot from 2021-03-26 22-40-22

After:

Screenshot from 2021-03-26 22-37-56
Screenshot from 2021-03-26 22-41-00

@Web-eWorks Web-eWorks mentioned this pull request Mar 27, 2021
9 tasks
@fluffyfreak fluffyfreak self-requested a review March 27, 2021 10:33
Copy link
Contributor

@fluffyfreak fluffyfreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fixes 👍

@@ -88,6 +88,8 @@ void main(void)
#else
vec3 vNormal = normal;
#endif
vNormal = normalize(vNormal);
Copy link
Contributor

@fluffyfreak fluffyfreak Mar 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, all this time and we just weren't normalizing the normals 🤦‍♂️ ugh, I must have seent that hundreds of times!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I noticed when I was turning off the lights to test spherical gaussian indirect (and yes, they're in the other branch for you to play with 😄) that most of the light acne disappeared; for the longest time I thought it was just floating point inaccuracy with vertex interpolation, but it turned out to just be out-of-range normals. 🤦

@fluffyfreak fluffyfreak merged commit 37deea4 into master Mar 28, 2021
@bszlrd bszlrd mentioned this pull request Mar 28, 2021
2 tasks
@Web-eWorks Web-eWorks deleted the infinite-matrix branch April 29, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gas Giants Do Not Render Properly
2 participants