[FIX] DirectX Hang Issues

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:
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...

witmud

01-09-2007 10:42:38

I did that, but it doesn't work. :(
Latest ATI driver, DX9 games work well.

andy

02-09-2007 10:41:42

What problem are you having? - is it the same with all the demos?

Can you run the demos from a dos prompt - does this show anything 'interesting'. etc

Cheers
Andy

witmud

03-09-2007 09:47:01

I run from DOS prompt, it stopped at: "Parsing examples.program..."
all of demos have that when i choose DX9.

ATI X1600 and ATIX700
XP

andy

03-09-2007 11:57:41

Are you running Python-Ogre 1.0?
Does it work if you use the GL drivers instead of DirectX

Can you try setting your path to '.' and running a demo - ie
cd \pythonogre\demos\ogre
path='.'
\python25\python demo_smoke.py

And does it work if you delete the examples.programs from \pythonogre\demos\media\materials\scripts directory..

Thanks
Andy