Better color mixing
#1
Hey everyone!

I am having some problems and i hope you guys can shed some light on it. I am trying to do something similar to the attribute transfer node in houdini to mix colors
https://www.youtube.com/watch?v=DWxcfZMsZW8


I want to mix 2 colors like this to get a third color. (subtractive mixing instead of additive. yellow+blue=green) My initial setup uses 2 emitters. Each one has a color gradient, one going from yellow to green and another from blue to green. I am controlling the mixing via a neighbor test (groups to isolate the test colors) that accumulates the values over time and then a mapping operator to renormalize the values. This does seem to work, however it has a few issues such as isolated particles not changing colors. Since the color gradients are separate there is no way to get an intermediate mix between the 2. (50% on the yellow-green grad and 50% on the blue-green grad) Also, the gradient can only go in 1 direction, from yellow to green or blue to green. Is there some way to make a gradient ramp that uses 2 axis (U and V) instead of just 1 axis? (U) I tried using a custom properties to transfer the U to the V channel but i couldnt get it to work. (prob a setup problem, incremental neighbors is a float whereas color is a vector) Can i somehow use vertex colors for this?

Also, how can i set it up so it does a weighted average based on color and adjusts accordingly? It sounds like i might need it to do a bit of math to mix the values, however i don't know any scripting. If anyone knows how to solve this i would be very keen on hearing your thoughts. Either by scripting or some flow setup. (preferably a flow setup)

P.S. Perhaps an attribute transfer operator like houdini would be useful for tyflow? (unless there is a similar way to do it that im missing?)

Thanks!
  Reply


Messages In This Thread
Better color mixing - by shadowkiller - 02-21-2020, 05:13 PM
RE: Better color mixing - by tyFlow - 02-26-2020, 12:03 AM
RE: Better color mixing - by shadowkiller - 02-27-2020, 11:11 AM
RE: Better color mixing - by jmv - 05-02-2020, 05:44 AM
RE: Better color mixing - by shadowkiller - 05-02-2020, 01:04 PM
RE: Better color mixing - by jmv - 05-03-2020, 04:53 AM

Forum Jump: