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

Problems generating BakedLightMaps by code #18954

Closed
maikramer opened this issue May 17, 2018 · 2 comments
Closed

Problems generating BakedLightMaps by code #18954

maikramer opened this issue May 17, 2018 · 2 comments
Milestone

Comments

@maikramer
Copy link

Godot version:
ba134d4

OS/device including version:
Ubuntu 18.04

Issue description:
While trying to call the function BakedLightMap,Bake() i get in the console

ERROR: write_variant: Resource was not pre cached for the resource section, bug?
At: core/io/resource_format_binary.cpp:1508.

I debugged athe code and detected that the problem happens in

err = saver[i]->save(p_path, p_resource, p_flags);

This happens while BakedLightMap tryes to save the ImageTexture in disk.

I guess that this issue is related to #18801, but as they are 2 totally diferent situations i decided to open a new issue.

Steps to reproduce:
Bake a lightmap by code.

@reduz
Copy link
Member

reduz commented Sep 7, 2018

This needs to be re-made in 3.2 with Vulkan, will kick there

@reduz reduz modified the milestones: 3.1, 3.2 Sep 7, 2018
@akien-mga akien-mga modified the milestones: 3.2, 4.0 Jan 5, 2020
@KoBeWi
Copy link
Member

KoBeWi commented Dec 10, 2020

Seems fixed in 3.2.4 beta3 (no error on calling bake()).
Can't test in 4.0, because bake() method doesn't exist for some reason (even though you can see it in online docs)

If you can still reproduce, provide a minimal reproduction project.

@KoBeWi KoBeWi closed this as completed Dec 10, 2020
@KoBeWi KoBeWi modified the milestones: 4.0, 3.2 Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants