I downloaded a very complex house / mansion model fromonine, and I want it to now work with unity.

As many know, if I simply put a mesh collider on this huge complex house mesh in unity, things wouldn't work out.

So my plan is to somehow automatically split this very complex house into many smaller, simpler meshes. For example, in a place where there are complex decorated pillars supporting the roof, that would create a simple cylinder mesh to overlap, and so on for all of the mesh-shapes built in to the model (then obviously in unity I would just loop through all meshes except the original and add a mesh collider o each one individually).

The thing is: I have abolutely no idea how to do this, just pressing P -> by loose parts does nothing, since it's one solid object, so I suspect some python script might be the solution, but I have no idea how to start with that.

So basically: yeah.

EDIT: found the answer here: All Faces to Individual Objects

  • $\begingroup$ Does it have materials? seams? Generally a script is written to emulate what you can do in the UI. If it gets to complex, it may be quicker to select and tag somehow manually. $\endgroup$ – batFINGER Oct 5 '18 at 15:04
  • $\begingroup$ no materials, I don't know what "seams" are, it's just one big single-mesh complex house that I want to split up automatically into many smaller parts, it would take forever seleting every pillar manually or re-making cylinders around each one... I don't care about materials or anything, this is only for a collision mask so all of the parts will be invisible $\endgroup$ – bluejayke Oct 5 '18 at 17:44
  • $\begingroup$ TO be lear: Im trying to automatically generate many simple-meshes based on one complex mesh $\endgroup$ – bluejayke Oct 5 '18 at 17:44
  • $\begingroup$ Great that you have found an answer splitting mesh into objects from faces. Make it an answer and elaborate.. A mesh can be split by materials or seams. Even if materials are not supplied, they may be assigned to faces. What is not clear is the mesh other than it's downloaded from the net, complex and a house. The latter is about the only shred of info that may be of some use to write a script. For example if a face on pillar has certain area. edge lengths, z location range, etc in common with all other pillars can use this to select, then filter by connection to weed out mismatches. $\endgroup$ – batFINGER Oct 6 '18 at 4:33
  • $\begingroup$ @batFINGER thanks for the input but I didn't exactly get the last point you were saying, were you suggesting how to merge the faces back together? 'Cause that's the only problem: first, it takes a long time for blender to make a separate object out of each for for like 4000+ faces, and also in unity if each face is a separate game object that would be a lot of processing, so prefferably I would like to recombine them, but I'm not sure how exactly? $\endgroup$ – bluejayke Oct 7 '18 at 3:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.