Outline-Effect icon indicating copy to clipboard operation
Outline-Effect copied to clipboard

Unlimited outline colors (and select color from outline)

Open Outgoing opened this issue 7 years ago • 17 comments

Hi, is it possible to realize that the color from wondering Outline, you can make more than 3 colors (lineColor0, lineColor1, lineColor2). How to understand it is necessary to process shader.

Outgoing avatar Jan 23 '17 09:01 Outgoing

Hi, sorry I don't understand your question, but no you can't have more than 3 colors.

I use red, green and blue channels for each color.

cakeslice avatar Jan 23 '17 10:01 cakeslice

image

I want to have more than 3 colors, more flexible customization of objects

Outgoing avatar Jan 23 '17 10:01 Outgoing

image The choice of color post here

Outgoing avatar Jan 23 '17 10:01 Outgoing

Sorry but that is not possible due to the way the effect works. You can only have 3 colors because each color is a channel of the buffer texture (red, green, blue).

cakeslice avatar Jan 23 '17 11:01 cakeslice

I'm reopening this, when I have the time I will try to add unlimited colors.

cakeslice avatar Jan 28 '17 16:01 cakeslice

I would like to see this as well. Three colors is rather limiting for what I want to do and there doesn't seem to be much of anything else that does what this does that I could find.

Soren025 avatar Feb 26 '17 23:02 Soren025

Totally the same here, in my case, I need around 10 colors, it'd be perfect.

Cesarsk avatar Jul 12 '17 22:07 Cesarsk

Same here! It would be awesome!

yoHasse avatar Jul 21 '17 13:07 yoHasse

Would be seriously epic!

justadaniel avatar Jul 23 '17 16:07 justadaniel

More than 3 colors would indeed be highly needed! :-)

Julian-Th avatar Jul 31 '17 11:07 Julian-Th

Just checking in to see whether any progress has been made with this.

local306 avatar Aug 19 '17 20:08 local306

every color channel has 256 possible values, so in theory you could have 3 * 256 different outline colors.

yvz5 avatar May 12 '18 17:05 yvz5

Any news? I was really hoping I could add more colors

Igorbq avatar Jul 06 '19 06:07 Igorbq

I added 4th color using alpha channel. I'm not sure if this is the correct way, but it works for now. outline 4 https://pastebin.com/D53XhQ8X

zyndata avatar Oct 25 '19 13:10 zyndata

@zyndata can you make a PR for this?

JimmyCushnie avatar Oct 25 '19 20:10 JimmyCushnie

@zyndata can you make a PR for this?

sure

zyndata avatar Oct 28 '19 09:10 zyndata

Merged, #45.

Keeping this issue open because we'd really like to have unlimited color support, not just up to 4.

JimmyCushnie avatar Oct 28 '19 21:10 JimmyCushnie