暂无描述

Garrett Johnson d179cdbfa4 Merge branch 'master' of github.com:NASA-AMMOS/3DTilesRendererJS 5 年之前
example b841876f8f More updates 5 年之前
src d179cdbfa4 Merge branch 'master' of github.com:NASA-AMMOS/3DTilesRendererJS 5 年之前
test abd3300b01 add jest eslint 5 年之前
.editorconfig 2edd3865b5 initial commit 5 年之前
.eslintrc.json abd3300b01 add jest eslint 5 年之前
.gitignore 2edd3865b5 initial commit 5 年之前
.travis.yml ed9b6a56e7 Create .travis.yml 5 年之前
README.md 9e11b07dd7 Update README.md 5 年之前
babel.config.js 2edd3865b5 initial commit 5 年之前
jest.config.js 2edd3865b5 initial commit 5 年之前
package-lock.json 16a26934ff Add image bitmap loading 5 年之前
package.json 16a26934ff Add image bitmap loading 5 年之前

README.md

3d-tiles-renderer-js

IN PROGRESS

lgtm code quality

In progress three.js implementation of the 3D Tiles format.

The renderer supports a limited subset of the spec for the moment. See Issue #15 for information on which features are not yet implemented.

See it in action here!

In Progress Features

  • Multicamera support
  • Travis integration
  • Performance

Use

import { TilesRenderer } from '3d-tiles-renderer';

// ... initialize three scene ...

const tilesRenderer = new TilesRenderer( './path/to/tileset.json' );
tilesRenderer.camera = camera;
tilesRenderer.setResolutionFromRenderer( renderer );
scene.add( tilesRenderer.group );

renderLoop();

function renderLoop() {

	requestAnimationFrame( renderLoop );

	tilesRenderer.update();
	renderer.render( camera, scene );

}


API

TilesRenderer

.group

group : Group

.errorTarget

errorTarget = 6 : Number

.errorThreshold

errorThreshold = 6 : Number

.maxDepth

maxDepth = Infinity : Number

.loadSiblings

loadSiblings = true : Boolean

.lruCache

lruCache = new LRUCache() : LRUCache

NOTE: This cannot be set once update is called for the first time.

.downloadQueue

downloadQueue = new PriorityQueue : PriorityQueue

NOTE: This cannot be set once update is called for the first time.

.parseQueue

parseQueue = new PriorityQueue : PriorityQueue

NOTE: This cannot be modified once update is called for the first time.

.constructor

constructor( url : String )

.update

update() : void

.getBounds

getBounds( box : Box3 ) : void

.raycast

raycast( raycaster : Raycaster, intersects : Array ) : void

.setResolutionFromRenderer

setResolutionFromRenderer( renderer : WebGLRenderer )

LICENSE

The software is available under the Apache V2.0 license.

Copyright © 2020 California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship Acknowledged. This software may be subject to U.S. export control laws. By accepting this software, the user agrees to comply with all applicable U.S. export laws and regulations. User has the responsibility to obtain export licenses, or other export authority as may be required before exporting such information to foreign countries or providing access to foreign persons. Neither the name of Caltech nor its operating division, the Jet Propulsion Laboratory, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.