SuperElectric
02-02-2006 07:53:20
I'm writing my first pyogre app, drawing what I ndeed from SampleFramework.Application. For the moment, I'm using SampleFramework.FrameListener as-is, but my code barfs when it tries to show the frame-per-second overlay:
I can't find anywhere in SampleFramework.py where it looks like an overlay by the name of "Core/DebugOverlay" is created. Is it some built-in thing? In which case, why can't my code find it? Also, are ogre Exceptions not swigged yet, or is this a problem local to my installation?
Stuff I did that might be bad:
Viewport for camera 'RunnViewerCamera', actual dimensions L: 0 T: 0 W: 800 H: 600
Traceback (most recent call last):
File "runn.py", line 447, in ?
rmain = RunnMain()
File "runn.py", line 410, in __init__
self.rviewer = RunnViewer(self.rworld)
File "runn.py", line 47, in __init__
self.frameListener = FrameListener(self.renderWindow, self.camera)
File "runn.py", line 160, in __init__
self.showDebugOverlay(True)
File "runn.py", line 203, in showDebugOverlay
raise ogre.Exception(111, "Could not find overlay Core/DebugOverlay", "SampleFramework.py")
File "/usr/lib/python2.4/site-packages/pyogre/ogre.py", line 143, in __init__
_swig_setattr(self, Exception, 'this', _ogre.new_Exception(*args))
NotImplementedError: No matching function for overloaded 'new_Exception'
*-*-* OGRE Shutdown
I can't find anywhere in SampleFramework.py where it looks like an overlay by the name of "Core/DebugOverlay" is created. Is it some built-in thing? In which case, why can't my code find it? Also, are ogre Exceptions not swigged yet, or is this a problem local to my installation?
Stuff I did that might be bad:
- * The media folder is at ./media relative to the source code, not ../media. I've changed the entries in resources.cfg to reflect this.
* resources.cfg and plugins.cfg are in the directory ./settings relative to the source code. The code specifies them by relative path, and they seem to be loading.[/list:u]
Even if somebody could just point me to where the "Core/DebugOverlay" is named and registered with the OverlayManager, that'd be a big help.
Thanks,
-- Matt