tentone / potree-core

Potree point cloud viewer library core components for easier integration in a three.js project.
https://tentone.github.io/potree-core/
Other
171 stars 53 forks source link

PoTree-Core Can't Load my Custom Point Cloud #19

Open adisingh50 opened 3 years ago

adisingh50 commented 3 years ago

I took a Binary PLY file of a tree stump and converted into a Potree formatted folder (using Potree-Converter v1.7). When I load into the original PoTree Project Directory, it renders just fine: Screenshot 2021-02-24 171301

But when I try to render that same exact point cloud folder using Potree-Core, I get this error: image

Any ideas why Potree-Core is not able to properly render this pointcloud architecture when the original Potree is?

shiukaheng commented 3 years ago

Potree-core is based on Potree v1.6, and you'll have to use PotreeConverter 1.6 or below to have it work properly with it. This repo seems like its not maintained anymore so perhaps you might consider switching to pnext/three-loader instead, although I think you'll still have to use PotreeConverter 1.6 or below.

tentone commented 3 years ago

Hello

As @shiukaheng stated the codebase is based on an older version of portree 1.6 , which at the time was not using ES modules and was not possible to easily integrate it into external projects, since then I never updated the library.

I would recommend importing potree directly into your project since it is now available as a module.

Thanks a lot.

adisingh50 commented 3 years ago

Ok, I will not try integrating Potree-Core into my application because of the versioning issues you mentioned. In my situation, I want to try loading massive point clouds within React Three Fiber specifically. Do you know how I can go about integrating this Potree repository (https://github.com/potree/potree/) into my React Project? My experience with frontend is rather limited, so merging all these javascript files into a React project has been quite difficult for me to do.