[902] | 1 | How to install the Visibility Work Package |
---|
| 2 | |
---|
| 3 | |
---|
[1246] | 4 | This readŽme explains the usage of the Ogre visibility example application (for online culling and preprocessed visibiltiy) |
---|
[902] | 5 | |
---|
| 6 | |
---|
[1246] | 7 | 1) Requirements: |
---|
[902] | 8 | |
---|
[944] | 9 | WindowsXP |
---|
| 10 | svn |
---|
[902] | 11 | |
---|
[1246] | 12 | |
---|
[944] | 13 | 2) check out gametools repository |
---|
| 14 | |
---|
| 15 | in the following it is assumed that your repository is located in d:\svn\gametools (not required, just replace your path) |
---|
[902] | 16 | |
---|
| 17 | |
---|
[1246] | 18 | 3) Add following environment variables: |
---|
[902] | 19 | |
---|
[944] | 20 | OGRE_PATH: points to directory where ogre.sln is located (i.e., the |
---|
| 21 | directory OGRE), e.g. D:\svn\gametools\OGRE\trunk\ogrenew |
---|
[902] | 22 | |
---|
| 23 | |
---|
[1246] | 24 | 4) Add the changes to the Ogre source |
---|
| 25 | |
---|
[944] | 26 | copy the directories |
---|
[902] | 27 | |
---|
[944] | 28 | D:\svn\gametools\OGRE\trunk\ogre_dependencies |
---|
| 29 | D:\svn\gametools\OGRE\trunk\ogre_changes\Ogre1.2 |
---|
[902] | 30 | |
---|
[944] | 31 | into the ogrenew directory. |
---|
[902] | 32 | |
---|
| 33 | |
---|
[1246] | 34 | 5) Copy the config files for the demo application (TerrainCulling.exe) into the Ogre release directory: |
---|
[902] | 35 | |
---|
[944] | 36 | D:\svn\gametools\OGRE\trunk\ogrenew\Samples\Common\bin\Release |
---|
[902] | 37 | |
---|
| 38 | |
---|
[1246] | 39 | They are located in D:\svn\gametools\GTP\trunk\Lib\Vis\OnlineCullingCHC\scripts |
---|
[902] | 40 | |
---|
[1246] | 41 | terrainCulling.cfg: defines the scene and the visibility environment |
---|
| 42 | terrain.cfg: defines the terrain structures for the terrain scene |
---|
| 43 | resources.cfg: adds models and texture definitions to the Ogre resource path |
---|
| 44 | Plugins.cfg: the Plugin_VisibilitySceneManager has to be registered there |
---|
[902] | 45 | |
---|
| 46 | |
---|
[1246] | 47 | 6) Set preprocessor flag GTP_VISIBILITY_MODIFIED_OGRE to the example projects you want to use |
---|
[902] | 48 | |
---|
| 49 | |
---|
[1246] | 50 | 7) open scripts GTP\trunk\Lib\Vis\GtpVisibility.sln and build all |
---|
[902] | 51 | |
---|
| 52 | |
---|
[1610] | 53 | 8) TestCullingTerrain is the test application |
---|
| 54 | |
---|
| 55 | take the path to the Ogre Release as working directory, e.g., |
---|
| 56 | D:\svn\gametools\OGRE\trunk\ogrenew\Samples\Common\bin\Release |
---|
| 57 | |
---|
| 58 | start TestCullingTerrain |
---|