History: Installation of PyOgre
Source of version: 3 (current)
Copy to clipboard
{DIV(class="achtung")}__IMPORTANT:__ This code is meant to be used with old releases of Ogre.
For Ogre 1.12, rather use {CODE(theme="default")}pip install ogre-python{CODE}{DIV}
{maketoc}
{maketoc}
!!!Python
You should download __Python 2.4__ or later. Install it at the default place ''C:\Python24''.
* [http://www.python.org/download/|Python 2.4]
!!!Python-Ogre Installation
# Download the Python-Ogre Windows binary packages from [http://python-ogre.python-hosting.com/|here]
# Run ''__python setup.py install__'' from the root of the Python-Ogre directory (where ever you unpacked it)
# Change to the demos/xxx directory (depending on what you want to run)
# 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.
* [http://psyco.sourceforge.net/|Psyco]
!!!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.
* [https://developer.berlios.de/projects/pyogre/|PyOgre (Media + PyOgre)]
!!!!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.
* [http://prdownload.berlios.de/pyogre/demo_media_1.2.0.zip|Media for PyOgre 1.2]
(see this [http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1413|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.