Search Unity

Bug Canvas size causing material to not work

Discussion in 'Web' started by BorpaBoatski, Nov 16, 2023.

  1. BorpaBoatski

    BorpaBoatski

    Joined:
    Aug 3, 2018
    Posts:
    54
    I have a blur material being applied to a render texture but it only works on certain canvas sizes.

    SquareAspect.gif


    The above .gif starts with the blur working but as I zoom in / zoom out, the material seems to stop working. This is on a 540x540 dimension. The game is meant to be played on phones so the aspect ratio should be something like 9:16 for portrait. However, on that ratio the material is not working at all. The following .gif shows this behavior.


    9by16Aspect.gif

    Could use some help figuring out this issue. This is using Unity 2022.3.9f1.
     
  2. BorpaBoatski

    BorpaBoatski

    Joined:
    Aug 3, 2018
    Posts:
    54
    I came upon this discussion.
    https://forum.unity.com/threads/can...t-scale-when-using-linear-color-space.508476/

    It does look like the blur image is not resizing when zooming, so I have changed the color space to gamma. The blur is working consistently now! However, are there things I should be worried about now that I have changed the color space? From what I know, lights would be affected by this change. Are there other things?
     
  3. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    270
    @BorpaBoatski the fact that you changing the color space "fixed" the issue certainly makes my spidey/bug sense tingle!
    would you mind opening a bug report and sending it to me?
     
  4. BorpaBoatski

    BorpaBoatski

    Joined:
    Aug 3, 2018
    Posts:
    54
    @unityruba sorry for the late reply. I have submitted a bug report. The ID is IN-61478. Please let me know if you need more info. :)
     
    unityruba likes this.