React.js & Node.js open source developer
📦 NPM
Potree Converter utility packed as Docker Container
Configuring incomplete, errors occurred!
CmakeList of https://github.com/potree/PotreeConverter.git requires Cmake VERSION [3.16 cmake_minimum_required(VERSION 3.16)].
Getting "ERROR [5/6] RUN git clone -b develop https://github.com/potree/PotreeConverter.git && cd PotreeConverter && mkdir build && cd bu...." every time while trying to build image on VS code.
I got this working and I can see that it is pulling from the latest potree converter repository at https://github.com/potree/PotreeConverter .
The output doesn't seem to be compatible when I try and load it in the examples. The generated page doesn't work either.
The first error I get is
OctreeLoader.js:408 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'min')
When I look at the stack trace it looks like it is looking for boundingBox.min . The output of the conversion has min and max directly at the root of metadata.json
let min = new THREE.Vector3(...metadata.boundingBox.min);
I went ahead and manually wrapped min and max with boundingBox like so
boundingBox: {
"max": [
1043.6390000000001,
727.0220000000002,
236.86600000000016
],
"min": [
859.958,
543.341,
53.185
],
That got rid of that error.
The next error after modifying with boundingBox is:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'firstChunkSize')
in OctreeLoader.js
root.hierarchyByteSize = BigInt(metadata.hierarchy.firstChunkSize);
I went ahead and added the following (I just used 16384 as a guess):
"hierarchy": {"firstChunkSize": 16384},
then I repeatedly get
OctreeLoader.js:253 GET http://localhost:8080/pointclouds/test2/chunks/hierarchy.bin 404 (Not Found)
this is because there is no hierarchy.bin file that was generated in the conversion. The chunks directory only has metadata.json and a lot of files numbered s r4202.bin, r4203.bin, etc.. etc..
I am loading like this
// Load and add point cloud to scene
Potree.loadPointCloud("../pointclouds/test2/chunks/metadata.json", "test2", e => {
let scene = viewer.scene;
let pointcloud = e.pointcloud;
let material = pointcloud.material;
// test
material.activeAttributeName = "rgba";
material.minSize = 2;
material.pointSizeType = Potree.PointSizeType.ADAPTIVE;
// tests
scene.addPointCloud(pointcloud);
viewer.fitToScreen();
my .laz conversion output directory looks like this;
metadata.json
r6.bin
r424.bin
etc... etc...
log.txt
octree.bin
tmpChunkRoots.bin
Do you know if I need to run the conversion another way? Or do I need to specify a particular format when I use Potree.loadPointCloud ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.