Skip to content
Advertisement

Why can’t I load a .OBJ file into Python Ursina?

I am using the python Ursina engine. I want to import a .OBJ file, but it never works, yet no errors are raised. I have tried:

JavaScript

I have also tried it without the .obj ending. Any help?

I have now tried:

JavaScript

I get the error:

JavaScript

Advertisement

Answer

The issue is triangulation. The models faces must only be triangles. You can do this in Blender or other 3d software of that such type. I got this information thanks to Pokepetter on Github, at this issue.

For example, consider using Blender, or other software similar, to create your models and use the triangulate modifier on meshes to make them compatible with Ursina Engine.

Advertisement