Colour overlay problem in linear pattern

I am trying to develop a wavy pattern with lines and a colour gradient overlayed on it by following this tutorial.

Everything has come out to be fine, except for the fact that the colours are not aligned with the square shape. They are are getting spread on the lines too.

Here’s a screen-recording to demonstrate the issue.

VARIABLE LINE WIDTH.34.toe (6.3 KB)

What steps I can take to ensure that the color stays within the area of the polygon?

Hi @swooshycloud,

the issue is with the Multiply TOP “multiply1” where you are translating and scaling the second input and by that changing the position of the displacement from the position of the color.
Remove any transforms there and things fall into place.

There are a few simplifications that have been added since this video was made:

  • Many operators like the Noise TOP now have an input and allow for compositing the operator directly over the input. In case of the Noise TOP, set the RGB parameter on the Output page to “Input*Noise” which avoids you having to use an extra Multiply TOP as well as removes the need of having to set the Noise TOP’s resolution.
  • The TOP To CHOPs now have the ability to output channel sets for color. On the Image Page, turn on the Output as Single Channel Set parameter and remove the necessity of the following Shuffle CHOP.

Hope this helps
cheers
Markus

PS: I edited your post and replaced the file as you had left the MovieFileOut Record parameter turned on…

1 Like

Thanks so much! This worked!!

I don’t understand this at the moment. I’ll look deeper into each of these parameters and node to understand it better!

The RGB option is greyed out. I dropped a new noise node also which was totally disconnected from anything else and the option still remains greyed out. How to enable it?

image

Thank you! Just tested this! Works good! What is the meaning of ’ Output as Single Channel Set"?

image

Hi @swooshycloud,

by default the TOP to CHOP will return rgba channels per row. When enabling Output as Single Channel Set the rows will be combined into single channels for r, g, b, and a, making the use of the Shuffle CHOP unnecessary.

From the help:

Controls whether a channel is created for each scanline, or whether all scanlines are appended into a single channel set. A channel set refers to one CHOP channel per color channel of the source image e.g. 4 channels for an RGBA image.

cheers
Markus

1 Like

Thanks @Snaut. I revisited this after a while after failing to figure out the meaning of shuffle and converting the noise to one single sample (using the new method you suggested). What will multiple samples do and why should they be avoided here?

The helps document says "The Shuffle CHOP reorganizes the samples in a set of channels.

It is useful for transforming data received by the SOP to CHOP and TOP to CHOPs into channels containing only one row or column. " but what does it really mean in geometrical or graphical context?

Also, how do I enable the RGB option?

Hi @swooshycloud,

The Shuffle CHOP has a variety of uses. For example let’s say you have 3 multisample channels that represent r, g, and b color and you need to convert this into a single channel where each sample of each channel is sequenced after each other into r0, g0, b0, r1, g1, b1, ..., rn, gn, bn This can be necessary when for example controlling LED strips.

Some examples can be found also in the OP Snippets

In your example, you read the pixel values of a texture and try to use it as offsets for a geometry. For the geometry to read it, all values need to be contained in a single channel which you specify in the CHOP to SOP’s Channel Scope parameter.
In older builds the feature of the TOP to CHOP to output all pixel values as a single channel set did not exist, so using the Shuffle CHOP was necessary - with the introduction of that feature though, this operator can be skipped for your particular task. The Shuffle CHOP continues to be useful in many other aspects though.

The RGB parameter of the Noise TOP is enabled once the Noise TOP has an input connected.

cheers
Markus

1 Like

Thanks. I’ve understood it somewhat. I’ll take a deeper look at the examples!

1 Like