Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with my PC #2

Open
pechaut73 opened this issue Jul 11, 2018 · 6 comments
Open

Issues with my PC #2

pechaut73 opened this issue Jul 11, 2018 · 6 comments

Comments

@pechaut73
Copy link

Hi,

I have PC representing a building, and I get this in potree:
https://imageshack.com/a/img924/5127/EoIZqA.jpg

if I use the same source binary with ba_pointcloud, I get something like this:
https://imageshack.com/a/img923/6968/E9uItY.jpg
Some points outside of the building, that go away rapidly as I move in 3D
and if I look a bit more up, I have more points:
https://imageshack.com/a/img922/8125/danrSy.jpg

I have used the demoscene exemple in order to make sure I made nothing wrong, and I checked : it is the exact same source as the one I use in potree.

Any idea what could go wrong here ?
Thx

@lfscetvr
Copy link

maybe potree converter interpreted your point cloud columns in the wrong order?
this happens to my sometimes when i use a text based input format,
in these cases a solution that works for me is using cloud compare to read the cloud and reorder the columns using cc's importer and export this point cloud to las or e57 and use that with potree converter

@pechaut73
Copy link
Author

Well, it works fine when using the potree viewer, it's only with BA_PointCloud that it does not render properly : it appears as when you show an object without frustum culling, and the object is distorted on screen

I'll try to load it in cloud Compare and see what it gives, thx

@SFraissTU
Copy link
Owner

Hi! Sorry I'm only answering now.
I'm currently refactoring the project and I have a suspicion where this error is coming from. If it is okay for you, you could send me the data set and the camera position where you observed the problem, so I can look into it.

@iryu89
Copy link

iryu89 commented Jul 22, 2019

I also have have this kind of problem before. the point cloud turn to black. it is because of the point cloud from your data do not contain rgb value and potree cannot read the intensity of the point cloud. It only success to render the intensity in web potree but not in unity.

@SFraissTU
Copy link
Owner

Yes, right now only color values are considered. If you want to get color from stored intensity values you will have to adapt the function Loading::CloudLoader::LoadPoints.
If you look into the cloud.js of your point cloud, you will likely have a new attribute inside the "pointAttributes"-array besides POSITION_CARTESIAN and COLOR_PACKED, which are the only ones I'm considering right now. In LoadPoints you can add another if-statement considering this third attribute and inferring the color from it.

@akharroubi
Copy link

Hi !

I put a few steps to take into consideration more attribtus, here is the link, #9 (comment), I have not put the code with.
As explained by simon you can infer the color directly from the LoadPoints () by assigning the color from an if-statement to the node.SetPoints(vertices, color); otherwise if you want to change the color i runtime (RGB, intensity, classification) as I did at the top you have to add them as following node.SetPoints (vertices, RGB, intensity, classification);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants