# How do i make a Compression Artifact post-process like Imperfecter?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878>\
**Category:** Rendering\
**Tags:** Post-Processing, unreal-engine\
**Created:** [June 11, 2026, 1:09am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878 "2026-06-11T01:09:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpprhpd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hpprhpd](https://forums.unrealengine.com/u/hpprhpd)\
**Post date:** [June 11, 2026, 1:09am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878/1 "2026-06-11T01:09:26Z")

</div>

I’m pretty new to game dev and working on a VHS-style horror game. I’m trying to find a free post-processing effect to get those retro compression artifacts (like this video “[https://www.youtube.com/watch?v=KopGQLysx2Y](https://youtu.be/KopGQLysx2Y?si=tsdoOJYok1chG_YM&t=90)”).

Everything I’m finding online seems to be paid (like Imperfecter). Does anyone know of any good free alternatives or tutorials on how to achieve this effect?

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1052483_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [June 11, 2026, 5:35pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878/2 "2026-06-11T17:35:03Z")

</div>

Hello there @hpprhpd!

Looking around the community, the following guide covers how to create a basic CRT/VHS effect with blueprints, you can check it here:

> **[Digital Nostalgia in Gaming Experience: The Definitive Guide for Creating CRT...](https://www.linkedin.com/pulse/digital-nostalgia-gaming-experience-definitive-guide-campos-graciano-mbfof/)**
>
> \[EN\] One of the most common visual looks is the CRT VHS, often used to recreate the style of the 70s, 80s and 90s. This style is very useful to inspire nostalgia, glow and even mistery in the art looks.

Alternatively, there’s a VHS effect packed in FAB. It’s paid content, but it does include a demo, which could be useful for experimentation:

> **[Advanced CRT TV - VCR - VHS Effects](https://www.fab.com/listings/9e92ed72-dd27-4079-a982-83bf2928034b)**
>
> Demo v1.02 is available!Download: https://drive.google.com/file/d/1KgvH8MmETTO9Oy\_0M31vS5jr1F\_jLmon/view?usp=sharingDemo introduction video: https://www.youtube.com/watch?v=HvkInz5I9j8Semptember 2025 Update - Revision 12+13Fixed Screen Hop...

---

<div class="post-metadata">

**Author:** ![hpprhpd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hpprhpd](https://forums.unrealengine.com/u/hpprhpd)\
**Post date:** [June 11, 2026, 6:01pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878/3 "2026-06-11T18:01:24Z")

</div>

I just want the Artifact Compression effect (the first doesn’t have), my budget is low (20\<), in my country the price is 90$

---

<div class="post-metadata">

**Author:** ![Darkstar88leo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Darkstar88leo](https://forums.unrealengine.com/u/Darkstar88leo)\
**Post date:** [September 14, 2026, 6:40pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878/4 "2026-09-14T18:40:35Z")

</div>

And yah the custom script was written by Ai, im sorry but noway im going to pull this off so ya

---

<div class="post-metadata">

**Author:** ![Darkstar88leo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Darkstar88leo](https://forums.unrealengine.com/u/Darkstar88leo)\
**Post date:** [September 14, 2026, 6:44pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-compression-artifact-post-process-like-imperfecter/2727878/5 "2026-09-14T18:44:27Z")

</div>

I know i#m late but i manege to pull this of by uisng a custom script

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/9/319125ec6f6421612a64b307ff640cb76c953d20.jpeg)setup like this heres the script

// ============================================================  
// NATURAL LOW-BITRATE / BLOCKY COLOR COMPRESSION  
// UE 5.6 CUSTOM NODE  
//  
// INPUT:  
// SceneColor : Float3  
//  
// OUTPUT:  
// Float3  
//  
// Kein CRT  
// Keine Scanlines  
// Kein Chroma-Bleeding  
// Weniger harte 8x8-Kompression  
// Blockige Farbquantisierung bleibt deutlich sichtbar  
// ============================================================

float2 UV = GetDefaultSceneTextureUV(Parameters, 14);  
float2 InvRes = View.ViewSizeAndInvSize.zw;  
float2 Pixel = UV \* View.ViewSizeAndInvSize.xy;

float3 Original = saturate(SceneColor);

// ============================================================  
// 8x8 COMPRESSION BLOCK  
// ============================================================

float2 Block =  
floor(Pixel / 8.0);

float2 BlockUV =  
(Block \* 8.0 + 4.0) \* InvRes;

// ============================================================  
// BLOCK SAMPLES  
// ============================================================

float3 B0 =  
SceneTextureLookup(  
BlockUV,  
14,  
false  
).rgb;

float3 B1 =  
SceneTextureLookup(  
BlockUV + float2(2.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float3 B2 =  
SceneTextureLookup(  
BlockUV - float2(2.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float3 B3 =  
SceneTextureLookup(  
BlockUV + float2(0.0, 2.0 \* InvRes.y),  
14,  
false  
).rgb;

float3 B4 =  
SceneTextureLookup(  
BlockUV - float2(0.0, 2.0 \* InvRes.y),  
14,  
false  
).rgb;

// Block color  
float3 BlockColor =  
B0 \* 0.40

- B1 \* 0.15
- B2 \* 0.15
- B3 \* 0.15
- B4 \* 0.15;

// ============================================================  
// RGB → YCbCr  
// ============================================================

float Y =  
dot(  
Original,  
float3(  
0.299,  
0.587,  
0.114  
)  
);

float Cb =  
dot(  
Original,  
float3(  
-0.168736,  
-0.331264,  
0.5  
)  
);

float Cr =  
dot(  
Original,  
float3(  
0.5,  
-0.418688,  
-0.081312  
)  
);

// ============================================================  
// BLOCK YCbCr  
// ============================================================

float BY =  
dot(  
BlockColor,  
float3(  
0.299,  
0.587,  
0.114  
)  
);

float BCb =  
dot(  
BlockColor,  
float3(  
-0.168736,  
-0.331264,  
0.5  
)  
);

float BCr =  
dot(  
BlockColor,  
float3(  
0.5,  
-0.418688,  
-0.081312  
)  
);

// ============================================================  
// BLOCK RANDOMNESS  
// ============================================================

float BlockHash =  
frac(  
sin(  
dot(  
Block,  
float2(  
127.1,  
311.7  
)  
)  
)  
\* 43758.5453  
);

// unterschiedliche Kompression pro Block  
float Damage =  
lerp(  
0.35,  
1.0,  
BlockHash  
);

// ============================================================  
// CHROMA QUANTIZATION  
// ============================================================

float ChromaLevels =  
lerp(  
25.0,  
14.0,  
Damage  
);

float QCb =  
floor(  
BCb \* ChromaLevels + 0.5  
)  
/ ChromaLevels;

float QCr =  
floor(  
BCr \* ChromaLevels + 0.5  
)  
/ ChromaLevels;

// ============================================================  
// LUMA QUANTIZATION  
// ============================================================

float LumaLevels =  
lerp(  
58.0,  
34.0,  
Damage  
);

float QY =  
floor(  
BY \* LumaLevels + 0.5  
)  
/ LumaLevels;

// ============================================================  
// QUANTIZATION ERRORS  
// ============================================================

float CbError =  
QCb - Cb;

float CrError =  
QCr - Cr;

float YError =  
QY - Y;

// ============================================================  
// EDGE DETECTION  
// ============================================================

float3 Left =  
SceneTextureLookup(  
UV - float2(2.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float3 Right =  
SceneTextureLookup(  
UV + float2(2.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float3 Up =  
SceneTextureLookup(  
UV - float2(0.0, 2.0 \* InvRes.y),  
14,  
false  
).rgb;

float3 Down =  
SceneTextureLookup(  
UV + float2(0.0, 2.0 \* InvRes.y),  
14,  
false  
).rgb;

float Edge =  
length(Right - Left)

- length(Down - Up);

Edge =  
saturate(  
Edge \* 2.0  
);

// ============================================================  
// LOCAL BLOCK VARIATION  
// ============================================================

float LocalVariation =  
length(B0 - B1)

- length(B0 - B2)
- length(B0 - B3)
- length(B0 - B4);

LocalVariation =  
saturate(  
LocalVariation \* 2.0  
);

// ============================================================  
// COMPRESSION MASK  
//  
// Bewusst reduziert:  
// weniger sichtbare harte 8x8-Blöcke,  
// aber immer noch genug für Low-Bitrate-Look.  
// ============================================================

float Artifact =  
saturate(  
0.20

- LocalVariation \* 0.38
- Edge \* 0.30  
);

Artifact \*= Damage;

// ============================================================  
// BLOCK COLOR RECONSTRUCTION  
// ============================================================

float3 BlockCompressed;

BlockCompressed.r =  
Y

- 1.402 \*  
(Cr + CrError);

BlockCompressed.g =  
Y

- 0.344136 \*  
(Cb + CbError)
- 0.714136 \*  
(Cr + CrError);

BlockCompressed.b =  
Y

- 1.772 \*  
(Cb + CbError);

// ============================================================  
// APPLY BLOCK COLOR ERROR  
// ============================================================

float3 ResultColor =  
lerp(  
Original,  
BlockCompressed,  
Artifact \* 0.62  
);

// ============================================================  
// BLOCKY COLOR ERROR  
//  
// Kleine farbige Quantisierungsfehler.  
// ============================================================

float ColorError =  
(BlockHash - 0.5)  
\* Artifact  
\* 0.065;

ResultColor.r +=  
ColorError;

ResultColor.g -=  
ColorError \* 0.45;

ResultColor.b +=  
ColorError \* 0.75;

// ============================================================  
// LUMA COMPRESSION  
// ============================================================

ResultColor +=  
YError  
\* Artifact  
\* 0.30;

// ============================================================  
// 16x16 SECONDARY COMPRESSION PATCHES  
//  
// Größere unregelmäßige Farbflächen.  
// ============================================================

float2 BigBlock =  
floor(  
Pixel / 16.0  
);

float BigHash =  
frac(  
sin(  
dot(  
BigBlock,  
float2(  
269.5,  
183.3  
)  
)  
)  
\* 43758.5453  
);

float Patch =  
smoothstep(  
0.48,  
0.78,  
BigHash  
);

float PatchError =  
(BigHash - 0.5)  
\* Patch  
\* 0.020;

ResultColor.r +=  
PatchError;

ResultColor.g -=  
PatchError \* 0.45;

ResultColor.b +=  
PatchError \* 0.65;

// ============================================================  
// SUBTLE BLOCK EDGE RINGING  
// ============================================================

float3 FarLeft =  
SceneTextureLookup(  
UV - float2(5.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float3 FarRight =  
SceneTextureLookup(  
UV + float2(5.0 \* InvRes.x, 0.0),  
14,  
false  
).rgb;

float FarYL =  
dot(  
FarLeft,  
float3(  
0.299,  
0.587,  
0.114  
)  
);

float FarYR =  
dot(  
FarRight,  
float3(  
0.299,  
0.587,  
0.114  
)  
);

float Ring =  
(  
FarYL

- FarYR  
)  
\* 0.5

- Y;

Ring =  
clamp(  
Ring,  
-0.035,  
0.035  
);

ResultColor +=  
Ring  
\* Edge  
\* 0.28;

// ============================================================  
// BLOCKY POSTERIZATION  
//  
// Absichtlich NICHT glatt.  
// Aber wesentlich dezenter als die Kompressionsfehler.  
// ============================================================

float3 QuantizedColor =  
floor(  
saturate(ResultColor)  
\* 42.0

- 0.5  
)  
/ 42.0;

ResultColor =  
lerp(  
ResultColor,  
QuantizedColor,  
0.22  
);

// ============================================================  
// FINAL COMPRESSION MIX  
// ============================================================

float CompressionStrength =  
0.86;

float3 FinalResult =  
lerp(  
Original,  
ResultColor,  
CompressionStrength  
);

// ============================================================  
// OUTPUT  
// ============================================================

return saturate(FinalResult); make sure to make input scene color for custom node

in the end it look smtng like this hope tht helps.

PS:its the artifacts are more visible in dark areas.

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/1/901c89afe2150d2ba0686f94a3f8147bafc90ac2.jpeg)
