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

Gradients #132

Open
mandre96 opened this issue Mar 25, 2024 · 0 comments
Open

Gradients #132

mandre96 opened this issue Mar 25, 2024 · 0 comments

Comments

@mandre96
Copy link

Does someone was able to use gradients in point cloud material shading?

public loadTestLargeCloud() { const urlEntity = 'https://cdn.rawgit.com/potree/potree/develop/pointclouds/vol_total/'; this._potree .loadPointCloud( // The name of the point cloud which is to be loaded. 'cloud.js', // Given the relative URL of a file, should return a full URL (e.g. // signed). (relativeUrl) =>${urlEntity}${relativeUrl} ) .then((pco) => { pco.position.set(0, 0, 0); pco.material.size = 1.0; this._largeScaleClouds.push(pco); pco.material.gradient = RAINBOW; pco.material.elevationRange = [720, 800]; pco.material.pointColorType = PointColorType.ELEVATION; this._dunaApp.addObject(pco, ''); // Add the loaded point cloud to // the map and specific layer. }); }

I'm only getting the same color through out the point cloud.

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

1 participant