You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PLUGINS.md
+113Lines changed: 113 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,119 @@ tiles.registerPlugin( new TilesCompressionPlugin() );
198
198
tiles.registerPlugin( newTilesFadePlugin() );
199
199
```
200
200
201
+
## DebugTilesPlugin
202
+
203
+
Plugin TilesRenderer that includes helpers for debugging and visualizing the various tiles in the tile set. Material overrides will not work as expected with this plugin. The plugin includes additional logic and initialization code which can cause performance loss so it's recommended to only use this when needed.
204
+
205
+
### .colorMode
206
+
207
+
```js
208
+
colorMode =NONE: ColorMode
209
+
```
210
+
211
+
Which color mode to use when rendering the tile set. The following exported enumerations can be used:
212
+
213
+
```js
214
+
// No special color mode. Uses the default materials.
215
+
NONE
216
+
217
+
// Render the screenspace error from black to white with errorTarget
218
+
// being the maximum value.
219
+
SCREEN_ERROR
220
+
221
+
// Render the geometric error from black to white with maxDebugError
222
+
// being the maximum value.
223
+
GEOMETRIC_ERROR
224
+
225
+
// Render the distance from the camera to the tile as black to white
226
+
// with maxDebugDistance being the maximum value.
227
+
DISTANCE
228
+
229
+
// Render the depth of the tile relative to the root as black to white
230
+
// with maxDebugDepth being the maximum value.
231
+
DEPTH
232
+
233
+
// Render the depth of the tile relative to the nearest rendered parent
234
+
// as black to white with maxDebugDepth being the maximum value.
235
+
RELATIVE_DEPTH
236
+
237
+
// Render leaf nodes as white and parent nodes as black.
238
+
IS_LEAF
239
+
240
+
// Render the tiles with a random color to show tile edges clearly.
241
+
RANDOM_COLOR
242
+
243
+
// Render every individual mesh in the scene with a random color.
244
+
RANDOM_NODE_COLOR
245
+
246
+
// Sets a custom color using the customColorCallback call back.
The callback used if `debugColor` is set to `CUSTOM_COLOR`. Value defaults to `null` and must be set explicitly.
257
+
258
+
### .displayBoxBounds
259
+
260
+
```js
261
+
displayBoxBounds = false :Boolean
262
+
```
263
+
264
+
Display wireframe bounding boxes from the tiles `boundingVolume.box` (or derived from the region bounds) for every visible tile.
265
+
266
+
### .displaySphereBounds
267
+
268
+
```js
269
+
displaySphereBounds = false :Boolean
270
+
```
271
+
272
+
Display wireframe bounding boxes from the tiles `boundingVolume.sphere` (or derived from the bounding box / region bounds) for every visible tile.
273
+
274
+
### .displayRegionBounds
275
+
276
+
```js
277
+
displayRegionBounds = false :Boolean
278
+
```
279
+
280
+
Display wireframe bounding rgions from the tiles `boundingVolume.region` for every visible tile if it exists.
281
+
282
+
### .maxDebugDepth
283
+
284
+
```js
285
+
maxDebugDepth =-1:Number
286
+
```
287
+
288
+
The depth value that represents white when rendering with `DEPTH` or `RELATIVE_DEPTH`[colorMode](#colorMode). If `maxDebugDepth` is `-1` then the maximum depth of the tile set is used.
289
+
290
+
### .maxDebugError
291
+
292
+
```js
293
+
maxDebugError =-1:Number
294
+
```
295
+
296
+
The error value that represents white when rendering with `GEOMETRIC_ERROR`[colorMode](#colorMode). If `maxDebugError` is `-1` then the maximum geometric error in the tile set is used.
297
+
298
+
### .maxDebugDistance
299
+
300
+
```js
301
+
maxDebugDistance =-1:Number
302
+
```
303
+
304
+
The distance value that represents white when rendering with `DISTANCE`[colorMode](#colorMode). If `maxDebugDistance` is `-1` then the radius of the tile set is used.
Copy file name to clipboardExpand all lines: README.md
-114Lines changed: 0 additions & 114 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -565,120 +565,6 @@ dispose() : void
565
565
566
566
Disposes of all the tiles in the renderer. Calls dispose on all materials, textures, and geometries that were loaded by the renderer and subsequently calls [onDisposeModel](#onDisposeModel) for any loaded tile model.
567
567
568
-
## DebugTilesRenderer
569
-
570
-
_extends [TilesRenderer](#TilesRenderer)_
571
-
572
-
Special variant of TilesRenderer that includes helpers for debugging and visualizing the various tiles in the tile set. Material overrides will not work as expected with this renderer. The debug renderer includes additional logic and initialization code which can cause performance loss so it's recommended to only use this when needed.
573
-
574
-
### .colorMode
575
-
576
-
```js
577
-
colorMode = NONE : ColorMode
578
-
```
579
-
580
-
Which color mode to use when rendering the tile set. The following exported enumerations can be used:
581
-
582
-
```js
583
-
// No special color mode. Uses the default materials.
584
-
NONE
585
-
586
-
// Render the screenspace error from black to white with errorTarget
587
-
// being the maximum value.
588
-
SCREEN_ERROR
589
-
590
-
// Render the geometric error from black to white with maxDebugError
591
-
// being the maximum value.
592
-
GEOMETRIC_ERROR
593
-
594
-
// Render the distance from the camera to the tile as black to white
595
-
// with maxDebugDistance being the maximum value.
596
-
DISTANCE
597
-
598
-
// Render the depth of the tile relative to the root as black to white
599
-
// with maxDebugDepth being the maximum value.
600
-
DEPTH
601
-
602
-
// Render the depth of the tile relative to the nearest rendered parent
603
-
// as black to white with maxDebugDepth being the maximum value.
604
-
RELATIVE_DEPTH
605
-
606
-
// Render leaf nodes as white and parent nodes as black.
607
-
IS_LEAF
608
-
609
-
// Render the tiles with a random color to show tile edges clearly.
610
-
RANDOM_COLOR
611
-
612
-
// Render every individual mesh in the scene with a random color.
613
-
RANDOM_NODE_COLOR
614
-
615
-
// Sets a custom color using the customColorCallback call back.
The callback used if `debugColor` is set to `CUSTOM_COLOR`. Value defaults to `null` and must be set explicitly.
625
-
626
-
### .displayBoxBounds
627
-
628
-
```js
629
-
displayBoxBounds = false : Boolean
630
-
```
631
-
632
-
Display wireframe bounding boxes from the tiles `boundingVolume.box` (or derived from the region bounds) for every visible tile.
633
-
634
-
### .displaySphereBounds
635
-
636
-
```js
637
-
displaySphereBounds = false : Boolean
638
-
```
639
-
640
-
Display wireframe bounding boxes from the tiles `boundingVolume.sphere` (or derived from the bounding box / region bounds) for every visible tile.
641
-
642
-
### .displayRegionBounds
643
-
644
-
```js
645
-
displayRegionBounds = false : Boolean
646
-
```
647
-
648
-
Display wireframe bounding rgions from the tiles `boundingVolume.region` for every visible tile if it exists.
649
-
650
-
### .maxDebugDepth
651
-
652
-
```js
653
-
maxDebugDepth = - 1 : Number
654
-
```
655
-
656
-
The depth value that represents white when rendering with `DEPTH` or `RELATIVE_DEPTH` [colorMode](#colorMode). If `maxDebugDepth` is `-1` then the maximum depth of the tile set is used.
657
-
658
-
### .maxDebugError
659
-
660
-
```js
661
-
maxDebugError = - 1 : Number
662
-
```
663
-
664
-
The error value that represents white when rendering with `GEOMETRIC_ERROR` [colorMode](#colorMode). If `maxDebugError` is `-1` then the maximum geometric error in the tile set is used.
665
-
666
-
### .maxDebugDistance
667
-
668
-
```js
669
-
maxDebugDistance = - 1 : Number
670
-
```
671
-
672
-
The distance value that represents white when rendering with `DISTANCE` [colorMode](#colorMode). If `maxDebugDistance` is `-1` then the radius of the tile set is used.
673
-
674
-
### .getDebugColor
675
-
676
-
```js
677
-
getDebugColor : ( val : Number, target : Color ) => void
678
-
```
679
-
680
-
The function used to map a [0, 1] value to a color for debug visualizations. By default the color is mapped from black to white.
681
-
682
568
## PriorityQueue
683
569
684
570
Piority-sorted queue to prioritize file downloads and parsing.
0 commit comments