0 votes

Hey, I'm having an annoying issue while trying to bake lights on my project:

Every time I unwrap UV2 for Lightmap/AO, my material is removed from my mesh instance node.

Steps to reproduce:

  1. In Material> Create New SpatialMaterial
  2. In Albedo> Insert wanted texture
  3. UV2> Enable
  4. Under mesh at the top> UV2 for Lightmap/AO
  5. Go on another part of the parent node and come back

(For visuals https://imgur.com/a/C0f8fvm )

By this point, the material disappeared...
I don't know what I'm doing wrong but it's driving me nuts @[email protected]

Please let me know what I'm doing wrong / how to resolve this issue please!!!

Godot version 3.5.1.stable.official
in Engine by (12 points)

1 Answer

+1 vote

This is expected, as UV2 cannot be saved into mesh files by Godot (which are usually external files such as .obj).

Instead, you need to select the 3D scene in the FileSystem dock, then the light baking mode to generate lightmaps in the Import dock on the 3D scene. For OBJ meshes, you will need to change their import mode to OBJ As Scene instead of importing them as a standalone mesh.

This is explained in detail in the Baked lightmaps documentation.

by (12,781 points)
edited by
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 Frequently asked questions and 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 [email protected] with your username.