Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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:
    70
    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:
    254
    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