Skip to content

Commit 236cfb8

Browse files
committed
update docs and cleanup
1 parent da87e1f commit 236cfb8

15 files changed

+120
-331
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## v1.2
2+
3+
## v1.2.0
4+
- Support for Photorealistic 3D Tiles by Google Maps ([demo: requires API key](https://nytimes.github.io/three-loader-3dtiles/dist/web/examples/demos/google-3dtiles/), [demo source](https://github.com/nytimes/three-loader-3dtiles/blob/main/examples/demos/google-3dtiles/index.html)).
5+
- Upgrade to loaders.gl v4.1 and Three.js r160.
6+
- Includes loaders.gl PRs [#2847](https://github.com/visgl/loaders.gl/pull/2847) and [#2851](https://github.com/visgl/loaders.gl/pull/2851).
7+
- Faster build system with Vite.
8+
- Support for `memoryAdjustedScreenSpaceError` and `memoryCacheOverflow` - Adjust the maximum screen space error based on GPU memory utilization.
9+
- More accurate estimates of GPU memory utilization.
10+
- `runtime.update()` function now takes `viewportHeight` instead of the whole `renderer` object (for screen space error calculations).
11+
- Support providing an external `gltfLoader` in `options`, to reuse existing loader workers.
12+
- Minor performance optimizations.
13+
114
## v1.1
215

316
### v1.1.17

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ npm run test
170170
171171
## Docs
172172
* API documentation is available [here](docs/three-loader-3dtiles.md).
173-
* Code for the demos is in [`examples/demos`](examples/demos).
173+
* Code for the demos is in [examples/demos](https://github.com/nytimes/three-loader-3dtiles/tree/main/examples/demos).
174174
175175
## Alternatives
176176
To our knowledge, this is the only [loaders.gl](https://github.com/visgl/loaders.gl)-based Three.js library, but there are several implementations of 3D Tiles for Three.js. Notable examples:

docs/three-loader-3dtiles.loaderoptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface LoaderOptions
3030
| [maximumScreenSpaceError?](./three-loader-3dtiles.loaderoptions.maximumscreenspaceerror.md) | | number | _(Optional)_ determines the distance from tiles in which they are refined, depending on their geometrical size. increase the value to load lower lod tiles from the same view distance (increases performnace) - Default: <code>16</code>. |
3131
| [maxRequests?](./three-loader-3dtiles.loaderoptions.maxrequests.md) | | number | _(Optional)_ When thorttling requests, how many requests can launch simultaneously - Default: <code>64</code> |
3232
| [memoryAdjustedScreenSpaceError?](./three-loader-3dtiles.loaderoptions.memoryadjustedscreenspaceerror.md) | | boolean | _(Optional)_ Whether to adjust the screen space error to maintain the maximum memory limit - Default <code>true</code>. |
33-
| [memoryCacheOverflow](./three-loader-3dtiles.loaderoptions.memorycacheoverflow.md) | | number | |
33+
| [memoryCacheOverflow?](./three-loader-3dtiles.loaderoptions.memorycacheoverflow.md) | | number | _(Optional)_ The maximum additional memory (in MB) to allow for cache headroom before adjusting the screen spacer error - Default: <code>1</code>. |
3434
| [pointCloudColoring?](./three-loader-3dtiles.loaderoptions.pointcloudcoloring.md) | | [PointCloudColoring](./three-loader-3dtiles.pointcloudcoloring.md) | _(Optional)_ When viewing Point Cloud tiles, how should the points be colored ([PointCloudColoring](./three-loader-3dtiles.pointcloudcoloring.md)<!-- -->) - Default: <code>PointCloudColoring.White</code> |
3535
| [pointSize?](./three-loader-3dtiles.loaderoptions.pointsize.md) | | number | _(Optional)_ Point size for Point Cloud tiles - Default: <code>1.0</code> |
3636
| [preloadTilesCount?](./three-loader-3dtiles.loaderoptions.preloadtilescount.md) | | number | _(Optional)_ When using a three.js loading manager, do not call <code>onLoad</code> until this number of tiles were loaded - Default: <code>undefined</code> |

docs/three-loader-3dtiles.loaderoptions.memorycacheoverflow.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
## LoaderOptions.memoryCacheOverflow property
66

7+
The maximum additional memory (in MB) to allow for cache headroom before adjusting the screen spacer error - Default: `1`<!-- -->.
8+
79
**Signature:**
810

911
```typescript
10-
memoryCacheOverflow: number;
12+
memoryCacheOverflow?: number;
1113
```

etc/three-loader-3dtiles.api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ export interface LoaderOptions {
5858
maximumScreenSpaceError?: number;
5959
maxRequests?: number;
6060
memoryAdjustedScreenSpaceError?: boolean;
61-
// (undocumented)
62-
memoryCacheOverflow: number;
61+
memoryCacheOverflow?: number;
6362
pointCloudColoring?: PointCloudColoring;
6463
pointSize?: number;
6564
preloadTilesCount?: number;

examples/demos/cesium/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html lang="en">
23
<head>
34
<meta charset="UTF-8">

examples/demos/google-3dtiles/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html lang="en">
23
<head>
34
<meta charset="UTF-8">

examples/demos/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html lang="en">
23
<head>
34
<meta charset="UTF-8">

examples/demos/map-overlay/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html lang="en">
23
<head>
34
<meta charset="UTF-8">

examples/demos/realitycapture/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html lang="en">
23
<head>
34
<meta charset="UTF-8">

0 commit comments

Comments
 (0)