Megaton
24-10-2007 22:56:08
I'm having a strange problem with NxOgre.
I'm trying build a simple application just to learn the basics and I need to perform rotation on two axis'. I should be able to do this with Quaternions, by just multiplying them, correct?
Every time I do this, Python crashes. I tried to narrow the problem down and discovered that the Quaternion multiplication crashes Python if I have NxOgre imported.
The program below runs and 'rot' is the resulting Quaternion of both rotations.
The problem is, when I import NxOgre and run the same program Python crashes. Here is the program for comparison:
Can anyone else confirm the same problem? I'm using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32 and installed PythonOgre_1.1.exe
The error I get is an Unhandled exception in python.exe: Stack overflow
I can run the other python nxogre demos just fine and my program (a pinball simulator) was working correctly up to the point where I tried to perform Quaternion multiplication.
I'm trying build a simple application just to learn the basics and I need to perform rotation on two axis'. I should be able to do this with Quaternions, by just multiplying them, correct?
Every time I do this, Python crashes. I tried to narrow the problem down and discovered that the Quaternion multiplication crashes Python if I have NxOgre imported.
The program below runs and 'rot' is the resulting Quaternion of both rotations.
import ogre.renderer.OGRE as ogre
import ogre.physics.PhysX as PhysX
q1 = ogre.Quaternion(ogre.Degree(15), ogre.Vector3.UNIT_Y)
q2 = ogre.Quaternion(ogre.Degree(15), ogre.Vector3.UNIT_X)
rot = q1 * q2
print rot
The problem is, when I import NxOgre and run the same program Python crashes. Here is the program for comparison:
import ogre.renderer.OGRE as ogre
import ogre.physics.PhysX as PhysX
import ogre.physics.NxOgre as nxogre
q1 = ogre.Quaternion(ogre.Degree(15), ogre.Vector3.UNIT_Y)
q2 = ogre.Quaternion(ogre.Degree(15), ogre.Vector3.UNIT_X)
rot = q1 * q2
print rot
Can anyone else confirm the same problem? I'm using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32 and installed PythonOgre_1.1.exe
The error I get is an Unhandled exception in python.exe: Stack overflow
I can run the other python nxogre demos just fine and my program (a pinball simulator) was working correctly up to the point where I tried to perform Quaternion multiplication.