Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
1.0.0:skybox [2023/02/23 12:36] – [SkyBox:Procedural] admin1.0.0:skybox [2023/02/23 12:46] – [Blank] admin
Line 20: Line 20:
  
  
-===== SkyBox:Blank =====+===== Blank =====
  
 A blank skybox is useful for rendering a scene background in a simple color without being affected by light or shadow. A blank skybox is useful for rendering a scene background in a simple color without being affected by light or shadow.
Line 26: Line 26:
 Fog computation instead will be applied. Fog computation instead will be applied.
  
-===== SkyBox:Procedural =====+To set the intended color, simply set the Diffuse property. 
 + 
 +<file pascal> 
 +GorillaSkyBox1.Diffuse := TAlphaColorRec.Blue; 
 +</file> 
 + 
 +===== Procedural =====
  
 The basic TGorillaSkyBox component provides a fully configurable procedural rendering with clouds, stars, moon/sun and azimuth / inclination settings. The basic TGorillaSkyBox component provides a fully configurable procedural rendering with clouds, stars, moon/sun and azimuth / inclination settings.
Line 76: Line 82:
  
  
-===== SkyBox:CubeMap =====+===== 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 123: Line 146:
 (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]]