Skip to content

error spam: Mesh does not have normals for Global Illumination #45

Description

@unitycoder

Mesh converter creates meshes with [x] Lightmap static enabled, causing error spam:
"Mesh does not have normals for Global Illumination. Please ensure there are normals in your modelling package, or set the Normals property to Calculate on the Asset."

fixed in next update.

to manually fix:
// open PointCloud2MeshConverter.cs
// find lines inside BuildMesh()

            mr.reflectionProbeUsage = UnityEngine.Rendering.ReflectionProbeUsage.Off;
            GameObject lodRoot = null;

// add extra line between those

            mr.reflectionProbeUsage = UnityEngine.Rendering.ReflectionProbeUsage.Off;
            GameObjectUtility.SetStaticEditorFlags(target, ~StaticEditorFlags.LightmapStatic);
            GameObject lodRoot = null;

*If you use mesh lods, inside BuildLODS() add that extra line of code after this line:

mr.reflectionProbeUsage = UnityEngine.Rendering.ReflectionProbeUsage.Off;
// add
GameObjectUtility.SetStaticEditorFlags(target, ~StaticEditorFlags.LightmapStatic);

Activity

  1. unitycoder commented on Nov 6, 2018

    @unitycoder
    OwnerAuthor

    fixed in 2.00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions