Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@loaders.gl/3d-tiles
Advanced tools
3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.
@loaders.gl/3d-tiles is a module within the loaders.gl framework that provides support for loading and parsing 3D Tiles, a format for streaming massive heterogeneous 3D geospatial datasets. It is designed to handle large-scale 3D models, point clouds, and other geospatial data efficiently.
Loading 3D Tiles
This feature allows you to load 3D Tiles from a given URL. The code sample demonstrates how to use the `load` function from `@loaders.gl/core` along with the `Tiles3DLoader` to load a tileset and log it to the console.
const { load } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');
async function load3DTiles(url) {
const tileset = await load(url, Tiles3DLoader);
console.log(tileset);
}
load3DTiles('https://example.com/tileset.json');
Parsing 3D Tiles
This feature allows you to parse 3D Tiles data from a binary buffer. The code sample demonstrates how to use the `parse` function from `@loaders.gl/core` along with the `Tiles3DLoader` to parse the data and log the resulting tileset to the console.
const { parse } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');
async function parse3DTiles(data) {
const tileset = await parse(data, Tiles3DLoader);
console.log(tileset);
}
// Assuming `data` is a binary buffer containing 3D Tiles data
parse3DTiles(data);
Handling Point Clouds
This feature allows you to load point clouds that are part of a 3D Tileset. The code sample demonstrates how to use the `load` function from `@loaders.gl/core` along with the `Tiles3DLoader` to load a point cloud and log it to the console.
const { load } = require('@loaders.gl/core');
const { Tiles3DLoader } = require('@loaders.gl/3d-tiles');
async function loadPointCloud(url) {
const pointCloud = await load(url, Tiles3DLoader);
console.log(pointCloud);
}
loadPointCloud('https://example.com/pointcloud.json');
Cesium is a JavaScript library for creating 3D globes and maps. It supports 3D Tiles and provides extensive functionality for visualizing and interacting with geospatial data. Compared to @loaders.gl/3d-tiles, Cesium offers a more comprehensive suite of tools for rendering and interacting with 3D Tiles, but it is also a larger and more complex library.
Potree is a WebGL based point cloud renderer for large point clouds. It supports various point cloud formats, including 3D Tiles. Compared to @loaders.gl/3d-tiles, Potree is more specialized in rendering point clouds and provides more advanced features for point cloud visualization.
Three.js is a popular JavaScript library for 3D graphics on the web. While it does not natively support 3D Tiles, there are extensions and plugins available that add this functionality. Compared to @loaders.gl/3d-tiles, Three.js is a more general-purpose 3D graphics library and requires additional plugins for 3D Tiles support.
This module contains a loader for 3D tiles.
loaders.gl is a collection of loaders for big data visualizations.
For documentation please visit the website.
FAQs
3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.
The npm package @loaders.gl/3d-tiles receives a total of 112,373 weekly downloads. As such, @loaders.gl/3d-tiles popularity was classified as popular.
We found that @loaders.gl/3d-tiles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.