User avatar
jsantos
Site Admin
Topic Author
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

[RECOVERED] Unity SRP (HDRP) Compatibility

03 Nov 2018, 23:30

Our database got corrupted and we lost the content of this topic. Please, help us to recover this discussion.

Tags:
 
elecman
Posts: 90
Joined: 20 Jul 2014, 04:28

Re: [RECOVERED] Unity SRP (HDRP) Compatibility

07 Nov 2018, 01:20

So did you test the Unity HDRP and LWRP yet?
 
Lacuna Corporation
Posts: 2
Joined: 30 Aug 2018, 20:52

Re: [RECOVERED] Unity SRP (HDRP) Compatibility

07 Nov 2018, 13:26

I take it this was my original post.

Just to recap, tl;dr is the SRP does not yet expose critical hooks (which is technically a good thing as they've removed a lot of monobehaviour ties from the pipeline), such as OnPostRender, which means that they have to be hooked up manually.

Working around the asmdefs of the SRP (which pose another issue in general I'm about to make a post about), I found that the best way to set this up was to make a one-way link out of the SRP asms to an event holder (in my case SRPUtilities, exposing an SRPUtilities::OnPostRender event) which is exposed to the Noesis asm. Then, from the pipeline's Render override (e.g. HDRenderPipeline::Render), you dispatch it after all cameras have been rendered. Then, in Noesis initialisation, it's as simple as;
RenderPipeline.beginCameraRendering += PreRender;
SRPUtilities.OnPostRender += OnPostRender;
Everything is working fine on the rendering side for me with the HDRP with this hook.
 
User avatar
jsantos
Site Admin
Topic Author
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

Re: [RECOVERED] Unity SRP (HDRP) Compatibility

07 Nov 2018, 20:18

I also tried something similar and it is working fine. Not sure how to deploy this to clients though. That's something we will figure out once we release the first beta of 2.2 for Unity.

Who is online

Users browsing this forum: No registered users and 1 guest