Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

[Released] JPG - Bitcrunching / Datamosh Effect - JPEG'ify Your Game!

Discussion in 'Assets and Asset Store' started by JollyTheory, Apr 16, 2024.

  1. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171


    JPG - Bitcrunching / Datamosh Effect is a post processing effect that faithfully replicates the artifacts and distortions found in block-encoding techniques such as JPEG images and H264 videos, inspired by Ompuco's amazing work, doing so in realtime.​

    Asset Store • ✅ Built-In (2021.4+) • ✅ URP (12.1.0+)


    Features:
    • Apply the effect over the whole screen / Only over specific objects / Even over UI!
    • Performant: The effect takes about the same performance hit as FXAA anti-aliasing or SSAO on low.
    • Simple to use: Just add to your camera or render-pipeline and adjust parameters.
    • New feature! Motion Vectors based Datamoshing: Replicate the effect of lossy block encoding artefacts in motion called datamoshing.
    • The effect has these options to modify:
    - Control the size of the encoding blocks (4x4/8x8/16x16).
    - Bring out the lossy nature of the encoding with RGB Crunching.
    - Oversharpen the image if you're going for a more deep-fried look.
    - Gracefully lerp the effect in and out with a special Intensity paremeter that lerps all others.​

    • New feature: Specific objects-only mode.
    - The effect can now be restricted to be applied only to specific objects instead of the whole scene.​
     
    Last edited: May 28, 2024
    unityxxplorer and LunarGameDev like this.
  2. LunarGameDev

    LunarGameDev

    Joined:
    May 4, 2024
    Posts:
    2
    Hello, Just got this asset, looks surprisingly cool ingame btw, great job. I was wondering if I can apply it to only certain elements.

    For example, I want to use the effect on one of my monsters, but not on the walls. Is that possible?
     
  3. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    Hi,
    Yes, you can isolate specific objects, the sample scene is actually already set up with this as. Check the "Stenciled only" checkbox and put one of the stenciling shaders on your object. There's more info on this in the README Stencil.txt file and on the tooltip of the checkbox.
    Thanks.
     
  4. LunarGameDev

    LunarGameDev

    Joined:
    May 4, 2024
    Posts:
    2
    Figured it out, thanks!
     
  5. unityxxplorer

    unityxxplorer

    Joined:
    May 9, 2024
    Posts:
    1
    Hi!! I'm having a kind of a hiccup setting up the effect, when i add "JPGRenderFeature" to my urp render asset, but then the readme says to add "JPG" to my volume and i'm getting stuck, I tried to add it as an effect, but im not seeing it in the effects of the post process volume. Am I doing something wrong?

    Thanks for the help!!
     
  6. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    Hi, hopefully this image can help you:

    Please let me know if "JPG - Bitcrunching Effect" doesn't appear in the effects list for you. Thank you.
     
  7. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    v1.0.2:
    -Support for different Depth Priming Mode settings.
    -Forward+ support.

    Thanks y'all.
     
    Last edited: May 28, 2024
  8. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    Huge update!
    Motion Vectors based Datamoshing: Replicate the effect of lossy block encoding artefacts in motion called datamoshing. Out now.​
     
  9. hermitmode

    hermitmode

    Joined:
    Sep 15, 2020
    Posts:
    47
    I know this is probably a no but any chance this will work with 2019.4?
     
  10. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    Hi,
    In URP or Built-in? URP didn't support motion vectors in 2019 unfortunately.
     
  11. Sidiusz

    Sidiusz

    Joined:
    Nov 7, 2017
    Posts:
    3
    Amazing shader. Does it work with HDRP tho?
     
  12. JollyTheory

    JollyTheory

    Joined:
    Dec 30, 2018
    Posts:
    171
    Hi,
    Built-In and URP only for now unfortunately, might add HDRP support in the future.
    Thanks.