29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Horde3D/Samples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(../Bindings/C++)
2 | include_directories(../../Extensions/Overlays/Bindings/C++)
3 |
4 | add_subdirectory(Framework)
5 | add_subdirectory(Chicago)
6 | add_subdirectory(Knight)
7 | add_subdirectory(ParticleVortex)
8 | add_subdirectory(Tessellator)
9 |
10 | IF(HORDE3D_USE_GLFW)
11 | include_directories(${GLFW_INCLUDE_DIR})
12 | ENDIF(HORDE3D_USE_GLFW)
13 |
14 | IF (HORDE3D_USE_SDL)
15 | include_directories(${SDL2_INCLUDE_DIR})
16 | ENDIF(HORDE3D_USE_SDL)
--------------------------------------------------------------------------------
/Horde3D/Samples/Chicago/README.md:
--------------------------------------------------------------------------------
1 | # Chicago
2 |
3 | This sample uses a simple crowd simulation to show how Horde3D can
4 | be used to render environments and a plenty of animated models.
5 | The demo supports forward and deferred rendering which can be
6 | selected by modifying the pipeline_Chicago.xml file.
7 |
8 | ## Input
9 |
10 | * Use WASD to move and the mouse to look around.
11 | * Hold down LSHIFT to move faster.
12 | * Space freezes the scene, hitting space two times freezes the camera as well.
13 | * F1 sets fullscreen mode.
14 | * F3 switches between forward, hdr and deferred shading.
15 | * F6 toggles frame stats display.
16 | * F7 toggles debug view.
17 | * F8 toggles wireframe mode.
18 | * ESC quits the application.
19 |
20 | ## Notes on content
21 |
22 | The character model was created by Sirda from TurboSquid.
23 | Some of the textures are taken from the ATI Radeon SDK and are thus
24 | copyrighted by ATI Technologies, Inc.
25 |
--------------------------------------------------------------------------------
/Horde3D/Samples/Chicago/app.h:
--------------------------------------------------------------------------------
1 | // *************************************************************************************************
2 | //
3 | // Horde3D
4 | // Next-Generation Graphics Engine
5 | //
6 | // Sample Application
7 | // --------------------------------------
8 | // Copyright (C) 2006-2021 Nicolas Schulz and Horde3D team
9 | //
10 | //
11 | // This sample source file is not covered by the EPL as the rest of the SDK
12 | // and may be used without any restrictions. However, the EPL's disclaimer of
13 | // warranty and liability shall be in effect for this file.
14 | //
15 | // *************************************************************************************************
16 |
17 | #ifndef _app_H_
18 | #define _app_H_
19 |
20 | #include "../Framework/sampleapp.h"
21 |
22 | class CrowdSim;
23 |
24 | class ChicagoSample : public SampleApplication
25 | {
26 | public:
27 | ChicagoSample( int argc, char** argv );
28 |
29 | protected:
30 | bool initResources();
31 | void releaseResources();
32 |
33 | void update();
34 |
35 | private:
36 | CrowdSim *_crowdSim;
37 | };
38 |
39 | #endif // _app_H_
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Horde3D/Samples/Chicago/crowd.h:
--------------------------------------------------------------------------------
1 | // *************************************************************************************************
2 | //
3 | // Horde3D
4 | // Next-Generation Graphics Engine
5 | //
6 | // Sample Application
7 | // --------------------------------------
8 | // Copyright (C) 2006-2021 Nicolas Schulz and Horde3D team
9 | //
10 | //
11 | // This sample source file is not covered by the EPL as the rest of the SDK
12 | // and may be used without any restrictions. However, the EPL's disclaimer of
13 | // warranty and liability shall be in effect for this file.
14 | //
15 | // *************************************************************************************************
16 |
17 | #ifndef _crowd_H_
18 | #define _crowd_H_
19 |
20 | #include "Horde3D.h"
21 | #include