Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Unity 2D Field of View Blur

Discussion in '2D' started by ozanalp200, Sep 30, 2020.

  1. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    Hello, I made a field of view as in the picture, but what I want is to blur the edges of that triangle-like thing, so I want to make it a bit more like the light of a real-life flashlight. How can I do?

    Right now (Masksiz)

    I want(Maskli)
     

    Attached Files:

  2. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    Help please
     
  3. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
  4. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
  5. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
  6. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,221
    Shouting help doesn't help much... what have you tried in between shouting "help"?

    I have no idea what method you are using to produce that shadow (neither did you tell), but it looks like a mesh based point light shadow casting routine... it ain't going to get blurry by itself if that is the case.
     
  7. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    I made the shadow with raycast
     
  8. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    6,236
    hms0589 and eses like this.
  9. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    Not work.
    I imported the things you threw into Unity. but it doesn't write how to do it, so I couldn't do it.
     
  10. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    295
    how do u make (Masksiz)?
     
  11. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    I looked from this video
     
  12. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    295
    ok, make duplicate of that vision but use transparent black and put a large angle, then duplicate again but make less angle and less distance. If you overlay many of these visions on top of eachother with small change in angle and distance it will give the illusion of blur
     
    ozanalp200 likes this.
  13. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    I tried but I don't know how to do it. Can you help me please
     
  14. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    295
    u cant duplicate or you cant change color?
     
  15. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    I made the inside pink black and full transparent with the shader
     
  16. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    295
    it doesnt look like that in your image
     
  17. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
    That plain form
     
  18. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
  19. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    16
unityunity