NxOgre import problem

Gurrier

12-04-2010 14:00:02

Hi,

I'm a c++, c# programmer that is doing his first project with Python. I used ogre3d in the past but it's the first time working with Python-Ogre.

Python version: 2.6
Python-ogre version: 1.7RC1
PhysX Version: PhysX_2.8.3.21

In my project I would like to use PhysX since I have used it before in C++ projects. But in Python-ogre when I want to import NxOgre it gave me this error
import ogre.physics.NxOgre as nxogre
File "C:\Python26\lib\site-packages\ogre\physics\NxOgre\__init__.py", line 4, in <module>
from _nxogre_ import *
ImportError: No module named _nxogre_


So I had a look if the file wasn't really there.(C:\Python26\Lib\site-packages\ogre\physics\NxOgre) The only file that was there was the __init__.py
I then downloaded Python-ogre 1.6, looked into the NXogre folder found _nxogre_.pyd. Copyed that file to C:\Python26\Lib\site-packages\ogre\physics\NxOgre
Runned the program I got this error

import ogre.physics.NxOgre as nxogre
File "C:\Python26\lib\site-packages\ogre\physics\NxOgre\__init__.py", line 4, in <module>
from _nxogre_ import *
ImportError: DLL load failed: The specified module could not be found.


So i downloaded NxOgre, builded it, copyed all the files that where created in de NXOGRE/sdk's folder into C:\Python26\Lib\site-packages\ogre\physics\NxOgre.
and got the same error again

import ogre.physics.NxOgre as nxogre
File "C:\Python26\lib\site-packages\ogre\physics\NxOgre\__init__.py", line 4, in <module>
from _nxogre_ import *
ImportError: DLL load failed: The specified module could not be found.


atm in the folder C:\Python26\Lib\site-packages\ogre\physics\NxOgre are the files
__init__.py
_nxogre_.pyd
NxOgre.dll
NxOgre.lib
NxOgre_Debug.dll
NxOgre_Debug.lib
NxOgre.h
and a lot more header files all starting with NX
Also a folder called bml

Does anyone know whats happening here? Or what DLL the program is looking for?

Thanks Simon

andy

12-04-2010 23:19:31

Sorry but NxOgre is not a currently supported module...

If you are building from source then you should be fine using the core PhysX module (it should generate and build OK) however NxOgre has always been under such active change that I simply couldn't keep up -- and PhysX seemed to be actively supported only on Windows and I'm trying to be as cross platform as possible..

My suggestion is to use Bullet for your physics work.

Andy

Gurrier

13-04-2010 08:59:33

Ah I see, that exlains a lot :)

Thank you for your held, I'll look into Bullet then.