0

How can i show the above ground heights of objects in the potree veiwer? i have 2 laz files that shows the areas topography draped in a tif (RGB version ), and a second that shows the heights of objects along a flat plane (HEIGHTS version).

being displayed in potree veiwer like so

Potree.loadPointCloud("LOCATION/cloud.js", "LOCATION", e => {
            let pointcloud = e.pointcloud;
            let material = pointcloud.material;
            viewer.scene.addPointCloud(pointcloud);
            material.pointColorType = Potree.PointColorType.RGB; // any Potree.PointColorType.XXXX
            material.size = 1;
            material.pointSizeType = Potree.PointSizeType.ATTENUATED;
            material.shape = Potree.PointShape.CIRCLE;
            viewer.fitToScreen();
        });
        Potree.loadPointCloud("LOCATION_height/cloud.js", "LOCATION Heights", e => {
            let pointcloud = e.pointcloud;
            let material = pointcloud.material;
            viewer.scene.addPointCloud(pointcloud);
            material.pointColorType = Potree.PointColorType.ELEVATION; // any Potree.PointColorType.XXXX 
            material.size = 1;
            material.pointSizeType = Potree.PointSizeType.ATTENUATED;
            material.shape = Potree.PointShape.CIRCLE;
            material.elevationRange = [0, 50]
            viewer.fitToScreen();
        });

I would like to shows the colour displayed in the HEIGHTS version on top of the correct topography shown in the RGB version. I need to somehow transfer the rgb value displayed in the HEIGHTS version.

I thought i could just copy values across but i cannot figure how to retrieve the displayed rgb value when the Potree.PointColorType = ELEVATION

  • UPDATE the HEIGHTS version i made has the Height values copied back into the z attribute ( thus it is flat, lost original elevation), making a new version i can leave the height in user_data but cannot figure out how to view the user data in potree. i am able to see the user_data in lasview – Anton May 28 at 3:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.