skullmunky
24-10-2008 22:23:15
hi,
I'm trying to use one the Uniform Focused or LiSPM shadow cameras, but I'm not sure I'm doing it right. I'm basing my code off the Shadows demo.
I tried two different things. First,
that gives me this error:
It also tried just doing this:
and it was fine with that, but I got another error a little later on:
Which is in the Framework code that draws the debug gui.
If I take that out I still get the same AttributeError at any line that involves self.RenderWindow(), such as
I really love how those other shadow cameras look ... any idea what I'm doing wrong?
I'm trying to use one the Uniform Focused or LiSPM shadow cameras, but I'm not sure I'm doing it right. I'm basing my code off the Shadows demo.
I tried two different things. First,
self.focused = Ogre.FocusedShadowCameraSetup()
self.mCurrentShadowCameraSetup=Ogre.ShadowCameraSetup(self.focused)
self.sceneManager.setShadowCameraSetup(self.mCurrentShadowCameraSetup)
that gives me this error:
Boost.Python.ArgumentError: Python argument types in
ShadowCameraSetup.__init__(ShadowCameraSetup, FocusedShadowCameraSetup)
did not match C++ signature:
__init__(_object*)
It also tried just doing this:
focusedSetup = Ogre.FocusedShadowCameraSetup()
self.sceneManager.setShadowCameraSetup(focusedSetup)
and it was fine with that, but I got another error a little later on:
self.setGuiCaption('Core/AverageFps', 'Average FPS: %f' % statistics.getAverageFPS())
AttributeError: 'wrapper_descriptor' object has no attribute 'getShadowCamera'
Which is in the Framework code that draws the debug gui.
If I take that out I still get the same AttributeError at any line that involves self.RenderWindow(), such as
def frameStarted(self,frameEvent):
if (self.renderWindow.isClosed()):
return False
I really love how those other shadow cameras look ... any idea what I'm doing wrong?