You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: