Jump to content

Colour transfer with Solver SOP without additive colour accumulation.


Recommended Posts

I'm using a Solver SOP to transfer colour over time from a single point to a grid:
image.png.724ae320936f56014f6d79719bcb01eb.png

When the coloured point moves back over previous positions, the colour is additive. What method can I use to 'paint' the current point colour to the grid non additively?

The issue is obviously my current vex inside the solver, because it uses additive math:

vector prev_col = point(1, "Cd", @ptnum);
v@Cd += prev_col;

I just can't wrap my head around an alternate technique to "paint" these colours over top of itself.

.hip file attached.
transfer_colour.hiplc

Link to comment
Share on other sites

max might be cheap method

v@Cd = max(prev_col, v@Cd);

vop colormix or lerp seems more correct but requires a bit different approach of mixing with masking or so

Edited by fencer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...