The following are the results of my efforts:
http://lakin.weckers.net/index_ogre_python.html
In general, I've really liked working with pyplusplus. I've probably spent 20-30 hours working on these bindings, and they are very close to being equivalent to the PyOgre bindings (when I last used them). I assume the current PyOgre bindings are further along now. Most notably pyplusplus would give us many benefits.
- Rule based approach which eases maintenance. Example: python properties for these bindings have been implemented in such a way that future Ogre Accessors will automatically have properties added if possible.
- pyplusplus already does most of the bindings automatically, and provides hooks into the process to specialize the bindings. In general, C++ code is avoided as pyplusplus is already flexible enough that you can simply apply options to certain types of declarations.
- to facilitate defining these rules, pyplusplus provides an amazing selection interface allows for simple specification of where and when to apply certain techniques.
- Boost.Python and pyplusplus provide a nice way to wrap methods which return SharedPtr's, ptrs, and references such that a uniform python interface is available for them all.
- Many of the pyogre bindings already run (with some small changes)
- However, There is still much left to do,
I personally think that pyplusplus bindings are the way to go for pyogre in it's future, and I will continue pursuing them, as, currently, they are the only way for me to use Ogre with Python with my setup. In my opinion pyplusplus really accellerates the wrapping process and allows you to setup robust rules that will continue to work in the future, which results in much less maintenance as the Ogre API grows and changes. Using pyplusplus will allow us to quickly and easily bind new Ogre Addons as they crop up. Additionally, we will be able to do this in a uniform way which takes advantage of the same rules already in use in the Ogre bindings.
Please, ask questions, post comments and most of all try out the bindings if you get the chance. I haven't had the opportunity to compile them in Windows, but pyplusplus does work in windows. It would be great if someone submitted a patch to the build system to get these bindings building in windows.





