1 | How to install the Visibility Work Package |
---|
2 | |
---|
3 | |
---|
4 | This readŽme explains the usage of the Ogre visibility example application (for online culling and preprocessed visibiltiy) |
---|
5 | |
---|
6 | |
---|
7 | 1) Requirements: |
---|
8 | |
---|
9 | WindowsXP |
---|
10 | svn |
---|
11 | |
---|
12 | |
---|
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) |
---|
16 | |
---|
17 | |
---|
18 | 3) Add following environment variables: |
---|
19 | |
---|
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 |
---|
22 | |
---|
23 | |
---|
24 | 4) Add the changes to the Ogre source |
---|
25 | |
---|
26 | copy the directories |
---|
27 | |
---|
28 | D:\svn\gametools\OGRE\trunk\ogre_dependencies |
---|
29 | D:\svn\gametools\OGRE\trunk\ogre_changes\Ogre1.2 |
---|
30 | |
---|
31 | into the ogrenew directory. |
---|
32 | |
---|
33 | |
---|
34 | 5) Copy the config files for the demo application (TerrainCulling.exe) into the Ogre release directory: |
---|
35 | |
---|
36 | D:\svn\gametools\OGRE\trunk\ogrenew\Samples\Common\bin\Release |
---|
37 | |
---|
38 | |
---|
39 | They are located in D:\svn\gametools\GTP\trunk\Lib\Vis\OnlineCullingCHC\scripts |
---|
40 | |
---|
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 |
---|
45 | |
---|
46 | |
---|
47 | 6) Set preprocessor flag GTP_VISIBILITY_MODIFIED_OGRE to the example projects you want to use |
---|
48 | |
---|
49 | |
---|
50 | 7) open scripts GTP\trunk\Lib\Vis\GtpVisibility.sln and build all |
---|
51 | |
---|
52 | |
---|
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 |
---|