-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Quality lose by using BakedLightmap with Gridmap and many tiles. #14876
Comments
I don't really know how BakedLightmap works, but it's expected to me as the BakedLightmap's area is larger in the large scene. |
just increase subdivision, as doc says, the larger the area it makes sense
to use more bake subdivision. I was thinking of, instead of using
subdivision, having a cell size parameter, so it's more automatic.
…On Wed, Dec 20, 2017 at 4:02 PM, Noshyaar ***@***.***> wrote:
I don't really know how BakedLightmap works, but it's expected to me as
the BakedLightmap's area is larger in the large scene.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14876 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z266VgjGjcJ5fH2UQ1AUq-zdVsc3Xks5tCVnGgaJpZM4RIyWq>
.
|
Ahhh ok I thought that subdivision was just if you have a diferent scale or something. |
yeah.. I will eventually change it to bake cell size and capture cell size
I guess, so it's more friendly
…On Wed, Dec 20, 2017 at 4:23 PM, kakoeimon ***@***.***> wrote:
Ahhh ok I thought that subdivision was just if you have a diferent scale
or something.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14876 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z29VPuaUTUOJ6pUnOCfHCwZ_xMJRYks5tCV23gaJpZM4RIyWq>
.
|
I am not trying to blame, but right now it looks almost unusable. Even thought I read the docs for GIProbe, for some reason I thought that subdivision was something like a point of reference of how much it subdivides the original extends and that afterwards it does the calculations (hidden from the user) to get the subdivision right for the modified extents.
Anyway, sorry for the long post and my bad English, but I thought it will be good to inform you with my observations as an end user. |
As mentioned, for baked lightmaps, will definitely change it to a cell size, as it's pretty difficult to guess by subdivision what willt he resulting quality be. |
Ok, I changed baked lightmaps to use a cell size instead of a subdivision. This should make it work and look the same no matter the size of the region being baked. Please give it a try. |
@reduz I just got a segmentation fault with the big testcase (test/test.tscn).
By the way I have 6gb memory and GT540M 2gb Here it is the bt
|
Forgot to mention that this happened on the plotting (Plotting Meshes: (10/11)) |
Feel free to attach testcase
…On Dec 21, 2017 5:33 PM, "kakoeimon" ***@***.***> wrote:
Forgot to mention that this happened on the plotting (Plotting Meshes:
(10/11))
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14876 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z23tTiI6eW4zz-LvGj3eWuJ5ijs5Xks5tCsCngaJpZM4RIyWq>
.
|
seems like it's a really big level from the backtrace, so would like to see if there is anything strange in the testcase |
The testcase is the gridtest.zip on the first post of this issue. The scene in test/test.tscn |
Ah, I see, that scene is way too big, so it' s likely running out of memory for baking. In a real game level, you can use multiple BakedLightmap nodes for the different regions and it should work fine |
Ok... it was just a test anyway. |
An alternative, if the level is too big, is to increase the bake cell size. By default it' s 0.1 (10cm). I changed it to 0.5 and it baked really quickly. |
Looks ok, but eventually a solution or a warning to the user must be raised. Here is my the comparison now. (1) The one with 2 cells. (testt/tset_1/test_1.tscn) (2) The small one with seven cells. (test/test_small/test_smal.scn) (3) The huge on. (test/test.scn) And the project modified (bake textures of the big level was removed to keep the size under 10mb) Some comments btw I closed the issue before you add the cell size, if you want me to reopen it just tell me. I am very disapointed to the fact that not many users are testing this great addition, I will try to attract some more users in discord and etc. but I will be away till monday to try to test it a little bit more. Other from that, the issue #14795 must be resolved cause without gdb we have no ability to stop the looping error and we get a computer freeze. It is also not just to the use of BakedLightmap with Gridmap but a general problem using BakedLightmap in general. If I remember well it happened when you commited the ability to use Gridmap with BakedLightmap. |
Godot version:
master
OS/device including version:
Manjaro 64bit, GT540M NVIDIA Driver Version: 384.90
Issue description:
The more meshes in the gridmap less quality.
Two meshes.

Seven meshes.

Too many mashes.

Steps to reproduce:
Minimal reproduction project:
You will have to bake test\test.tscn (the one with too many meshes) cause there is a limitation of 10mb in github upload.
Other test are test\test_small\test_smal.tscn the one with seven meshes.
And test\test_1\test_1.tscn the test with two meshes.
gridtest.zip
The text was updated successfully, but these errors were encountered: