Support for Post Processing Stack V2?

Slate Forums Support Support for Post Processing Stack V2?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1904
    jinglefett
    Participant

    I’m using version 1.92 of Slate and trying to use it with the Post Processing Stack V2 that is available in the Unity Package Manager. But when I enable “Use Post Processing Stack Define”, I get 2 errors:

    “…Cameras\DirectorCamera.cs(5,19): error CS0234: The type or namespace name ‘PostProcessing’ does not exist in the namespace ‘UnityEngine’ (are you missing an assembly reference?)”

    and

    “…Cameras\DirectorCamera.cs(39,18): error CS0246: The type or namespace name ‘PostProcessingBehaviour’ could not be found (are you missing a using directive or an assembly reference?)”

    I’m assuming that means Slate was designed to work with Post Processing Stack V1 and not V2? Is there any way I can make it work with V2?

    Also, if I was using Unity’s legacy Depth of Field image effect, the old one from before the Post Processing Stack and which was attached directly to the camera,Ā  is there any way I can make the Slate Shot Camera’s focal point drive the image effect script’s focal depth variable (and be able to see the results in preview/edit mode)? I know that I can animate it manually with an Action Track, but it’d be more convenient to be able to just use the Camera Track clips’ focal point.

    Sorry if this has all been answered before, I’m new to Slate.

    #1908
    Gavalakis
    Keymaster

    Hello and welcome šŸ™‚

    Indeed, Slate currently supports Post Processing Stack V1. I certainly do plan to change this, into supporting V2 and I think that now is a good time to do that šŸ™‚ I will take a look at this in the next couple of days (probably tomorrow) and update this thread for you here, probably with a fixed unitypackage attachment.

    Regarding your other question, it would be possible to change the code so that the Depth Of Field parameter in the Camera Shots affect the “legacy” Depth of Field image effect, but considering that this parameter will be updated anyways to support Post Processing Stack V2, I think it would be a bit reduntant? If you definetely want though, I can tell you how to make the changes, but I would suggest to rather wait a couple of days so that I implement the support for Post Processing Stack V2 instead? šŸ™‚

    Let me know.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #1910
    jinglefett
    Participant

    Awesome, ok I’ll wait for the V2 version! Thanks for the quick response. And yes, I would like to know what code to change for the legacy effect, mostly just for reference in case I want to tie other scripts to it in the future.

    Something else too, would it be possible for the camera track clips to have an additional parameter to control the aperture of the V2 stack? Right now we have options for Focal Point and Focal Range, but if it had aperture too that would be great. Also, this is more of a cosmetic thing but if it’s not too much trouble I think it might make sense to rename Focal Point to Focus Distance, and Focal Range to Focal Length, this way the terminology used in Slate matches that of the Post Processing Stack.

    #1915
    Gavalakis
    Keymaster

    Hey,

    To change the effect so that the legacy one (or another one is used), you will have to change the code in DirectorCamera.cs file found within the “#if SLATE_USE_POSTSTACK” define. Specifically:

    • At line #38, you need to change the component type to be the type of the legacy Depth of Field for example.
    • At lines #89 to #112, there are the two properties “focalPoint” and “focalRange” which basically control the depth of field (setting the depth of field and getting the depth of field values from the component). Right now the values are get/set from the post processing stack. The properties can though be changed, to get/set those values from another depth of field effect like the legacy one.

    These are the only changes needed. If you want exact code, just let me know.

    Regarding your other request, yes of course. I can certainly add Aperture control and can change the naming to be Focus Distance and Focal Length. I will do that once I imlement the Post Processing Stack v2 .

     

    Thanks šŸ™‚

    Join us on Discord: https://discord.gg/97q2Rjh

    #1926
    jinglefett
    Participant

    Awesome, thank you very much! Looking forward to the PPSv2 integration

    #1979
    cjp562
    Participant

    Any update on ppsv2 integration? Iā€™m really excited about this!

    #1980
    Gavalakis
    Keymaster

    Hello again,

    I have just completed the itegration with Post Processing Stack v2.

    The new version will be send to the asset store within the weekend. šŸ™‚

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.