Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

t3d-3dtiles

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t3d-3dtiles

An extension for 3D Tiles based on t3d.js

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

t3d-3dtiles

NPM Package

An extension for 3D Tiles based on t3d.js, requires t3d.js version v0.2.7 or later. Inspired by NASSA-AMMOS / 3DTilesRendererJS.

Examples

Usage

Here is the basic usage of t3d-3dtiles:

// Create tiles3D with tileset URI
const tilesetURI = "./path/to/tileset.json";
const tiles3D = new Tiles3D(tilesetURI);

// Add tiles3D to scene
scene.add(tiles3D);

// Add camera to tiles3D, you can add multiple cameras
tiles3D.addCamera(camera);

// Set screen size for tiles3D
tiles3D.resize(width, height);

function loop(count) {
    requestAnimationFrame(loop);

    ...
    	
    tiles3D.update(); // Update tiles3D every frame

    forwardRenderer.render(scene, camera);
}
requestAnimationFrame(loop);

Keywords

FAQs

Package last updated on 09 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc