Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Custom shader in HDRP for image synthesis

Discussion in 'Shaders' started by andrzej_, May 1, 2019.

  1. andrzej_

    andrzej_

    Joined:
    Dec 2, 2016
    Posts:
    81
    There's this slightly forgotten repo on bitbucket with an image synthesis project for use in machine learning. Basically you add a script to a camera object and it renders to additional 'passes' to consecutive camera display 'channels', things like object ID, category ID (assigned by layers), depth, screen normal etc. The whole thing is based on custom shaders (one for optical flow and one for all the other 'channels') which were written before SRP and obviously don't work in HDRP.
    My question is if it's doable in HDRP at all and if so can it be done with the same approach, or does it require a different set-up.
    You can find the shaders under this link:
    https://bitbucket.org/Unity-Technologies/ml-imagesynthesis/src/master/Assets/ImageSynthesis/Shaders/
     
  2. tayfunatesceng

    tayfunatesceng

    Joined:
    Apr 1, 2019
    Posts:
    2
    Were you able to find a solution?
     
  3. umarali_43

    umarali_43

    Joined:
    Mar 6, 2020
    Posts:
    6
    @andrzej_ Could you find any solution for HDRP?