SimpleRenderable has no constructor...


06-06-2006 15:02:25

I got PyOgre 1.2.0 compiled from SVN with Visual C++ Express 2005 without too many problems. There were quite a few user32.lib missing, and one or two gdi32.lib. I also had to run swig from the command like as the pre-build step failed from the IDE...

Anyway, the problem I'm having is that I can't create an ogre.SimpleRenderable object! The constructor throws an exception:

def __init__(self): raise AttributeError, "No constructor defined"

I presume this is a bug, as I don't see any other way of creating such an object. Then again, I'm not quite an expert with Ogre yet!

Any insights?



06-06-2006 16:46:35

The SceneManager has a function called "createManualObject" that sounds like what I need. How does a SimpleRenderable differ?


07-06-2006 01:56:17

SimpleRenderable is on my TODO list. For now though I'm trying to get exceptions to work without crashing Python.


07-06-2006 07:50:09

Ok, no problem. Do you collect these issues in the bug tracker or something?

I have the whole thing compiled and running smoothely, so if there's anything I can do, let me know!



07-06-2006 13:14:43

For now there is a file called pyOgreTODO in the repository, but there is also a tracker on the berlios site.

If you are up to the task, feel free to fix this and submit a patch to the berlios site.