|
il y a 5 ans | |
---|---|---|
example | il y a 5 ans | |
src | il y a 5 ans | |
test | il y a 5 ans | |
.editorconfig | il y a 5 ans | |
.eslintrc.json | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.travis.yml | il y a 5 ans | |
README.md | il y a 5 ans | |
babel.config.json | il y a 5 ans | |
jest.config.json | il y a 5 ans | |
package-lock.json | il y a 5 ans | |
package.json | il y a 5 ans | |
travis.yml | il y a 5 ans |
IN PROGRESS
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
import { TilesRenderer } from '3d-tiles-renderer';
// ... initialize three scene ...
const tilesRenderer = new TilesRenderer( './path/to/tileset.json' );
tilesRenderer.setCamera( camera );
tilesRenderer.setResolutionFromRenderer( camera, renderer );
scene.add( tilesRenderer.group );
renderLoop();
function renderLoop() {
requestAnimationFrame( renderLoop );
// The camera matrix is expected to be up to date
// before calling tilesRenderer.update
camera.updateMatrixWorld();
tilesRenderer.update();
renderer.render( camera, scene );
}
group : Group
errorTarget = 6 : Number
errorThreshold = Infinity : Number
maxDepth = Infinity : Number
loadSiblings = true : Boolean
lruCache = new LRUCache() : LRUCache
NOTE: This cannot be set once update is called for the first time.
downloadQueue = new PriorityQueue : PriorityQueue
NOTE: This cannot be set once update is called for the first time.
parseQueue = new PriorityQueue : PriorityQueue
NOTE: This cannot be modified once update is called for the first time.
constructor( url : String )
update() : void
getBounds( box : Box3 ) : void
raycast( raycaster : Raycaster, intersects : Array ) : void
hasCamera( camera : Camera ) : boolean
setCamera( camera : Camera ) : boolean
deleteCamera( camera : Camera ) : boolean
setResolution( camera : Camera, resolution : Vector2 ) : boolean
setResolution( camera : Camera, x : number, y : number ) : boolean
setResolutionFromRenderer( camera : Camera, renderer : WebGLRenderer ) : boolean
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.