I have to create a simplistic 3D demo.
Having a model in Blender, I will write a python program that will:
- build a scene, set camera, draw an infinite plane, fill it with texture
- load a model (exported from Blender) and position the object
- handle key presses to produce the object moves
I need a link to descriptive tutorial(s) covering these 3 points:
- creating a 3d scene from Python program
- loading model from the file (of course I’m fine with any format, just letting you know that the source is created in Blender)
- catching key presses
No need in help on physics, or designing, only the principal programmatic part.
Thanks!
Not much to say: OpenGL / Glut
Also, take a look at the OpenGL red book. You can read it online.
Samples are written in C, but can be easily ported to python, since function calls are the same.
As for loading the blender model, take a look at this:
Loading wavefront obj files with python
In a nutshell look for: