Skip to content

Commit

Permalink
add initial support for v1.1 3D tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixbf committed Nov 17, 2024
1 parent c910fb2 commit a1539cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/dist/ATON.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/THREE.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/src/ATON.mres.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ MRes.loadTileSetFromURL = (tsurl, N, cesiumReq )=>{
//ts.fetchOptions.cache = 'no-store'; //'default';

// Plugins
ts.registerPlugin( new TILES.ImplicitTilingPlugin() );
//ts.registerPlugin( new TILES.TileCompressionPlugin() );
/*
ts.registerPlugin( new TILES.TilesFadePlugin() );
Expand Down
6 changes: 4 additions & 2 deletions services/tools/three.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ import * as ThreeMeshBVH from 'three-mesh-bvh';
//import { GenerateMeshBVHWorker } from 'three-mesh-bvh/src/workers/GenerateMeshBVHWorker.js';

import * as TILES from '3d-tiles-renderer';
import { TilesFadePlugin } from '../../_prv/3DTilesRendererJS/example/src/plugins/fade/TilesFadePlugin.js';
import { TilesFadePlugin } from '3d-tiles-renderer/plugins';
import { ImplicitTilingPlugin } from '3d-tiles-renderer/plugins';
//import { TileCompressionPlugin } from '../../_prv/3DTilesRendererJS/example/src/plugins/TileCompressionPlugin.js';

//import { Loader3DTiles } from 'three-loader-3dtiles';
Expand Down Expand Up @@ -130,7 +131,8 @@ THREE.TransformControls = TransformControls;
THREE.CSS3DRenderer = CSS3DRenderer;
THREE.CSS3DObject = CSS3DObject;

TILES.TilesFadePlugin = TilesFadePlugin;
TILES.TilesFadePlugin = TilesFadePlugin;
TILES.ImplicitTilingPlugin = ImplicitTilingPlugin;
//TILES.TileCompressionPlugin = TileCompressionPlugin;

/*
Expand Down

0 comments on commit a1539cb

Please sign in to comment.