<aside> 🆕 This feature was introduced in xeokit-sdk v2.0.

</aside>



Introduction

In this mini-tutorial, we'll use xeokit's [convert2xkt](<https://xeokit.github.io/xeokit-convert/docs/>) CLI tool to convert a point cloud model from LAS format into xeokit's compact XKT native model format, which we'll then view in the browser using a xeokit Viewer.

LAS is an open format for the interchange and archiving of lidar point cloud data.

The XKT format compresses models into a compact payload from which xeokit can load large numbers of objects over the Web in seconds, at full geometric precision.

For our point cloud file, we'll use an LAS point cloud capture of the Autzen Stadium in Oregon, provided by loaders.gl. When that's converted and loaded, it will look like the example below. This model contains 31 million points, and xeokit can usually load it over a good Internet connection in around ~15 seconds.

<aside> ▶️ Run this example

</aside>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/210ab072-3b74-49ae-9d4b-d28e02346a4d/Screenshot_from_2021-06-08_01-05-33.png

1. Install convert2xkt

Using git and npm, clone and install our xeokit-convert repository, which contains the convert2xkt tool that we'll use to convert our LAS into XKT.

Be sure to use the latest versions of both xeokit-convert and xeokit-sdk.

git clone <https://github.com/xeokit/xeokit-convert.git>
cd xeokit-convert
npm install

2. Convert LAS to XKT

Now convert the LAS into an XKT file:

node ./convert2xkt.js -s autzen.laz -o autzen.xkt

3. View the XKT