| 1 | # Render 3D scene view to image |
| 2 | |
| 3 | Use `Window.Container.RenderControl` to render various scenes to `TDrawableImage`, which you can then save as regular image. |
| 4 | |
| 5 | Using [Castle Game Engine](https://castle-engine.io/). |
| 6 | |
| 7 | ## Building |
| 8 | |
| 9 | Compile by: |
| 10 | |
| 11 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 12 | |
| 13 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 14 | |
| 15 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `build_3d_object_by_code_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |