Debian Codegraph @

examples/viewport_and_scenes/billboards_blending_in_3d/README.md

raw symbols SCIP
1 # Demo of billboards and blending
2
3 Demo that you can use
4
5 - Spine models (or more general: models with very thin layers, that have to be correctly sorted by blending).
6
7 - in 3D, with `TCastleBillboard`
8
9 - and they will be correctly sorted for blending, i.e. their layers will look OK.
10
11 When `TCastleBillboard` have `TCastleBillboard.AxisORotation` equal zero, then `BlendingSort = sort3D` is good.
12
13 When `TCastleBillboard` have `TCastleBillboard.AxisORotation` all equal +Y, then `BlendingSort = sort3DVerticalBillboards` is good.
14
15 - They will also be correctly displayed even when viewed from multiple viewports.
16
17 - They will also be correctly displayed using `TCastleTransformReference`.
18
19 - They will also be correctly displayed when `TCastleViewport.DynamicBatching` is in effect.
20
21 See [API reference](https://castle-engine.io/apidoc/html/) of
22
23 - [TCastleBillboard.AxisOfRotation](https://castle-engine.io/apidoc/html/CastleBehaviors.TCastleBillboard.html#AxisOfRotation)
24 - [TCastleBillboard.MatchCameraDirection](https://castle-engine.io/apidoc/html/CastleBehaviors.TCastleBillboard.html#MatchCameraDirection) (note: `MatchCameraDirection = true` is necessary for blending sorting to work OK)
25 - [sort3D](https://castle-engine.io/apidoc/html/CastleRenderOptions.html#sort3D)
26 - [sort3DVerticalBillboards](https://castle-engine.io/apidoc/html/CastleRenderOptions.html#sort3DVerticalBillboards)
27
28 ![Screenshot](screenshot.png)
29
30 Using [Castle Game Engine](https://castle-engine.io/).
31
32 ## Building
33
34 Compile by:
35
36 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
37
38 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
39
40 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `billboards_blending_in_3d_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
41
42 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `billboards_blending_in_3d_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.