Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

[Released] Fast LUT - quick LUT post-process

Discussion in 'Assets and Asset Store' started by MODev, Mar 7, 2018.

  1. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229

    I'd like to introduce new post-process effect plugin: Fast LUT.

    It may look as typical LUT post-process but its strength is in performance. It's well optimized shader (based on baked 3D LUT texture) which makes this post-process faster than others event by 40%!

    Requirements for mobile devices: used shader require at least GLES 3.0, because it uses 3D texture sampling.

    Where you can find it? Here: https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/fast-lut-112265

    LUT post-process comparison:


    Fast LUT used in game:


    And on Viking Village:
     
    Last edited: Mar 21, 2020
    Neviah likes this.
  2. Custard1

    Custard1

    Joined:
    Aug 14, 2012
    Posts:
    10
    Does this support Single pass stereo rendering on the Gear/Oculus Go? It seems pretty much impossible to find an image effect that does.
     
  3. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hi,
    I've not tested it on gear/oculus go. Do you know what can be the reason why other postprocesses don't work? From my knowledge if postprocess uses basic path for camera effects it should just work.

    Edit:
    I've read that people achieved to use even Unity Post Processing stack somehow on Gear VR so this one should be possible even more.
    Fast LUT is contains very simple postprocess script, it doesn't use any additional render texture samplings so the only case is if you can connect postprocess to Camera object or not. If you buy this plugin and you will know if it's working as you expect or not, please contact me on mail because I'm also curious if it works on Gear VR + maybe I'll be able to help you if it does not work in your case.
     
    Last edited: Apr 3, 2018
  4. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    After tests on oculus and htc vive I can confirm that FastLUT is working for VR without any problems
     
    VJFader likes this.
  5. VJFader

    VJFader

    Joined:
    Dec 11, 2018
    Posts:
    8
    @MODev Just purchased your FastLUT, I'm developing for Oculus Go, and wondering which camera (right, Center, left) should I attach your script? I tried Center camera and it shows a white screen, adding to Left camera does not seem to do anything.

    Are you able to test your FastLUT on Go or Gear VR?

    tnx,
     
  6. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
  7. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Hi there. Does this work with Amplify LUTs, and does it have LUT blending? Thanks.
     
  8. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hi, yes in FastLUT you can load AmplifyLUTs format (it will be converted by plugin to it's own, which can be loaded by shader faster).
    About blending: I have it in plans (because many customers ask for this) but for now it's not added. The main idea of FastLUT was to work as fast as possible, that's why blending is missing now :)
     
    Korindian likes this.
  9. JalalGurbanov

    JalalGurbanov

    Joined:
    Sep 30, 2017
    Posts:
    15
    Hey there. Does it work with LWRP/HDRP?
     
  10. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hi,
    Until case with lwrp/hdrp shaders won't stabilize it won't be supported by FastLUT.
     
    JalalGurbanov likes this.
  11. JalalGurbanov

    JalalGurbanov

    Joined:
    Sep 30, 2017
    Posts:
    15
    Alright, thanks for the answer
     
  12. supaworst

    supaworst

    Joined:
    Mar 26, 2012
    Posts:
    45
    Hello, quick info: does it work with oculus quest?
     
  13. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hey, this tool is working for sure for Oculus/Gear VR/Oculus go but it wasn't tested for oculus quest till now. I've send you special offer on pm.


    Edit: info for other users: after tests we can confirm that it also works on Oculus Quest
     
    Last edited: Mar 21, 2020
  14. vof-t

    vof-t

    Joined:
    Oct 18, 2017
    Posts:
    4
    Hi. When you compare performance with "other assets" in the description, what exactly "assets" you refer to?
     
  15. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    @vof-t we have tested on multiple other assets but this from image is Amplify Color as I remember (hard to be sure after 2 years since release but probably it is AC). You may find that most of LUT postprocesses will have similar to "other asset" times because difference is in shader implementation and texture use - just FastLUT uses a bit different solution.
     
    vof-t likes this.
  16. Aracon

    Aracon

    Joined:
    Aug 16, 2018
    Posts:
    16
    Is Unity 2020 not supported?
     
  17. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Unity 2020 is supported (for some reason information is missing on asset store description - we will update this soon)
     
    Aracon likes this.
  18. DonCornholio

    DonCornholio

    Joined:
    Feb 27, 2017
    Posts:
    86
    Hi there! I was wondering if your fast lut could be added as a final step to my custom fragment shader instead of using it as a postprocress on the camera / without fetching the framebuffer. I am developing for Quest on URP and i am very able to translate Shaders from shaderlab to hlsl/urp.
    Also how many fragment instructions does your lut postprocess generate? I am working on an incredibly tight rendering budget, so every little thing counts.
     
    Last edited: Aug 6, 2021
  19. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hey, it depends on what variant you will use, the cheapest one (not high color range which needs 1x staturate and no intensity scaling - it would give 1x lerp):
    -1x UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX (probably you won't need this)
    -1x UNITY_SAMPLE_SCREENSPACE_TEXTURE (this is to sample screen texture, if you want to make it in object shader, than you probably have simple tex2D etc)
    -1x tex3D (that's the core of FastLut)
    As you can see when you have 3D texture produced by FastLut it's generally tex3D which converts current color to desired one
     
  20. MODev

    MODev

    Joined:
    Jul 30, 2013
    Posts:
    229
    Hi, we haven't got any email about this issue. Can you please provide us screen from profiler so we could check what's happening? Also please provide us information about render time with and without FastLUT (as FPS may be not so relevant, depends on scale - for example for average 30 FPS you may get drop 1 FPS but for 1000 FPS you could get 300 FPS drop for the same feature render time) or at least let us know from how many FPS this drop gone. Our customers already used Oculus Quest etc and didn't reported that high FPS drop.