Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 3.48 KB

DEVELOPMENT.md

File metadata and controls

74 lines (47 loc) · 3.48 KB

Build Setup

Enable eslint --fix on file save in your code editor.

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# generate static project
$ yarn generate

ok

Archeological pointcloud viewer for use in a museum setting. Based on storylines (narratives) that are defined by an artist or expert, a user should be able to view multiple storylines , all consisting of multiple pages.

high resolution pointcloud locally:

You need to download and place the pointclouds data into the /static/pointclouds/highres.
The structure looks like:

img.png

Upload the PointCloud data in cloud storage

  • You need to have installed locally gsutils
  • log in you google account to get writing permissions
  • Navigate to the root where the data folder is placed and start the copy of the files to the google cloud storage:
gsutil -m cp -r ./data gs://via-appia-20540.appspot.com
  •  Access the cloud storage dashboard here

Enable settings locally

You can change local setting by creating a .env file and enabling the settings you want to have:

LOCAL_POINTCLUDS = true
POINTS_BUDGET = 1000000

Converting big LAS files to LAZ and viewing it in Potree Desktop

To visualize point clouds, which are usually in .las format, in potree they need to be covertered using the potree converter tooling. Using the the PotreeConverter 2 is a good option, since it generated only 3 files. However, it does not compress these files which results in a converted point cloud which will be as big as the original LAS file. It therefore makes sense to use the .laz conversion from the PotreeConverter 1.7. Converting a LAS file (in our case 21GB) to LAZ for potree is easiest using windows. It is possible to compile the PotreeConverter and LasZIP for Linux and Mac but you have to do it yourself.

What you need:

First we need to merge the various .las files (if any) into one file. To do so we use lastools. Browse to the bin folder and run:

las2las -i C:\\...\\001.las C:\\...\\002.las C:\\...\\003.las ... -merged -o C:\\...\\merged.las

Next we need to convert this .las to using the potree converter 1.7 and specifically indicate that it need to be compressed as .laz .

Navigate to the folder where PotreeConverter is, and run the command (replace the <names>):

./PotreeConverter.exe .\<fileName>.las -o ./<outputDirectory> --output-format LAZ

Once the process has finished, you can drag and drop the new output directory to PotreeDesktop 1.8 to test it. In our repository the files need to be placed in \static\pointclouds\highres\ .