Siccity / GLTFUtility

Simple GLTF importer for Unity
MIT License
989 stars 218 forks source link

some parts are importing with vertices and no triangles. #41

Open tuseroni opened 4 years ago

tuseroni commented 4 years ago

the gltf imports into blender (in blender the parts are transparent for some reason, but all the faces are there, maybe it's doing something to guess the faces?) but when i try and import it to unity i only get a few of the meshes, the gltf was exported from three.js by means of the GTLFExporter, and i will attach it here. scene (8).zip

you can see the pegs import just fine, but the sides and the shelves are no where to be seen (one of the sides is mesh20, can tell by all the vertices)

thing is, i have no idea where the problem IS, is it the export or the import, i can say that blender is able to export and unity's 3d viewer can view it...so...i suspect it's with the import.

Siccity commented 4 years ago

Can you attach a screenshot of what it's supposed to look like?

alfiolocastro commented 4 years ago

same here for me, imported model has vertices but no triangles. The GLBs are being correctly shown by visualizers but no mesh triangles with the importer

e.g. this imported .glb EXAMPLE

alfiolocastro commented 4 years ago

In case it helps out: I think the bug is caused by underlaying STL embedded files that do not contain any index list primitive.indices.HasValue in GLTFMesh.cs is always false.

udvaritibor commented 3 years ago

I export the gltf from ThreeJS via GLTFExporter as well, but until now, everything worked well. But something changed on the server side, and now there are no indices, thus no faces. But only 1 type of object has this issue.

@pap3rinik @tuseroni @Siccity Anyone got any new clues about this issue?