_heinz_
19-01-2009 09:02:47
I'm using Numeric Animation on a REAL and get an OgreUnImplementedException when updating the AnimationState
The Error message:
My AnimableValue class looks like this:
It might be a problem or I'm missing something. Any suggestions?
btw.: AnyNumeric does not accept Vector4 as content which I think it should since AnimableValue supports it.
The Error message:
Traceback (most recent call last):
File "D:\progs\TortoiseTournament\src\StartTT.py", line 14, in <module>
app.go()
File ".\tt\TTMain.py", line 128, in go
self.globals.root.startRendering()
ogre.renderer.OGRE._ogre_exceptions_.OgreUnimplementedException: OGRE EXCEPTION(9:): in at c:\development\ogre\ogremain\include\OgreAnimable.h (line 146)
My AnimableValue class looks like this:
class PanelOverlayVValue(ogre.AnimableValue):
def __init__(self, object):
ogre.AnimableValue.__init__(self, self.REAL)
self.object = object
def setValue(self, v):
u = 0
u1, v1, u2, v2 = self.object.getUV(u,u,u,u)
self.object.setUV(u1, v, u2, v+0.25)
def applyDeltaValue(self, v):
u = 0
u1, v1, u2, v2 = self.object.getUV(u,u,u,u)
self.object.setUV(u1,v1+v,u2, v2+v)
def setCurrentStateAsBaseValue(self):
u = 0
u1, v1, u2, v2 = self.object.getUV(u,u,u,u)
ogre.AnimableValue.setAsBaseValue(self,v1)
It might be a problem or I'm missing something. Any suggestions?
btw.: AnyNumeric does not accept Vector4 as content which I think it should since AnimableValue supports it.