andy
12-06-2007 14:32:23
There have been a couple of people experiencing hang/crash issues when using the DirectX9 driver and Python-Ogre.
An initial fix was to remove media/materials/scripts/examples.program, however we seem to have found the real cause.
The problem is due to an incompatible version of cg.dll that is already installed on the PC being used by Python-Ogre. The fix is very simple.
Edit python25/lib/site-packages/ogre/renderer/OGRE/__init__.py
Change this:
To this:
Thanks to Pelle for finding the solution...
An initial fix was to remove media/materials/scripts/examples.program, however we seem to have found the real cause.
The problem is due to an incompatible version of cg.dll that is already installed on the PC being used by Python-Ogre. The fix is very simple.
Edit python25/lib/site-packages/ogre/renderer/OGRE/__init__.py
Change this:
if sys.platform == 'win32':
os.environ['PATH'] += ';' + __path__[0]
To this:
if sys.platform == 'win32':
os.environ['PATH'] = __path__[0] +';' + os.environ['PATH']
Thanks to Pelle for finding the solution...