Display lidar point data using cesium

I have a rest endpoint, hosted on my local machine. This endpoint basically reads from a lidar file and streams point data to clients.

Now I want to display this data on a browser. I learnt that cesium supports this.

Any pointer to sample applications?

I guess you need to convert your point cloud data to a 3D Tileset first. Then you can just load it like in this sandcastle:

Thanks for inputs.
I have few questions here.

  1. Point cloud data is just to be an array of 3d points?
    In code:

const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(16421);

Where is asset 16421 stored? And how it is created?

No, it’s a Cesium3DTileset. Usually consisting of a tileset.json and a lot of .pnts files. There are converters out there. Also see this comment.

That asset is stored using Cesium Ion, I also don’t know much about it. But you can also get it using Cesium3DTileset.fromUrl(), and that URL points to your Cesium3DTileset file.

What is your original data format? las? laz?

It’s las.