9
$\begingroup$

Is there a way in Blender to check a mesh for missing or duplicate faces, mesh abnormalities, or other issues that might cause problems when it is exported and used as data for a real-time application such as a game?

$\endgroup$
  • $\begingroup$ Only your last sentence is valid, since everything else is a bug report or not tied to blender itself. There is probably a problem in the export/import procedure or the script itself. $\endgroup$ – Jaroslav Jerryno Novotny Dec 15 '14 at 19:57
  • $\begingroup$ If the details don't pertain to Blender, should I remove it or is it still a legit question for the site? $\endgroup$ – Omegacron Dec 15 '14 at 20:00
  • $\begingroup$ Would be good if you could elaborate more and expand your last sentence. Like what needs to be checked and how the mesh should look like for your export script to accept it and export correctly. More people will be able to help, this is too specific otherwise $\endgroup$ – Jaroslav Jerryno Novotny Dec 15 '14 at 20:07
  • $\begingroup$ Apparently others think the question should be closed. I'll just look elsewhere for an answer. Thanks anyway, Jerryno. $\endgroup$ – Omegacron Dec 16 '14 at 15:12
  • 1
    $\begingroup$ The question body is worded fine, but I would change the question itself to get rid of the Fallout reference. Basically I think Omegacron is looking for a tool like MeshLint: blendernation.com/2014/07/30/blender-addon-overview-mesh-lint $\endgroup$ – MrFlamey Dec 17 '14 at 3:42
7
$\begingroup$

There is an addon called Mesh Lint that allows you to check a mesh for several of the problems that might cause issues in games. You can find more information about it here: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Modeling/MeshLint

It should still work with current (2.7x) versions of Blender, although it is not included, so you will need to download it from the link above and install it manually (user File > User Preferences... > Addons > Install from File...)

There is a video about how to use it here: http://cgcookie.com/blender/2013/07/23/addon-mesh-lint/

| improve this answer | |
$\endgroup$
  • $\begingroup$ The video link is broken. $\endgroup$ – Matthias Urlichs Feb 19 '16 at 11:31
  • $\begingroup$ Neither of these links work anymore. $\endgroup$ – Aaron Franke Jan 12 at 6:56
9
$\begingroup$

There's an old way. In edit mode, select nothing with A and then hit ctrl alt shift M to select non manifold verts or edges. These are edges that do not have exactly two faces connected to them. If nothing gets selected, your mesh is pretty solid.

Try it with vertex select or edge select. Both modes provide insight.

| improve this answer | |
$\endgroup$
  • $\begingroup$ The key combination is atrocious, but that was exactly what I was looking for. Thanks a lot. $\endgroup$ – Matthias Urlichs Feb 19 '16 at 11:31
  • $\begingroup$ Cool. One is glad to be of service. Manifold is not completely foolproof but it's helpful. Shortcut remedies: assign another shortcut. A bit hard since there's few left. Use the space bar and type mani in it. Or create a button to click on. That's much simpler than one would think. $\endgroup$ – Haunt_House Feb 20 '16 at 18:57
  • 1
    $\begingroup$ This does not work anymore in Blender 2.8. The key combination does nothing (I tested by manually creating an edge with 3 faces). $\endgroup$ – Aaron Franke Jan 12 at 6:58
  • $\begingroup$ 2.8 is still a hated mystery to me. $\endgroup$ – Haunt_House Jan 17 at 18:09
7
$\begingroup$

In addition to the mesh lint answer I provided above, Blender also has a couple of functions that can help solve common problems. I recently switched to Blender for game work and these are the functions I have found to be invaluable for preparing mesh for export.

Remove duplicates / merge vertices: To remove duplicate faces, vertices or edges in a mesh, enter Edit mode, select everything and press W to bring up the specials menu. From this menu select Remove Doubles (or press 4) and any duplicate elements will be removed.

Note: this function will also merge vertices that are in the same spot or very close together; the threshold can be configured by changing the Merge distance setting located in the Last Operator panel in the Toolshelf (or press F6 after operation executing).

Select Linked: You can select all parts of a mesh that are linked together by selecting one part and pressing Ctrl+L. If you then invert the selection with Ctrl+i, you can find any unwanted loose polygons.

Select Loose Geometry: This will select single mesh elements that are not connected to others, such as floating vertices, edges and faces. Note that you need to be in vertex edit to select vertices, edge to select edges and face to select floating faces, and it won't work if there is more than one element connected together, which is why I prefer Select Linked.

Apply Transform: You can apply (or freeze) any transform on a mesh by pressing Ctrl+A and selecting the desired option. This can help to fix problems with scale / rotation after export.

Move Pivot: You can move the object pivot with Shift+Ctrl+Alt+C. The pivot can be moved to the 3D Cursor, which can be moved exactly with Shift+S or by entering a position in the Properties panel (N) in the 3D view. This can fix problems with a model being in an unexpected position or rotation after exporting.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Remove doubles is one I use systematically. Also convert to triangles before exporting as engines work with triangles, even if they accept quads they will probably triangulate while loading. It's better to see the triangulated version in Blender prior to export. $\endgroup$ – Hatoru Hansou Feb 20 '16 at 22:37
  • $\begingroup$ W no longer brings up the specials menu in Blender 2.8 (instead it just changes the select mode). $\endgroup$ – Aaron Franke Jan 12 at 7:00
2
$\begingroup$

Yo Omegacron! Blender also has a cleanup function. It has some functions that are similar to the CleanUp in Maya like 'generate dissolve' (deletes zero length faces and edges, also double faces) You can find it if you go to Edit Mode and to Mesh -> CleanUp in the 3D View Header. Make sure you selected the whole mesh before you clean up, generate dissolve, delete loose and fill holes should make your mesh game-ready :)

| improve this answer | |
$\endgroup$
1
$\begingroup$

Try the 3D-Print toolbox add-on.

enter image description here

Open the Analize tab and use the Check All to find problems like intersecting Faces, Non manifold Geometry, Non Plannar Faces, etc.

Some of the problems you can fix with the Clean Up tool.

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.