potree/docs/getting_started.md
2014-12-30 16:09:04 +01:00

1.5 KiB

Getting Started

Read the FAQ if you encounter any problems.

Converting A Point Cloud

Potree requires a special point cloud format. Use the PotreeConverter to convert your las or laz files.

Try this for your first point cloud and then take a look at conversion manual to learn more about the converter options to get better results:

./PotreeConverter.exe pointcloud.las -l 3

Copy the converted point cloud directory (with cloud.js + data directory) to ./resources/pointclouds

Creating the Web Page

Copy examples/viewer.html and change the path to your own point cloud.

var pointcloudPath = "../resources/pointclouds/my_own_pointcloud/cloud.js";

Deploying Potree On A Webserver

Due to strict security policies in browsers, it is not possible to open potree html files directly on your pc because potree needs permission to load files. You have to put all necessary source files and the pointcloud on a webserver to view the result. You can, however, install a local webserver on your pc. I use XAMPP, which contains Apache Webserver as well as PHP and MySQL but Apache alone should work fine:

After you've installed apache/XAMPP, start it and copy your potree directory to the htdocs directory. You should now be able to access your localy hosted files like this:

http://localhost/potree/examples/my_own_viewer.html