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 LightmapGI baking with GridMap #81545

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

bitsawer
Copy link
Member

Looks like a typo was made in #38386. A variable was renamed from meshes to bmeshes and looks like the string content was accidentally changed too which stopped GridMap from working when baking lightmaps.

The issue MRP project is old and seems a bit messed up, tweaking the light direction and other settings a bit made things look better, seems there' some odd culling/light issues too with some meshes. Could be caused by some legacy mesh format changes or something else.

GridMap on the left, baking started working after this fix:

gridmap2

@bitsawer bitsawer added this to the 4.2 milestone Sep 11, 2023
@bitsawer bitsawer requested a review from a team as a code owner September 11, 2023 12:48
@akien-mga akien-mga requested a review from Calinou September 11, 2023 12:52
@akien-mga akien-mga requested a review from a team September 25, 2023 22:14
@akien-mga akien-mga added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Sep 25, 2023
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally (rebased against master 43b9e89), it works as expected.

Screenshot_20230926_003846 webp

@akien-mga akien-mga merged commit 538928b into godotengine:master Sep 26, 2023
@akien-mga
Copy link
Member

Thanks!

@bitsawer bitsawer deleted the fix_lightmap_gridmap_bake branch September 28, 2023 10:07
@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Oct 24, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants