Installation of PyOgre        
IMPORTANT: This code is meant to be used with old releases of Ogre. For Ogre 1.12, rather use
pip install ogre-python



Table of contents

    Python

    You should download Python 2.4 or later. Install it at the default place C:\Python24.

    Python-Ogre Installation

    1. Download the Python-Ogre Windows binary packages from here
    2. Run python setup.py install from the root of the Python-Ogre directory (where ever you unpacked it)
    3. Change to the demos/xxx directory (depending on what you want to run)
    4. Run python demo_xxx.py

    Psyco

    Psyco boosts the python bindings and python code. If you seriously want to build games, you should use free boosters anyway.

    PyOgre and PyOgreMedia

    Download the PyOgre binary package and install it to C:\Python24\lib\site-packages\pyogre (should be done by installer).
    Unzip the media package to the demo files in C:\Python24\pyogre. You will need the media files there, since pyOgre uses relative file positions. If the programs don't start as expected, open up resources.cfg in a text editor and check the paths.

    PyOgre 1.2

    PyOgre 1.2 is still beeing worked on, but Istari is mainting an almost up to date prebuilt binary of the current SVN revision.


    (see this thread)

    Overview - what you will find where ?

    C:\Python24\pyogre\demos

    • python example files (CameraTrackingDemo.py, CelShadingDemo.py,LightingDemo.py, sampleframework.py etc.)
    • media subfolder with meshes, textures etc. (download media folder seperately; needed to get examples running)

    C:\Python24\lib\site-packages\pyogre

    • pyOgre executables, dll's, config files etc. (being imported by import statements in the header of your application)

    Ogre.py is binding file

    The file C:\Python24\Lib\site-packages\pyogre\ogre.py holds all bindings to the Ogre engine (i.e. dll files in C:\Python24\Lib\site-packages\pyogre).

    If you receive errors about DLL Load failed when you try to run the demos / when importing the PyOgre libraries, you might need to install vcredist_x86, available at http://faux.warwickcompsoc.co.uk/vcredist/ . This contains all the shared runtime libraries from vs2005.