Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

3d game with Python, starting from nothing [closed]

Tags:

c++

python

3d

So we want to program a 3d game for school, we can probably use blender for the 3d models, however we are totally clueless as to how to use them in a game/application.

Are there any recommended guides/documents we should read on general 3d game programming and perhaps python specific stuff.

We are also possibly considering programming it in C++ but for now I think it's easier to use Python as we can fully focus on the 3d mechanics that way.

like image 794
Not Available Avatar asked Nov 29 '10 12:11

Not Available


People also ask

Is it possible to make a 3D game with Python?

Is it possible to build a complex 3D game using only Python? Not really. Python just doesn't have the performance necessary. It can be useful as a scripting language if it were integrated into an engine, but even then LUA is a better choice.


2 Answers

Panda3D is a nice, powerful game engine which allows for scripting in Python. This looks like a good place to start.

If you seek something more low-level, there's still PyOpenGL or pygame.

like image 127
Kos Avatar answered Sep 25 '22 13:09

Kos


There's Pygame: A game framework for the Python language. If you need to know the basics for game development (engine, flow, ui, mathematics), this framework with all its examples will help you a lot. This won't take you by the hand and guide you step by step through game-development, but if you need a reference and a decent framework, than this is a good start.

There's also PyOpenGL: The official Python wrapper for OpenGL programming. Again with lots of programming examples in the field and tons of code snippets on how to use 3d models and the likes. Can be used together with PyGame.

But you should start by familiarizing yourself with some 3D basics. Look around at the GameDev.net site. Learn a thing or two about matrices (and perhaps quaternions). There are lots of beginners tutorials and references available to get you started.

edit: I almost forgot: there's also Panda3D with extensive scripting possibilities for Python. Maybe that'll offer a higher level of game development.

like image 40
Rob Vermeulen Avatar answered Sep 22 '22 13:09

Rob Vermeulen