Pointcloud render based on camera projection and position #8537
Replies: 3 comments 5 replies
-
A more scalable approach probably would be to prepare the pointcloud data in a geospatially-organized format like 3D Tiles or Cloud Optimized Point Cloud (COPC). See this demo: https://deck.gl/examples/tile-3d-layer If simplification of the point cloud data would be acceptable, you could also consider using libraries like meshoptimizer to reduce the scale of the data, or to produce different levels-of-detail. |
Beta Was this translation helpful? Give feedback.
-
@donmccurdy Thanks for the comment. There will be no base map in my case. only a top-down image and a point-cloud data i.e. .las file. When we make an API request to pull the .las file, the request completes with 200. However, it still waits until the entire blob is downloaded and till then we show the loader. I want to change this process, was looking for something with Deckgl that is either achievable or I will have to make some changes on the service level. Say exposing an API to fetch selected byte range etc. meshoptimizer seems promising, but I am not sure how this will help to render the dynamic .las file in the browser |
Beta Was this translation helpful? Give feedback.
-
As @donmccurdy said about COPC spec, I revisited my code and observed that there is already slicing happening on large dataset of .ply and then it's converted to a .las file after formatting and following some specs. There are 2 things which I tried.
This not working as the token is not getting passed in the header, not sure what I am missing here. As per the docs we pass loader options and I have debugged fetchFile inside deckgl is having the options that I am passing. Still the headers and not attached in net work request.
At least, I was thinking 1st should work and I might play something related to batching as mentioned in docs, I was in that assumption. Now, I am kinda stuck here. I also, found a similar problem #5995 |
Beta Was this translation helpful? Give feedback.
-
Hello folks,
I am currently working on rendering pointcloud data which are in .las format. Our current approach is to fetch the blob via a rest client and create a URL.createObjectUrl to create a unique reference such that same is used to data params to deck.
As the blobs are in GB size, network request is taking time and hampering the UX.
Now, I am thinking to change the way of rendering the points.
As the FirstPersonView is selected to visualize and render the pointcloud data, I can use the view and viewstate to get the camera position and perspective. Based on this and with bfs algo points can be rendered ( This is currently what I am thinking, not applied yet )
My questions is does anyone have ever tried this with deckgl in community? Is there any reference? Is there any othet/better approach.
Any help is appreciated. Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions