Full body line censoring shader
#1
Filter Guide

This post includes three main body-line clipping filters: V2.1, V3, and V3.1.

They are listed in order:
V2.1 → V3 → V3.1

What these filters actually are

All three filters are built around Godot shader logic, color-space matching, nearby-pixel checks, and short-range region filling.

They are NOT true body-part recognition models.

That means if some small or awkward exposed body parts are still missed, it is mostly because this setup is already reaching the practical limit of Godot-side heuristic detection and the recognition method used here — not because of one tiny coding mistake or one small threshold being wrong.

So if a version still misses a small exposed detail, especially under:
  • heavy stylization
  • dark shading
  • compression
  • unusual colors
  • difficult poses
  • black clothing near skin
  • pink or red backgrounds

that is mainly an engine / recognition limitation, not just a bug.

Custom Body Line Clipping V2.1
Best for: strong and simple overall censor coverage

V2.1 is the most direct and aggressive version of the three.
It focuses on broad body-line clipping and usually gives the strongest first-pass coverage.

This is the best choice if the goal is to catch as much as possible quickly.
The tradeoff is that it can be rougher and less precise in difficult scenes.

Use this if:
  • broad censor coverage matters more than precision
  • a simpler version is preferred as a starting point
  • the content does not have too many difficult shadows or confusing background colors

Custom Body Line Clipping V3
Best for: better handling of shadowed skin and more stable body continuity

V3 improves on V2.1 by adding better support for darker or shadowed body regions and more controlled local expansion.

In practice, it usually holds body areas together better when lighting gets weird or when skin tones shift into darker purple or low-light colors.

Use this if:
  • V2.1 misses shadowed or darker body regions
  • a better balance between coverage and control is needed
  • the scene has more difficult lighting or color variation

Custom Body Line Clipping V3.1
Best for: the most refined balance between coverage and precision

V3.1 is the most advanced and most refined version of the three.
It is designed to be more careful about when and where it expands the censor region.

In practice, this is usually the best balance between:
  • catching important exposed areas
  • avoiding unnecessary spreading into unrelated shapes

Use this if:
  • the most polished version is wanted
  • the best balance between precision and body-part coverage is needed
  • harder scenes are being tested and less unnecessary spreading is preferred

Which one should be used?

Simple rule:
  • Start with V2.1 if the goal is the strongest and simplest broad coverage
  • Move to V3 if V2.1 misses body areas under dark or difficult lighting
  • Use V3.1 if the goal is the most refined overall balance

Important limitation

These filters do NOT actually understand anatomy the way a trained segmentation or body-part detection model would.

They work by estimating likely regions from:
  • color
  • shading
  • nearby pixels
  • local support and short-range connection logic

So edge cases will always exist.

Small missing body-part censoring can still happen, especially with:
  • stylized anime art
  • strong shading
  • compression
  • unusual color grading
  • black clothing near skin
  • pink/red backgrounds
  • tiny exposed details

At this point, further improvement would likely require moving beyond pure Godot shader heuristics into a more advanced recognition or segmentation pipeline.

Quick usage note

The screenshot above shows a short guide for how to stack and use the filters.

The three body-line clipping filters included here are:
  1. Custom Body Line Clipping V2.1
  2. Custom Body Line Clipping V3
  3. Custom Body Line Clipping V3.1

Choose the one that fits the scene best, then combine it with Censor/Repeated Text as needed.
Some cheap talks
This is inspired from endofbeen, I'm studying embedded system and actually have some free time so I decided to make it in 2 hours.

                   
.zip   clipping.zip (Size: 44.35 KB / Downloads: 212)
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)