How to create a UV2 layer (for baking lights) for basic meshes included in godot?

kidinashellkidinashell Posts: 2Member

I am trying to create a prototype of a world and am trying to bake certain lights (mainly the directional light) into the UV2 layers of basic meshes included in godot (Cube, Capsule, etc.). When I'm trying to view the UV2 layer of the basic meshes it says, that there is no UV2 layer. When I'm trying to create it with "Unwrap UV2 for lightmap" it says, that the mesh is not an "ArrayMesh".
All the basic meshes have a material assigned to them with one texture for albeido. So baking the lights with the BakedLightmap Node doesn't have any effect.
Is it even possible to bake lightmaps with only basic meshes?
Thank you in advance.

Answers

  • ffffffffff Posts: 1Member

    When I'm trying to create it with "Unwrap UV2 for lightmap" it says, that the mesh is not an "ArrayMesh".

    some easy way around this "not implemented feature(?)"

    create "MeshInstance" → set to "Plane"/"Cube"/..
    click "Mesh"(Menu on top of ur editor window) → click "create Outline Mesh..."
    select the new Outline Mesh (it is also a "MeshInstance")
    click "Mesh"(Menu on top of ur editor window) → click "Unwrap UV2 for Lightmap/AO"

    voila

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file