forked from SimBlocks/OneWorldSDKforUnity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OneWorldSDK_Viewer.config.json
227 lines (211 loc) · 6.93 KB
/
OneWorldSDK_Viewer.config.json
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
{
//Starting position for the camera, as [ lat, lon, height ]
"startingPosition": [ ],
//A list of geocoordinates (2d or 3d)
//to do auto-travel to by using one of the number keys
//Can be an array with lat, lon, and optionally height
//can also be an object with "lat", "lon", and optionally "height"
"destinationPoints": [ ],
///Terrain tiles
//A list of terrain tile providers that can be cycled through
//Default to 'web' configured for 'bing'
//Example of SQL-based:
// {
// "type": "sql",
// "options": {
// "databaseFile": "some\\database\\path.db"
// }
// }
"terrainTileProviders": "web",
///Tile Attributes
//The type of tile attribute provider to use
"tileAttributesProviderType": "sql",
"tileAttributesSettings": {
//Settings for the SQL provider
"sql": {
//The database file to use
"databaseFile": null,
//The base LOD to use
"baseLOD": 12
}
},
///Streaming Assets
"terrainStreaming":
{
//Directory to load asset bundles.
// Any file without the ".manifest" extension will be loaded
// as an asset bundle and instantiated into the scene.
// Can be single directory or list of directories
"dir": null
},
///Elevations
"elevationProviderType": "bing",
//Settings for each elevation provider
"elevationProviderSettings": {
"file": {
//Directory where samples are stored
"samplesDir": null
},
"sql": {
//SQLite database containing elevations
"databaseFile": null,
//The base LOD to use when determining the 'highest quality' LOD
"baseLOD": 13,
//If true, the database contains downsamples of the baseLOD
//and will load those accordingly
"useDownsamples": true,
//If set, create a second elevation provider to fallback on
"fallback": null
},
"bing": {
//The bing API key to use
"apiKey": ""
}
},
//The type of tile mesh provider to use (default "elevation")
"tileMeshProviderType": "elevation",
"tileMeshProviderSettings": {
//Uses the elevation provider to generate tile meshes
"elevation": {
//The number of 'samples' per tile.
//More samples implies more accurate geometry but
//increases time taken to process each tile.
//Note: Actual number of vertices generated is numSamples * numSamples
"numSamples": 20,
//The maximum number of requests that can be processed simultaneously
//This increases memory usage depending on the number of samples used
//Defaults to processor count
"maxParallelRequests": null,
//The height of each 'skirt' around the generated tiles
"skirtHeight": 1000,
//The elevation offset to subtract from vertices considered "water"
"waterDepth": 0
},
//No terrain tiles
"empty": { },
//Stores generated meshes in database in order to cache results
"sqlCache": {
//The database file to save to
"databaseFile": null,
//The provider type to use as a data source
//Can be any of the supported tile mesh provider types
"baseProviderType": "elevation",
//If true, will read from the database without writing
//new meshes into it
//meshes into it
"readOnly": false
},
//Runs a mesh simplification algorithm on
//the constructed mesh
"decimator": {
//The provider type to use as a data source
//Can be any of the supported tile mesh provider types
"baseProviderType": "elevation",
//agressiveness of this algorithm
//Higher number equals higher quality, but more expensive to run.
"aggressiveness": 7,
//Higher number is more expensive but can bring you closer to your target quality.
//Sometimes a lower maximum count might be desired in order to lower the performance cost.
"maxIterations": 100,
//The maximum vertex count.
//May not be achievable but will quit early if under this number of vertices
"maxVertexCount": null,
//The target number of triangles
//May not be achievable but will quit early if target is achieved
"targetTriangles": null
}
},
///Locations
//SQLite database containing locations data
"locationsDatabaseFile": null,
///Features
//The feature provider can be "osm" (default "osm")
"featureProviderType": "osm",
"featureProviderSettings": {
"osm": {
//The directory where the feature tiles are
"featureTileDir": null,
//The LOD of the feature tiles
"lod": 16
},
"postgis": {
"host": "localhost",
"port": 5432,
"user": "postgres",
"password": null,
"database": "osm"
}
},
///Tile chunker settings
"tileChunkerSettings": {
//The number of tiles that will be kept loaded in-cache at a time
//Cached tiles don't have to be re-queried and are simply reactivated
"numTiles": 4095,
//The number of tiles to preload (load at startup)
"preloadPercent": 0,
"disablePhysics": false,
//The number max number of tiles that will be loaded concurrently
//Defaults to processor count
"maxConcurrentLoad": null,
//The LOD that features will be queried at
"featureLoadLOD": 15,
//The maximum LOD to create tiles at
"maxTileLOD": 10,
//The maximum lod to use for physics
"maxPhysicsLOD": 10,
//The maximum amount of time in milliseconds spend loading tiles each frame
//Increasing this number lowers frame-rate in high-load scenarious but
//decreases latency for loading tiles
"loadFrameBudget": 3,
//The size of each texture atlas, in tiles
//The actual pixel size will be (size*size*256)
"atlasTileSize": 1,
//Set to true to compress textures during runtime
//Compressing textures significantly reduces RAM usage but can cause regular frame drops
"compressTextures": false
},
//The distance from the earth where the skybox will
//switch from sky to galaxy. They will 'fade' into
//each-other gradually and switch at this distance
"skyboxSwitchoutDistance": 20000,
//The density of fog while in atmosphere
"fogDensity": 1.2e-06,
///Near/Far plane switchouts
//Sets distance bands for the camera to switch out
//near and far planes.
//The maximum height allowed is set by the furthest entry
//This is used to avoid graphical floating point jitter when
//the far plane is set too high relative to the near-plane
"nearFarPlaneSwitchouts": [
{
"distance": 2000,
"near": 0.1,
"far": 300000
},
{
"distance": 5000,
"near": 0.2,
"far": 500000
},
{
"distance": 50000,
"near": 0.3,
"far": 800000
},
{
"distance": 40000000,
"near": 5,
"far": 50000000
},
{
"distance": 60000000,
"near": 10,
"far": 70000000
}
],
//The directory to store screenshots
"screenshotsDir": null,
//The size (in meters) of the floating origin 'grid'
//Smaller means more frequent origin updates
"gridSize": 4000
}