mariuszhermansdorfer / SandWorm

Augmented Reality Sandbox for Grasshopper & Rhino
MIT License
20 stars 11 forks source link

Provide pre-defined colormaps #19

Closed philipbelesky closed 3 years ago

philipbelesky commented 5 years ago

This would be pretty far down the list of priorities, but I thought I'd put it out there while I have the link in front of me. Google has published a colormap library for depth images that more uniformly maps between color bands and spatial bands. In an ideal world the gradient used to color the pixels would be entirely user-controlled, but this might be an interesting option to consider as a robust default.

mariuszhermansdorfer commented 5 years ago

Yeah, we definitely need some better looking color ramps. The one currently used was just the easiest to generate by I don't really like the way it looks. I'd like to have a library of more 'landscapy' gradients such as these: example 1 example 2 example 3

Some more theory on color ramps here and here

mariuszhermansdorfer commented 5 years ago

Relabeled this issue to reflect a broader scope.

mariuszhermansdorfer commented 3 years ago

SandWorm 2.0 now has a few pre-defined color maps for the elevation analysis, as well as the option to provide a user-defined color list:

Chile: image

Desert: image

Europe: image

Greyscale: image

Mars: image

Ocean: image

Rainbow: image

Custom: image

Of course, everything works with contour lines display as well: image

@BarusXXX, @philipbelesky let me know if you can recommend any sources for good quality landscape color palettes.

philipbelesky commented 3 years ago

Love the names here! I've added the struct for the Turbo palette from one of my links above. That uses about 14 steps though, so I'll rewrite the lookup table code to handle dynamic ranges for steps and send that through as a PR.

mariuszhermansdorfer commented 3 years ago

Perfect! Regarding naming patterns - I started with Mars, but then saw the opportunity and renamed it to Dune. Now the plugin is complete.

I re-read the post on the Turbo palette. feel free to replace the one currently labeled as 'Rainbow' with it. It makes sense to only keep the newer one.