+1 vote

Hello. At some point in my game project, I'll need a room to appear from nothing. The point it that this room can pop anywhere, any direction. Is it possible to trigger a lightmap bake while the game is running ?

in Engine by (13 points)

I think it is possible to bake lightmaps when a game is running. But why would you? Baked lightmaps are used when real time lighting isn't an option (i.e. the machine your game is running on doesn't have the capabilities to perform real time lighting).

The sun orientation might change, the room might change orientation too. And lighting inside of if might change as well. Though, it'll not change while the player can see it.

The goal is to bake the lightmap of the room while the player is somewhere else for it to be ready when the player comes in.

I would recommend against baking the lights at runtime because it may take a lot of system resources just to bake the lights in the room. That potentially means a lot of loading and slowdown for the player.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.