1 | Overview
|
---|
2 | --------
|
---|
3 |
|
---|
4 | This demo shows the integration of the LodStrips multiresolution algorithm
|
---|
5 | into the Shark3D game engine. The demo features a multiresolution object
|
---|
6 | whose level of deail decreases as well as the object moves further away from
|
---|
7 | the observer.
|
---|
8 |
|
---|
9 | Please, read the following to know how to build/run the demo.
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 | Compiling the modules
|
---|
14 | ---------------------
|
---|
15 |
|
---|
16 | In order to run the demo, first the new modules, which implement a mesh file
|
---|
17 | loader and a new renderer, must be compiled. This distribution includes the
|
---|
18 | precompiled modules so that you do not need to build them. However, you can
|
---|
19 | compile them with Visual studio NET 7.1 using the solution file located in:
|
---|
20 |
|
---|
21 | .\build\win32_vc7x1\SharkGeometryModules.sln
|
---|
22 |
|
---|
23 | As the Shark3D SDK is not included in this distribution, you need to have it
|
---|
24 | properly installed in your system. To compile the solution you must configure
|
---|
25 | it so that it can find the Shark3D SDK files. For each project you must:
|
---|
26 | - Configure the includes path (using the properties dialog for each project)
|
---|
27 | - Configure the libraries path (search for CLODD3D9_LIBDIR in the source code)
|
---|
28 |
|
---|
29 | Once compiled, resulting DLLs are located in the bin\ directory.
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 | Building the Demo
|
---|
34 | -----------------
|
---|
35 |
|
---|
36 | Before you can run the demo, it must be built. To build it you simply must
|
---|
37 | execute the program:
|
---|
38 |
|
---|
39 | .\clod_head_demo_win32\win32_editor.bat
|
---|
40 |
|
---|
41 | and push the 'Make' button. This process takes a while. When the process ends,
|
---|
42 | you can run the demo using the 'Run' button.
|
---|
43 |
|
---|
44 |
|
---|
45 | Running the Demo
|
---|
46 | ----------------
|
---|
47 | Then the demo is finally running (see previous section), you will see a head
|
---|
48 | floating in the air. That head features a multiresolution object whose level
|
---|
49 | of detail changes as well as the camera moves away from it. To be able to move
|
---|
50 | the camera, enter in GOD mode (press key 'g') and use the arrow keys. Use the
|
---|
51 | mouse while pressing the left button to change the viewing direction.
|
---|
52 | When it is far from the viewer, the object decreases its level of detail up to
|
---|
53 | a 1%. You can inspect the mesh to see the 'lodding' entering in wireframe mode
|
---|
54 | (key 'w').
|
---|
55 |
|
---|
56 |
|
---|