But, when i export mesh with ObjExporter, and load blender end export it back to obj, and load it to unity, it works but incorrect and with broken normals…
every triangle on a mesh have no shared vertices, on first and second object, but if it has them, then normals are broken without export, even if i use standart (recalculateNormals()):
it’s name would be a third object (in a project i attached).
5)if i opened third object in blender (with shared vertices), and select non-manifold, no vertices are selected;
Import first.obj in Blender and save the .blend file in your Unity project. Like that it should be imported automatically. Done. Works for me, both the mesh and the collider.
You can easily dynamically create the convex hull, but that requires valid mesh data. The mesh data is not valid which is highlighted in the import error.
ok, i’ll try then reply. But how i understood, the problem is in uv coords, i haven’t made them… and thought that they are not important ?.. mesh is correct i think, normals… sometimes (lol)… i mean they ok, if not shared vertices, if they, then mesh is not closed (manifold), if not, then normals are broken… lol =)
In which application do you create your meshes? If you create them in Blender, you may try to save them directly in the Unity project folders, such that they are automatically imported. Like that, you avoid a lot of trouble like that one.
As soon as you start to texture your model, the uv coordinates are going to be very important! After all everything is important, otherwise it would not be necessary and would not be there…
i dont need uvs, because i’m doing convex decomposition to make colliders, this meshes are used only for them… and i make them fro other script in unity.
If you use the Blender Installer and not the zip file of Blender, then the import should work. Another option is to export the object with the fbx exporter of Blender, which is used internally when you import a .blend file into Unity directly.
You should cool down! There are several steps that need to be done one after another. The FIRST one does not work! Why should the following ones be valid that build on it? Let’s get the first one, then the second one, … . Everything else is wasted energy and nerves!
Thanx for advice, i know it, i’ve posted here question, which is: how can i edit second mesh to make from it right convex collider. My blender was installed from an installer. Import worked fine and with .blend files too, this error i took firsttime. And i don’t know whats wrong with that mesh, and i need edit it at runtime of my unity project to make mesh correct. U said that your unity makes it right, can u check normals from second mesh, and imported second mesh please, and say differences. I think that the problem in normals, but i can’t make mesh work right to check this. thanx
If I import second.obj into Blender, save it in the Unity project folder, Unity has now issue to import it. The normals are correct in Unity and in Blender.
You get invalid meshes because you import them with obj format. Then you try to go on with that invalid data. Import your meshes with fbx, then you can be sure that you have valid data. If you have problems with a specific fbx file. Post the whole script and the fbx here.