-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Add support for saving lightmap as multiple images #61861
Add support for saving lightmap as multiple images #61861
Conversation
I tested this PR on #54679 and it doesn't fix the crash encountered when baking lightmaps, even after setting the maximum texture size to 8192. I suppose this doesn't work on that MRP since it only uses a single large mesh, as opposed to several smaller meshes. That said, the original crash may be better fixed by using |
Can you please attach the backtrace of the crash? |
It's slightly different from the one listed in #54679, but I had a similar backtrace with a
|
This would close godotengine/godot-proposals#3734 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, really clean implementation. I did some testing and everything is working as expected.
6856178
to
8e6e932
Compare
8e6e932
to
d49c1cf
Compare
Thanks! |
master
port of #58102.Needs to be tested on a really large scene for the "roll-over to multiple textures" limit to be reached. I have only tested by hardcoding
slices_per_texture = 1
, but in theory, should work just fine for the general case too.Also, currently there is lightmap texture data duplication as both the individual textures and the combined texture co-exist. Need to figure out a way around it. (This only happens when the texture data cannot be contained in a single✅Image
; so no overhead until the roll-over limit is reached).