Unity 2D Screen Blur Unseen.
In my game you see the character from top down. But you should only see objects on the screen which the player could see. Is there any way to blur everything he cant see with Screen effects?
(This Image is taken from a YouTube Video that fits what i want)
Instead of the shadows in this one I want blur. So everything that is dark here should be blurred. The player is the red dot.
Thank you.
Answer by Titutitech · Dec 01, 2015 at 06:25 AM
I am not sure if this would work, nor if this is what you need. But at least it's what I think I would try:
Use 2 cameras, one with blur, one without it.
Use 2 layers one per camera.
The blurred camera should paint over the normal camera.
Detect if an object is visible from your players FOV (I am guessing 360º FOV)
Move the object to one or another layer (camera) depending on if it's visible or not.
Again, I am not sure I understand what you need, so maybe my solution doesn't work. For instance, I can imagine you will have issues with partially visible objects.
Actually a great idea. If nobody else has a better idea i will use yours :) But just like you said there is a problem with partially visible objects.
Your answer
Follow this Question
Related Questions
Use blur on different layers? 0 Answers
Fix soooo hight jump 1 Answer
Adding small acceleration to 2d top down movement game? 0 Answers
,2d gameObject unwanted outline 0 Answers
how to make my 2d top down character face the direction of the cursor 1 Answer