Skip to content

Lightmaps Fail when more than one glb in the scene has them. #213

Open

Description

@Aitolda

If you have two glb files loaded and both contain lightmaps, one of them will fail. I strongly suspect this is because of having more than none vircadia_lightmapData object in the scene.

Activity

  1. added
    bugSomething isn't working
    Severity: MediumImportant functionality is affected, but a workaround exists
    on Mar 3, 2024
  2. Aitolda commented on Mar 15, 2024

    @Aitolda
    ContributorAuthor

    It appears that whatever lightmap loads first tends to work, and the second will not scale properly, but still be applied to the object. I'm assuming at the moment that the smaller sized glb will typically finish first, and therefore be the one that loads correctly, but this is speculation.

  3. Aitolda commented on Mar 16, 2024

    @Aitolda
    ContributorAuthor

    On closer inspection, the issue appears to be related to matching lightmap names/materials between multiple glb files. One solution is to have the name randomized, either directly in vircadia web or within the blender plugin.

  4. Aitolda commented on Mar 21, 2024

    @Aitolda
    ContributorAuthor

    I've created a workaround in the unity-to-vircadia plugin that simply assigns lightmaps random 16 digit strings as lightmap names for the time being, however I think I'll leave this issue open as it's possible it can be adjusted so this is no longer necessary at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Severity: MediumImportant functionality is affected, but a workaround existsbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions