← All ideas

Inputs for color-ramps

I won't spend too many words, the picture should speak for itself

colorramps.jpg

96.2%

Development Status: Open

Upvote 51 Downvote 2
lsscpp
14 Jun 2018

14 Comments

jason

To stick with the left input, right output paradigm, perhaps this should be adjusted so the ramp is displayed vertically.

5
Lauloque

Agree. Especially when there are many sliders, the inputs will quickly saturate the space anyway.

I think there is a way around this with the sliders's ID value, it could work kind of like the ID mask in compositing: choose the ID of the corresponding slider in order to access its color input.
But I can't find UI for that without making the color ramp a huge messy node...

o.mangold

Nice. The Vector Mapping Node has the same issue. For this one I would also wish that the values for Location/Rotations/Scale could be fed from inputs.

3
AndySellers

@o.mangold: The Object Info node can do some of this, i.e. giving vector values for Location. Is that what you're thinking of?

lsscpp Author

@o.mangold: the natural consequence of your request in this proposal page, is to make another proposal: blender.community/c/rightclickselect/TFbbbc/

1
o.mangold

@andrewsellersm90: No, what I mean is the mapping node can do custom coordinate transformations (allowing to specify displacement, rotation and scaling). But the parameters for this operations are just edit fields which cannot be connected to any inputs.

o.mangold

@: Yes, sure, I could. Actually I could provide an endless stream of requests and proposals. There certainly is no lack of ideas. But I fear if I get started with that I won't be able to stop :)

agent_53

Personally the way I would work it is that each handle has a color and position input added to the stack, akin to the way a group node will get bigger as more input values are plugged in.

Certainly the color part needs to add access outside the node itself, in my projects I use a lot of procedural materials that I then make into groups so that I can easily make multiple materials of the same type with different colors, and the Color Ramp currently hamstrings that, because individual colors can't be linked to the group input node.

1
devanshutak25

i.imgur.com/QxAggCH.png

Sticking to left input right output system, we can also have something like this, the list for the positions of the flags will grow and shrink as flags are added or removed.

1
valentinwn

Image of Yaktocat

1
mistajolly

@valentinwn:

Think this is unlikely to work well due to the way that the color stops are stored and added. If you move a stop and it changes position, how should the list change?

1
valentinwn

Since the list can not change, the operation remains the same as the original one. There is simply a list of color stops. The one above could very well be at position 1,000 and the one below it at 0,000 French> English: sry for translation

simon.p.heggie

Why not expose the position too? We can use that to create pallet cycling effects. This is perfect for real-time flow effects in shaders.

lsscpp Author

Actually, I don't know what would happen if a non-numeric value (e.g. a texture) feeds those bottom inputs. Maybe it should act as a sort of multiple-inputs MixRGB node set to 'Mix'?