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

Modification of the Potree.Gradient #8

Open
robertdbuckley opened this issue Feb 19, 2018 · 2 comments
Open

Modification of the Potree.Gradient #8

robertdbuckley opened this issue Feb 19, 2018 · 2 comments

Comments

@robertdbuckley
Copy link

I am using POTREE to display point clouds over a server in a browser. My data contains some point distortions (extreme highs and lows) which are not classified and therefore stretch my colorramp to such an extreme, that the actual ground heights are displayed as only one color.

Is there any way I can set the Potree.Gradient for only a specific elevation range? e.g. between 60 and 120 Meters?

@m-schuetz
Copy link
Collaborator

m-schuetz commented Feb 19, 2018

You can set the elevation range like this:

for(let pointcloud of viewer.scene.pointclouds){
	pointcloud.material.elevationRange = [60, 120];
}

@robertdbuckley
Copy link
Author

robertdbuckley commented Feb 19, 2018

Would you be able to tell me Into which function and into which js file would I insert the code?

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

2 participants