File: fog.rst

package info (click to toggle)
openmw 0.49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,992 kB
  • sloc: cpp: 372,479; xml: 2,149; sh: 1,403; python: 797; makefile: 26
file content (173 lines) | stat: -rw-r--r-- 5,828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
Fog Settings
############

use distant fog
---------------

:Type:		boolean
:Range:		True/False
:Default:	False

This setting overhauls the behavior of fog calculations.

Normally the fog start and end distance are proportional to the viewing distance
and use the fog depth set in the fallback settings.

Enabling this setting separates the fog distance from the viewing distance and fallback settings and makes fog distance
and apparent density dependent on the weather and the current location according to the settings below.

Unfortunately specific weather-dependent fog factor and offset parameters are currently hard-coded.
They are based off the default settings of MGE XE.

+--------------+------------+--------+
| Weather Type | Fog Factor | Offset |
+==============+============+========+
| Clear        | 1.0        | 0.0    |
+--------------+------------+--------+
| Cloudy       | 0.9        | 0.0    |
+--------------+------------+--------+
| Foggy        | 0.2        | 0.3    |
+--------------+------------+--------+
| Overcast     | 0.7        | 0.0    |
+--------------+------------+--------+
| Rain         | 0.5        | 0.1    |
+--------------+------------+--------+
| Thunderstorm | 0.5        | 0.2    |
+--------------+------------+--------+
| Ashstorm     | 0.2        | 0.5    |
+--------------+------------+--------+
| Blight       | 0.2        | 0.6    |
+--------------+------------+--------+
| Snow         | 0.5        | 0.4    |
+--------------+------------+--------+
| Blizzard     | 0.16       | 0.7    |
+--------------+------------+--------+

Non-underwater fog start and end distance are calculated like this according to these parameters::

	fog start distance = fog factor * (base fog start distance - fog offset * base fog end distance)
	fog end distance = fog factor * (1.0 - fog offset) * base fog end distance

Underwater fog distance is used as-is.

A negative fog start distance means that the fog starts behind the camera
so the entirety of the scene will be at least partially fogged.

A negative fog end distance means that the fog ends behind the camera
so the entirety of the scene will be completely submerged in the fog.

Fog end distance should be larger than the fog start distance.

This setting and all further settings can only be configured by editing the settings configuration file.

distant land fog start
----------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	16384 (2 cells)

This is the base fog start distance used for distant fog calculations in exterior locations.

distant land fog end
--------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	40960 (5 cells)

This is the base fog end distance used for distant fog calculations in exterior locations.

distant underwater fog start
----------------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	-4096

This is the base fog start distance used for distant fog calculations in underwater locations.

distant underwater fog end
--------------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	2457.6

This is the base fog end distance used for distant fog calculations in underwater locations.

distant interior fog start
--------------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	0

This is the base fog start distance used for distant fog calculations in interior locations.

distant interior fog end
------------------------

:Type:		floating point
:Range:		The whole range of 32-bit floating point
:Default:	16384 (2 cells)

This is the base fog end distance used for distant fog calculations in interior locations.

radial fog
----------

:Type:		boolean
:Range:		True/False
:Default:	False

By default, the fog becomes thicker proportionally to your distance from the clipping plane set at the clipping distance, which causes distortion at the edges of the screen.
This setting makes the fog use the actual eye point distance (or so called Euclidean distance) to calculate the fog, which makes the fog look less artificial, especially if you have a wide FOV.
Note that the rendering will act as if you have 'force shaders' option enabled with this on, which means that shaders will be used to render all objects and the terrain.

This setting can be controlled in the Settings tab of the launcher.

exponential fog
---------------

:Type:		boolean
:Range:		True/False
:Default:	False

Similar to "radial fog" but uses an exponential formula for the fog.
Note that the rendering will act as if you have 'force shaders' option enabled with this on, which means that shaders will be used to render all objects and the terrain.

This setting can be controlled in the Settings tab of the launcher.

sky blending
------------

:Type:		boolean
:Range:		True/False
:Default:	False

Whether to use blending with the sky for everything that is close to the clipping plane.
If enabled the clipping plane becomes invisible.
Note that the rendering will act as if you have 'force shaders' option enabled with this on, which means that shaders will be used to render all objects and the terrain.

This setting can be controlled in the Settings tab of the launcher.

sky blending start
------------------

:Type:		floating point
:Range:		from 0.0 (including) to 1.0 (excluding)
:Default:	0.8

The fraction of the maximum distance at which blending with the sky starts.

This setting can be controlled in the Settings tab of the launcher.

sky rtt resolution
------------------

:Type:		two positive integers
:Default:	512 256

The sky RTT texture size, used only for sky blending. Smaller values
reduce quality of the sky blending, but can have slightly better performance.