1 | The OGRE integrated demos of different illumination module techniques can be found in this folder.
|
---|
2 |
|
---|
3 | Run
|
---|
4 | -----
|
---|
5 | The executables(Debug and Release) can be found in the \bin directory. The media files like textures, models, shaders etc.
|
---|
6 | used by the demos can be found in the \Media directory.
|
---|
7 | You don't need to compile the demos if you would only like to test the programs,
|
---|
8 | prebuilt executables are located in the bin/Release or Debug directory.
|
---|
9 |
|
---|
10 | Three demos are ready to run:
|
---|
11 | - GameToolsRaytraceDemo.exe : This demo demonstrates raytrace like effects such as reflections and refractions (using depth impostors)
|
---|
12 | and caustics. It also uses glow.
|
---|
13 | - GameToolsParticleDemo.exe : This demo demonstrates spherical billboards, a particle rendering technique that treates particles as spheres
|
---|
14 | (while still rendering them as billboards) and uses scene depth information to avoid billboard clipping artifacts.
|
---|
15 | - HPSDemo.exe : This Demo demonstrates hierarchical particle systems, which is a particle system made of particle system.
|
---|
16 | It first simulates a little particle system, stores its image to a texture and this image will be used as texture of one particle in the bigger particle system.
|
---|
17 | This way more particles can be simulated, and the "cheating" is usually not visible (as most of the natural phenomena shows self similarity).
|
---|
18 | The method also eliminates billboard clipping artifacts with a calculation similar to spherical billboards.
|
---|
19 | The demo also shows that this animated particle system can be shaded according to dynamic lighting conditions.
|
---|
20 |
|
---|
21 | (You can also find two more executables in this directory, but these demos are under development.)
|
---|
22 |
|
---|
23 | Usage
|
---|
24 | -----
|
---|
25 |
|
---|
26 | The control is the same for all demos:
|
---|
27 |
|
---|
28 | W - move camera forward
|
---|
29 | S - move camera back
|
---|
30 | A - slide camera left
|
---|
31 | D - slide camera right
|
---|
32 | mouse - rotate camera
|
---|
33 | F - show/hide FPS data
|
---|
34 | R - toggle wireframe on/off
|
---|
35 |
|
---|
36 |
|
---|
37 | Build
|
---|
38 | -----
|
---|
39 |
|
---|
40 | These demos use OGRE 1.2 with changes can be found in the svn (www.gametools.org/repos/gametools/OGRE/trunk/ogre_changes/Ogre1.2).
|
---|
41 | These OGRE changes should be copied to your OGRE 1.2 directory and OGRE should be rebuilt. It's important to set
|
---|
42 | the prepocessor definition : GAMETOOLS_ILLUMINATION_MODULE for the projects.
|
---|
43 | Also add SpriteSet.h SpriteSet.cpp SpriteParticleRenderer.h SpriteParticleRenderer.cpp to the OgreMain project.
|
---|
44 |
|
---|
45 | The demos also use a library called IllumModule and it's OGRE version OgreIllumModule.
|
---|
46 | These libraries can be found in the svn : www.gametools.org/repos/gametools/GTP/trunk/Lib/Illum/IllumModule
|
---|
47 | There is also a prepared solution file that containes these library projects and all the demo projects in folder:
|
---|
48 | www.gametools.org/repos/gametools/GTP/trunk/Lib/Illum/shared/scripts
|
---|
49 | The source code of the demos are located in:
|
---|
50 | www.gametools.org/repos/gametools/GTP/trunk/App/Demos/Illum/Ogre/src
|
---|
51 | So the following directory structure should be downloaded to successfully compile the demos and libraries:
|
---|
52 |
|
---|
53 | -|
|
---|
54 | |--App
|
---|
55 | | |
|
---|
56 | | |--Demos
|
---|
57 | | |
|
---|
58 | | |--Illum
|
---|
59 | | |
|
---|
60 | | |--Ogre
|
---|
61 | | |
|
---|
62 | | |--bin...
|
---|
63 | | |--Media...
|
---|
64 | | |--src...
|
---|
65 | |
|
---|
66 | |
|
---|
67 | |--Lib
|
---|
68 | |
|
---|
69 | |--Illum
|
---|
70 | |
|
---|
71 | |--IllumModule...
|
---|
72 | |--shared...
|
---|
73 |
|
---|
74 | An environment variable named OGRE_PATH should also be set to your OGRE root directory.
|
---|
75 | If you made the steps above the build of the libraries and demos should succeed without errors.
|
---|
76 | The demo executables will be copied to App/Demos/Illum/Ogre/bin/Debug or Release automatically.
|
---|
77 | ( Don't forget you should also copy the dll's from your Ogre directory (OGRE_PATH/Samples/Common/bin/Debug or Release) to these directory after building OGRE.) |
---|