In my 3D object; I have several boxes like;

enter image description here But if I try to load and display obj and mtl file with three.js, 5-sided or more-sided objects not loaded properly ( like below ) . Then; I discover that three.js supports only 3-sided or 4-sided faces.

Is there any solution to divide these faces in object file and load them ?

enter image description here

有帮助吗?

解决方案

You need to triangulate your model before exporting it. Most 3D editors out there have this option. Some editors have that as option in the OBJ exporter options. If that's not an option you can make a copy/backup of the model, triangulate that, export then delete/hide.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top