I would like to render bare earth LiDAR data with a colour ramp using natural colors instead of vibrant blues to yellow to red.
Does anyone know how to manipulate Potree to enable this?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI would like to render bare earth LiDAR data with a colour ramp using natural colors instead of vibrant blues to yellow to red.
Does anyone know how to manipulate Potree to enable this?
Look for "potree.Gradient" in the file potree.js
The Gradient is a collection of six colourvalues. Each value is the RGB Value divided by 255.
Potree.Gradients = {
RAINBOW: [
[0, new THREE.Color(0.278, 0, 0.714)],
[1/6, new THREE.Color(0, 0, 1)],
[2/6, new THREE.Color(0, 1, 1)],
[3/6, new THREE.Color(0, 1, 0)],
[4/6, new THREE.Color(1, 1, 0)],
[5/6, new THREE.Color(1, 0.64, 0)],
[1, new THREE.Color(1, 0, 0)]
],
...
Write new colours in, delete cache and enjoy the scene