Pixel artefacts in MATH TOPs

truchet_tiles_artefacting.3.toe (5.6 KB)

Hello wonderful community,

THE CONTEXT:

I’ve followed Paketa12’s tutorial on truchet tiling.
Followed it pretty closely, to not introduce any new variables before starting to play with the network. After accomplishing the majority of what I set out to do, I’ve animated some variables with LFO. That’s pretty much it, did not make any major changes to the network.

THE PROBLEM
I want the tiling to change everytime the line thickness fills the whole screen. However, I can’t seem to get a cleanly filled white screen, because I keep seeing pixel artefacts everytime the screen gets filled.
I’ve narrowed it down to the MATH TOPs where the first artefacts start to occur, but at this stage I’m pretty lost. How can I solve these artefacts and make the lines fill the screen completely? Or should I just leave it as is and figure out a workaround by i.e. filling the screen with a constant white at the right time to make the transition seamless?

I feel like artefacting is a hard thing to figure out for a beginner, since it seems like I need to understand what’s happening under the hood pretty deeply to start solving the problem, so any input and any help will be deeply appreciated.

Thanks!

Hi @jurgis,

what might seem like an artifact is actually correct and based on the values of the incoming texture:
image
Looking at the chroma2 TOP in the Normalized Split mode, we see a value range from 0 to 0.99259. Applying the Ceiling for the Integer parameter of the Math TOP, all values above 0 will be rounded up to 1 yet all pixels of value 0 will stay 0.

Can’t right now really think about a clean solution to this in your context but if an idea comes to mind I’ll let you know. Maybe @paketa12 has a idea?

cheers
Markus

1 Like

Thank you so much @snaut!

Normalized split mode is a new diagnostic technique I can start looking into and that’s already very helpful.

Please do come back if anything else pops into your mind:)

Cheers,
Jurgis

hi @jurgis …I took a closer look at your file and I believe I found the fix: you have math2 and math4 - those two seem similar but you get some artifacts. Try to use a flip (flip Y) out of math2 and use that instead of math4. The errors are gone. I hope this helps. Thank you so much

1 Like

Wow, a reply from the master himself!
You sir just made my week:)
Thank you so much!
I’ll try your suggestion as soon as I come back from work