Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Plus/Pro 20% off] Mesh Face Optimization

Discussion in 'Assets and Asset Store' started by ExcaliburGames, Sep 3, 2017.

  1. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Mesh Face Optimization
    Asset Store

    This asset for removing not needed triangles/faces from meshes. For example some models has internal triangles/faces, or when you put together several objects and bake it some triangles/faces will be inside of the mesh. Also if your game has some limits for camera angles (platformer, runner, top down view) or you just know that you need only front side of this house/castle/laboratory - you can left only what you need and remove all other triangles. With this asset it's will be easy to do.

    TRY BEFORE BUY: If you not sure is it will be useful for you, you can send me one/two your models and I will reply with optimized models.

    How to use


    Result examples

    This is not a final release, I have a lot of ideas how to improve this asset, but I want to get some feedback from other developers. So if you have some ideas/propositions or maybe you found a bug, please let me know.

    Best,
    Serhiy from ExcaliburGames.
     
    Last edited: Oct 5, 2017
  2. b4c5p4c3

    b4c5p4c3

    Joined:
    Jan 4, 2013
    Posts:
    537
    Looks useful
     
  3. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi b4c5p4c3 my asset just accepted;)
     
  4. jimburn

    jimburn

    Joined:
    Apr 1, 2017
    Posts:
    64
    What difference with the other assets doing the same thing in the asset store?
     
  5. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hello jimburn


    Can you give links to similar assets? Because i can't find other assets with such functionality.
    Biggest advantage of my assets - you can remove not visible triangles from mesh almost automatically (you need to setup visible point of view).
    I saw assets where you can manually remove triangles, but after 10 hour and pain in my hand i decided to write this asset.

    Best, Serhiy
     
  6. jimburn

    jimburn

    Joined:
    Apr 1, 2017
    Posts:
    64
    https://www.assetstore.unity3d.com/en/#!/content/43652
    https://www.assetstore.unity3d.com/en/#!/content/25366
    etc... just search LOD in the asset store.

    What your asset is doing is pre-calculating the occlusion culling (removing the back faces) from a fixed camera(s) position. The optimizer is done from the camera view which is a problem, because the camera is moving by definition, so if you want to optimize the models, you need to use several cameras and it is complicated.

    These 2 assets will optimize the mesh regardless of the camera angle, then you can use occlusion culling to remove the back faces in real time, and regardless of the position of the camera.


    My 2cts.
     
  7. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi jimburn

    LOD it's something else - LOD allow you render simple mesh if it far enough from camera.
    With occlusion culling game engine can decide render or not render entire object (it can't remove not visible triangles from mesh and render only part of mesh).

    With my asset you can remove not visible triangles from meshes (and baked meshes, btw you can bake with my asset), yes it will take some time but it's definitely faster that doing it manually. A lot of high quality meshes has not visible inner triangles.

    Please check my example video where i show triangles count in meshes before and after optimization.
    Some good examples where my asset can help you:
    • big combined objects like houses from "fantasy/modern house kit" and other mesh kit
    • if you have static TV on wall, you can remove side which look on wall
    • runner games with fixed camera, or games with top-down camera
    • if you have static barrel with bottom on earth, you can remove bottom side which looks on earth.
    • etc.

    Also if you not sure if my asset will be useful for you, please sent me one/two models and i will show you optimized result.

    Best, Serhiy
     
  8. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
  9. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hello

    New version released. Now my asset compatible with Unity 2017.3.

    Also i'm thinking about adding "360 degree camera".
    Will be happy to hear some suggestions and feedback about MFO.

    Best, Serhiy
     
    Last edited: Mar 27, 2018
  10. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    Hi, does it support multiple camera angles ? I have an open world scene, I mainly want remove the bottom parts of meshes..
     
  11. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi MoribitoMT, Yes it's support multiple camera angles.
    Also you can send me one of your model, i will optimize it and send you result back.
    If you have any other questions, feel free to ask
     
  12. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    Thanks for quick answer, I have large opens scenes ( developing for mobiles ). I have not much single angle for most objects, %90 mainly removing bottom faces. Most of textures atlassed, I wonder if this tool can help to squeeze more performance..

    I have scene like this for example. My only consideration is just removing bottom parts ( faces obviously, not much vertices ) will help any performance gain ?.
    Screen Shot 2018-12-13 at 13.56.08.png
     
  13. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Well everything depends on quality of your models. If your models have 600-1200 polygons and you have in one scene around 20-30k than my asset will not give you more FPS.
    But quite often i worked with not very good models - and it's helps me.

    Also you need to be sure that you bottleneck is mesh rendering. because bigger problem can be somewhere else like script, physics, VFX, post-processing etc.
     
    MoribitoMT likes this.
  14. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    To be honest I am more interest in reducing mesh size. I have 2.5M scene with only 60 set pass call ( all texture atlassed ) getting solid 60 FPS on iPhone 6/6S. My main problem is iPhone 5/5S, due to huge mesh sizes and static batching iphone 5 will not start because of memory issue ( 1 gb ram ).

    So if I can have reduce mesh sizes and do some clever static batching, maybe I can get it worked on iphone5. I also want to reduce final build size.

    My scripts are optimized, textures optimized, only thing left for me reducing mesh sizes :(

    Regards.
     
  15. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    DEShaders and MoribitoMT like this.
  16. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    I own every build report tool from asset store :D

    Hey thanks anyway, I will purchase the asset when I finish the map, do some work with your tool and mesh simplify asset. Thanks..
     
  17. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Ok, ok i just want to be sure that problem in meshes.
    Anyway if you will have any other questions, feel free to ask ;)
     
  18. MoribitoMT

    MoribitoMT

    Joined:
    Jun 1, 2013
    Posts:
    301
    Oh it is meshes, my final build says 90 MB textures, 202 MB meshes adn around 300 mb scene ( level ) due to pre stored static batching. I have 32 vehicle textures which cannot be optimize anymore, so I am okay with it, however 202 mb mesh too much.
     
  19. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    WOW, it's definitely too much!.
    And yes now i will recommend to use my asset (to remove not needed angles of view) and some general mesh optimization/simplify tools.
     
  20. Mad_Mark

    Mad_Mark

    Joined:
    Oct 30, 2014
    Posts:
    430
    Is this app still being developed and supported?

    I have a bunch of custom made characters that were built in Blender, pulled into Fuse, and have been rigged and animated for mecanim. They are between 15k and 25k verts. Many faces are on the interior of the model, as they were built from individual pieces (Head and hands, torso and shirt, pants and legs, shoes over feet, etc.) I combined the pieces in Blender (Ctrl+J) and combined all of the textures in Gimp to reduce the materials, but I did not merge the sub-mesh components into one mesh. This results in a single mesh object in Unity, with a Skinned Mesh Renderer that contains 6 material entries, all pointing to the exact same material.
    • Will this app merge the sub-meshes?
    • Will it remove the internal faces?
    • Will it reduce the materials list? (all the exact same material)
    • Will it interfere with the bones, rigging, hierarchy or animations?
    • I use EmeraldAI, and it is a little particular about these things. Can I try before I buy somehow? (I would prefer not to send my custom models to others. They are unique representations of each of my grandchildren.)

    Thanks,
    Mark
     
  21. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi Mad_Mark right now this asset has some problem because of new version of Unity.
    Also it's do not support animated meshes.
    I will fix it and add more features later but not right now.
     
  22. shaunysaurus

    shaunysaurus

    Joined:
    Sep 24, 2015
    Posts:
    5
    Ah... would that be why it's not working for me in 2018.4.4.f1?
    Even just testing it out on a sphere results in most of the visible faces being culled. (768 tri sphere becomes just a narrow band of 24 tris)
     

    Attached Files:

  23. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi shaunysaurus
    Do you use Windows or MacOS ?
     
  24. shaunysaurus

    shaunysaurus

    Joined:
    Sep 24, 2015
    Posts:
    5
    Hi Serhiy,
    I'm on MacOS High Sierra
     
  25. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi shaunysaurus
    Thank you for this report. I will look on it.
     
  26. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Hi shaunysaurus
    Can you help me with testing ?
    If yes, can you please give me your email and i will send you instruction with possible fix.
     
  27. shaunysaurus

    shaunysaurus

    Joined:
    Sep 24, 2015
    Posts:
    5
    Sure thing, have just now sent you an email to the support email address in the asset store listing. Thanks!
     
  28. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Good news everyone!
    New version released:
    1)Fixed for new versions of Unity for MacOS
    2)Fixed optimization for meshes without UV
    3)Add namespaces
    4)Moved asset to "Assets/Plugins" folder
     
  29. shaunysaurus

    shaunysaurus

    Joined:
    Sep 24, 2015
    Posts:
    5
    Yep, new version works great now on mac!

    Here's a little example gif of a pile of carrots from the game I'm working on. Because the game uses a 2.5D viewpoint, I only need objects to be visible from a limited range of angles and can cull a bunch of faces. In this gif, when the pile on the right spins around to reveal an angle not seen in-game, you can see many faces have been culled.
     

    Attached Files:

    Last edited: Aug 30, 2019
  30. ExcaliburGames

    ExcaliburGames

    Joined:
    Oct 29, 2013
    Posts:
    37
    Looks cool!
    BTW let me know when you game will be ready.
    Also will be happy to test it =)
     
unityunity