Aucune description

Garrett Johnson 402146014d Rename imports il y a 5 ans
example a2bb68a17d raycast update il y a 5 ans
src 402146014d Rename imports il y a 5 ans
test bfac56e376 Rearrange into base and utilities il y a 5 ans
.editorconfig 2edd3865b5 initial commit il y a 5 ans
.eslintrc.json 2edd3865b5 initial commit il y a 5 ans
.gitignore 2edd3865b5 initial commit il y a 5 ans
.travis.yml ed9b6a56e7 Create .travis.yml il y a 5 ans
README.md 636ae3a3e9 Update README.md il y a 5 ans
babel.config.js 2edd3865b5 initial commit il y a 5 ans
jest.config.js 2edd3865b5 initial commit il y a 5 ans
package-lock.json 025ae729be npm audit fix il y a 5 ans
package.json 4400ebe68e Add build il y a 5 ans

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
  • Fast raycast support
  • Travis integration
  • ThreeTilesRenderer API
  • Performance

Use

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

// ... initialize three scene ...

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

function renderLoop() {

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

}

API

ThreeTilesRenderer

.group

group : Group

.displayBounds

displayBounds = false : Boolean

.errorTarget

errorTarget = 6 : Number

.errorThreshold

errorThreshold = 6 : Number

.maxDepth

maxDepth = Infinity : Number

.loadSiblings

loadSiblings = true : Boolean

.constructor

constructor( url : String, cameras : Camera | Array<Camera>, renderer : WebGLRenderer )

.update

update() : void

.getBounds

getBounds( box : Box3 ) : void

.raycast

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

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.