Search Unity

Post Processing - Assertion Failure. Values are not equal. Expected : 1024=2048

Discussion in 'Editor & General Support' started by Exbleative, Aug 22, 2019.

  1. Exbleative

    Exbleative

    Joined:
    Jan 26, 2014
    Posts:
    216
    Hi,
    I'm getting the following whenever I'm blending between two cameras/post processing profiles:

    Assertion failure. Values are not equal.
    Expected: 1024 == 2048
    Assertion failure. Values are not equal.
    Expected: 512 == 1024

    ConsolePro is pointing me to UnityEngine.Rendering.PostProcessing.TextureLerper, and I can see there are a few lines about Asserts:

    internal Texture Lerp(Texture from, Texture to, float t)
    {
    Assert.IsNotNull(from);
    Assert.IsNotNull(to);
    Assert.AreEqual(from.width, to.width);
    Assert.AreEqual(from.height, to.height);

    Any idea what I might be doing wrong to get this? Google was no help!

    Using Unity 2018.3, Post Processing 2.1.7

    Thanks,
    Jay
     
    kwt127 likes this.
  2. Exbleative

    Exbleative

    Joined:
    Jan 26, 2014
    Posts:
    216
    Lul just fixed this seconds after posting. Lens dirt texture settings/sizes weren't matching in the compression settings.
     
    kwt127 likes this.