Is it possible to import a 3D model into pyglet?

My friend and I are working on an openGL game written in python using the pyglet library. Now we have finished the map drawing code and reached the point where we need to import some models that will be displayed on the map. The piglet does not seem to support it, except for some old SVN code, apparently (I worked a bit with a few failures). Does anyone know a good python script / library that can import 3D models?

+3
source share
2 answers

Open Asset Import Library (Assimp) supports ~ 35 different 3D file formats.

It has python bindings in its repository, but I don’t know exactly how relevant and fully functional they are. However, numbness may be worth a try (although I am not impartial since I am one of its founders).

+3
source

There are 3D models and 3D models. Ease of import will depend on the complexity of the model and the format in which you have model data. The blender includes several python scripts for import to simulate data in a specific blender grid and export to other formats. You can look there for inspiration.

+2
source

Source: https://habr.com/ru/post/1780321/


All Articles