Search Unity

How to make smooth surface for OBJ files?

Discussion in 'General Graphics' started by ArkLade, Feb 2, 2021.

  1. ArkLade

    ArkLade

    Joined:
    Feb 2, 2021
    Posts:
    3
    Hello,
    I created a 3D Mesh model of a building using some images and the results look nice.
    But if I look closer at the model surface, it's made out of much finer small surfaces.
    If you see the images below, the left is the actual surface image (walls) and the right is my OBJ model.
    And I think this is the main reason for having such a large file size and makes my project slow especially when I am trying to merge a couple of buildings in a single project.

    Is there any way to smooth the surface so that number of faces can be minimized?
    I just need to have a model that will look good enough, not in crazy detail.
    But will this affect the original texture(image) allocated to each surface?

    Thank you,
     

    Attached Files:

    • 1.png
      1.png
      File size:
      351.5 KB
      Views:
      323
    • 2.png
      2.png
      File size:
      914.5 KB
      Views:
      318
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,638
    You can do that in 3D modelling software, like Blender.

    One thing you can do is bake all of that surface detail into a normal map. It will look the same in Unity but, potentially, it could be much more performant.

    Here is the most concise tutorial that I could find:
     
    ArkLade likes this.
  3. ArkLade

    ArkLade

    Joined:
    Feb 2, 2021
    Posts:
    3
    Thanks! I'll check it out.
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,776
    What software did you used, to create it?
     
  5. ArkLade

    ArkLade

    Joined:
    Feb 2, 2021
    Posts:
    3
    I used Context Capture from Bently
     
  6. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,776
    I see.

    Blender could be in use indeed.
    But if you maybe want some other tools to try, you may look into
    Meshlab
    and
    CloudCompare

    I used them in past, to clean complex multi-milion vertices meshed, before importing mesh to Unity.
     
    ArkLade likes this.
  7. DimitriX89

    DimitriX89

    Joined:
    Jun 3, 2015
    Posts:
    551
    ArkLade likes this.