Search Unity

Can't figure out how to generate normals for .obj with concave curvature

Discussion in 'Formats & External Tools' started by ebaender, Jan 20, 2021.

  1. ebaender

    ebaender

    Joined:
    Oct 29, 2020
    Posts:
    97
    missing-normals.png

    Can somebody explain to me how to generate normals for a wavefront object? The normal generation in the importer only seems to work for convex shapes, these arches still looks flat shaded. I also tried enabling smooth shading for the entire model in blender and exporting that, but that had no effect.
     
  2. Siccity

    Siccity

    Joined:
    Dec 7, 2013
    Posts:
    255
    In Unity, a vertex can only have one normal. This means that, by default, a model can only be smooth shaded. To produce sharp corners, a model must use duplicate vertices, effectively disconnecting edges. It looks like your obj file has duplicate vertices, perhaps after using the edge split modifier? Does the model look smooth in blender?
    upload_2021-1-22_10-39-39.png