Debian Codegraph @

examples/viewport_and_scenes/occlusion_culling/README.md

raw symbols SCIP
1 # Occlusion Culling Demo
2
3 Demo of occlusion culling: https://castle-engine.io/occlusion_culling .
4
5 Just move around and notice in status that when occlusion culling is _on_, we can eliminate most shapes from being displayed, instead we draw a trivial _"occlusion query box"_ just to detect their visibility next frame.
6
7 Note that controls of this demo are deliberately useful also on mobile (drag on screen to rotate, use the walk control in bottom-right corner to move).
8
9 ![Screenshot](screenshot.png)
10
11 ![Screenshot from editor](screenshot_editor.png)
12
13 ![Screenshot running on Android](screenshot_android.png)
14
15 Using [Castle Game Engine](https://castle-engine.io/).
16
17 ## Building
18
19 Compile by:
20
21 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
22
23 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
24
25 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `occlusion_culling_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
26
27 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `occlusion_culling_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.