Rhodium
12-10-2008 17:48:17
I'm having trouble with my very first program in PythonOgre. Here's what happened:
I installed the pre-compiled version of PythonOgre.
I should already have OpenGL installed (I've used it in programs before), but I had to install the latest version of DirectX (DXSDK_Aug08.exe) before any of the demos worked. Now it seems that every demo works perfectly. In the "OGRE Engine Rendering Setup" that appears every time I run a demo, it doesn't matter whether I use the OpenGL or DirectX renderers.
I went to http://wiki.python-ogre.org/index.php/Basic_Tutorial_1 and copied the following code:
I saved it as C:\PythonOgre\demos\basic_01.py. The wiki tutorial says I need three files: In the same folder were the required files plugins.cfg and resources.cfg, BUT THERE IS NO FILE MEDIA.CFG ANYWHERE ON MY COMPUTER.
When I run basic_01.py out of IDLE I get the following error:
I don't even know where to begin fixing this problem. Again, this is my first PythonOgre program so I don't know what any of the code means yet (although I know a bit about Python). This problem still occurs even if in the last demo I ran, I chose to use DirectX and not OpenGL. There exists a file C:\PythonOgre\plugins\RenderSystem_GL.dll.
UPDATE:
It now works when I reinstalled both Python and PythonOgre, put my program inside the folder C:\PythonOgre\demos\OgreNewt, and copied the file SampleFramework.py into that folder as well. Phew!
I installed the pre-compiled version of PythonOgre.
I should already have OpenGL installed (I've used it in programs before), but I had to install the latest version of DirectX (DXSDK_Aug08.exe) before any of the demos worked. Now it seems that every demo works perfectly. In the "OGRE Engine Rendering Setup" that appears every time I run a demo, it doesn't matter whether I use the OpenGL or DirectX renderers.
I went to http://wiki.python-ogre.org/index.php/Basic_Tutorial_1 and copied the following code:
import ogre.renderer.OGRE as ogre
import SampleFramework as sf
class TutorialApplication(sf.Application):
def _createScene(self):
pass
if __name__ == '__main__':
ta = TutorialApplication()
ta.go()
I saved it as C:\PythonOgre\demos\basic_01.py. The wiki tutorial says I need three files: In the same folder were the required files plugins.cfg and resources.cfg, BUT THERE IS NO FILE MEDIA.CFG ANYWHERE ON MY COMPUTER.
When I run basic_01.py out of IDLE I get the following error:
Traceback (most recent call last):
File "C:\PythonOgre\demos\basic_01.py", line 11, in <module>
ta.go()
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 66, in go
if not self._setUp():
File "C:\Python25\lib\site-packages\ogre\renderer\OGRE\sf_OIS.py", line 90, in _setUp
self.root = ogre.Root(getPluginPath())
OgreInternalErrorException: OGRE EXCEPTION(7:): Could not load dynamic library ../../plugins\RenderSystem_GL.dll. System Error: The specified module could not be found.
in DynLib::load at ..\src\OgreDynLib.cpp (line 80)
I don't even know where to begin fixing this problem. Again, this is my first PythonOgre program so I don't know what any of the code means yet (although I know a bit about Python). This problem still occurs even if in the last demo I ran, I chose to use DirectX and not OpenGL. There exists a file C:\PythonOgre\plugins\RenderSystem_GL.dll.
UPDATE:
It now works when I reinstalled both Python and PythonOgre, put my program inside the folder C:\PythonOgre\demos\OgreNewt, and copied the file SampleFramework.py into that folder as well. Phew!