Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
1.0.0:skybox [2023/02/22 14:57] – created - external edit 127.0.0.1 | 1.0.0:skybox [2023/02/23 12:54] (current) – [Procedural] admin | ||
---|---|---|---|
Line 20: | Line 20: | ||
- | ===== Creating a skybox at runtime | + | ===== Blank ===== |
+ | A blank skybox is useful for rendering a scene background in a simple color without being affected by light or shadow. | ||
+ | |||
+ | Fog computation instead will be applied. | ||
+ | |||
+ | To set the intended color, simply set the Diffuse property. | ||
+ | |||
+ | <file pascal> | ||
+ | GorillaSkyBox1.Diffuse := TAlphaColorRec.Blue; | ||
+ | </ | ||
+ | |||
+ | ===== Procedural ===== | ||
+ | |||
+ | The basic TGorillaSkyBox component provides a fully configurable procedural rendering with clouds, stars, moon/sun and azimuth / inclination settings. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | You can configure the settings at design time and can directly see the changes in rendering. | ||
+ | |||
+ | 1. Color Settings | ||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |Diffuse | TAlphaColorF | Global overall coloring of the skybox. Take care in combination with " | ||
+ | |Emissive | TAlphaColorF | RGB channels defining the color of emissive color, while the alpha channel defines the intensity. | | ||
+ | |Primaries | TPoint3D | Defining the main coloring for gradient rendering. Change carefully. Tiny changes might modify massively. | | ||
+ | |||
+ | 2. General Settings | ||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |Resolution | TVector3D | | | ||
+ | |DepolarizationFactor | Single | | | ||
+ | |Luminance | Single | | | ||
+ | |MieCoefficient | Single | | | ||
+ | |MieDirectionalG | Single | | | ||
+ | |MieV | Single | | | ||
+ | |MieZenithLength | Single | | | ||
+ | |MieKCoefficient | TVector3D | | | ||
+ | |NumMolecules | Single | | | ||
+ | |Rayleigh | Single | | | ||
+ | |RayleighZenithLength | Single | | | ||
+ | |RefractiveIndex | ||
+ | |SunAngularDiameterDegrees | Single | Size of the sun / moon disk | | ||
+ | |SunIntensityFactor | Single | Intensity of sun rendering | | ||
+ | |SunIntensityFalloffSteepness | Single | | | ||
+ | |TonemapWeighting | Single | Tonemapping | | ||
+ | |Turbidity | Single | | | ||
+ | |||
+ | 3. Day-Night Simulation | ||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |Inclination | Single | Y-Offset | | ||
+ | |Azimuth | Single | X-Offset | | ||
+ | |||
+ | 4. Moon / Sun Disk | ||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |CrescentOfs | TPointF | Define a x,y offset of the moon shadow for simulating different moon phases. | | ||
+ | |CrescentMoon | Single | To deactivate a crescent moon, set this value to < 0.0000001. Setting to zero will activate the default value again on startup. | ||
+ | |MoonSurface | Single | Activate moon surface rendering and its intensity. | | ||
+ | |||
+ | 5. Stars | ||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |StarDensity | Single | Density of stars rendered | | ||
+ | |StarProbe | Single | Number of stars rendered | | ||
+ | |StarSize | Single | Inner star size | | ||
+ | |StarSpark | Single | Star spark intensity | | ||
+ | |StarBrightness |Single | Brightness of stars | | ||
+ | |StarColor | ||
+ | |||
+ | ^Property ^ Type ^ Description ^ | ||
+ | |CloudColor | ||
+ | |CloudIterations | ||
+ | |CloudFrequency | ||
+ | |CloudAmplitude | ||
+ | |||
+ | ===== CubeMap ===== | ||
+ | |||
+ | ==== DesignTime ==== | ||
+ | |||
+ | Drag and drop the TGorillaSkyBox component onto your viewport and start by uploading | ||
+ | the cubemap texture. This is done by loading all 6 faces of a box. | ||
+ | |||
+ | When downloading a precomputed skybox texture set, you will get 6 textures, which can be associated the following way: | ||
+ | |||
+ | ^Property^Face^Common TextureName^ | ||
+ | |FrontSide|TGorillaCubeMapFace.NegativeZ|negz.jpg| | ||
+ | |BackSide|TGorillaCubeMapFace.PositiveZ|posz.jpg| | ||
+ | |TopSide|TGorillaCubeMapFace.NegativeY|negy.jpg| | ||
+ | |BottomSide|TGorillaCubeMapFace.PositiveY|posy.jpg| | ||
+ | |LeftSide|TGorillaCubeMapFace.NegativeX|negx.jpg| | ||
+ | |RightSide|TGorillaCubeMapFace.PositiveX|posx.jpg| | ||
+ | |||
+ | ==== Runtime ==== | ||
If you need to create the Gorilla3D viewport at runtime, you can do it the following way: | If you need to create the Gorilla3D viewport at runtime, you can do it the following way: | ||
Line 68: | Line 156: | ||
(before only by 6 planes with simple 2D textures) | (before only by 6 planes with simple 2D textures) | ||
- | ===== DesignTime ===== | ||
- | |||
- | Drag and drop the TGorillaSkyBox component onto your viewport and start by uploading | ||
- | the cubemap texture. This is done by loading all 6 faces of a box. | ||
- | |||
- | When downloading a precomputed skybox texture set, you will get 6 textures, which can be associated the following way: | ||
- | |||
- | ^Property^Face^Common TextureName^ | ||
- | |FrontSide|TGorillaCubeMapFace.NegativeZ|negz.jpg| | ||
- | |BackSide|TGorillaCubeMapFace.PositiveZ|posz.jpg| | ||
- | |TopSide|TGorillaCubeMapFace.NegativeY|negy.jpg| | ||
- | |BottomSide|TGorillaCubeMapFace.PositiveY|posy.jpg| | ||
- | |LeftSide|TGorillaCubeMapFace.NegativeX|negx.jpg| | ||
- | |RightSide|TGorillaCubeMapFace.PositiveX|posx.jpg| | ||
Next step: [[volumerendering|Volume-Rendering]] | Next step: [[volumerendering|Volume-Rendering]] |