Python integration is now complete – programs using Ogre can now be written entirely in Python, making testing quick and easy and allowing you to tweak things on the fly. In addition, you can register ‘listeners’ written in Python with the Ogre engine and it will call them back e.g. at the start and end of every frame so you can script events using Python. I will develop this further so all events that Ogre raises will be routed to Python if required. In the future I intend to allow the Python runtime to be embedded in the Ogre engine so that you can run a completely compiled program but also run interpreted scripts (e.g. scripts stored in level data). At the moment you either use compiled code for everything or drive everything from a Python console – I’d like to give people the flexibility to combine them if they want. However, I now want to spend a little more time working on the core engine features – I will return to embedded Python later on.

Exit mobile version