
Originally Posted by
edyzmedieval
Mount&Blade is one of the best games to start off with exploring Python. It's just a simple 54MB game, made with Python modules and scripts and some animations and graphics in Blender.
Check this out:
www.python.org
I know C++ well, but not enough to do graphics in it. So, guess Python and Blender are the best things to use. Blender is a sort of open-source 3DS Max 8, which from the screenshots, it's very cool.

wrong, m&b isn't written in python at all, it just supports it to add some gamecontents as far as I know (through it's python based module system). it's pretty much like how rtw modding works (with scripting and "stats reading"), just that m&b is more modding friendly. at best you could use a graphics engine with an interface too python (that is: the engine is purely written in c++, but you could access functions in it from python, sending arguments etc). python is mostly used putting pieces from other languages together, as it's just a scripting language. everything in python is a c structure (an early version of the concept class), even integers, functions and floats are c structures.
so how it would work, using a low-level language coded c++ engine from a scripting language could be in pseudo-pseudo-code like this:
Code:
engine = mygraphicsengine()
scene = engine.makescene() (or something)
warrior1 = mesh('warriormodel1.brf', 'warriortexture.dds', ...)
warrior2 = mesh('warriormodel2.brf', 'warriortexture.dds', ...)
scene.addmesh(warrior1, some location)
scene.addmesh(warrior2, some location)
start()
this would be about how it would work from c++ too, but that would be faster. making the AI would require very CPU-demanding algorithms, which with python loops would be... very slow.
best place to start with python is in my opinion with PyGame, though that wouldn't be 3d and the game you aim at. I just recently posted in a similar thread the link to ogre3d
Bookmarks