M
M
machno2015-01-31 20:21:36
Python
machno, 2015-01-31 20:21:36

How to display a 3D model?

There is Windows, Python 2.7, OpenGL and Blender.
The question arises, how to display a model made in a blender with a python?
About the existence of graph. I know engines, but I would like to write my own. I opened the .blend file with a text editor, found that it is binary (and not text at all). So how is it a miracle to parse? Or maybe you don't need a .blend file?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Bykadorov, 2015-01-31
@hudson

Start with this: habrahabr.ru/post/248153
There are examples in C ++, but since the principle is explained there, porting this engine to python will not be a problem)

M
machno, 2015-01-31
@machno

I suddenly discovered that blender can export to interesting formats

D
Don Kaban, 2015-02-01
@donkaban

1. To "display" you somehow need to bind GAPI (OpenGL, DX...) to python
pyOpenGL , for example
2. I don't remember what I did in python example for demonstration - https://github.com/donkaban/ 3d-i-free , look, the code is a little and it's stupid, suddenly it will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question