Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unity 2D Field of View Blur

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

  1. ozanalp200

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    18
    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:
    18
    Help please
     
  3. ozanalp200

    ozanalp200

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

    ozanalp200

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

    ozanalp200

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

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    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:
    18
    I made the shadow with raycast
     
  8. mgear

    mgear

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

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    18
    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:
    535
    how do u make (Masksiz)?
     
  11. ozanalp200

    ozanalp200

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

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    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:
    18
    I tried but I don't know how to do it. Can you help me please
     
  14. raarc

    raarc

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

    ozanalp200

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

    raarc

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

    ozanalp200

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

    ozanalp200

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

    ozanalp200

    Joined:
    Sep 30, 2020
    Posts:
    18