Skip to content

Gradients #132

@mandre96

Description

@mandre96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions