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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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?