See Through - Fade away objects in line of sight

Don’t miss out on any action as from now on you can always make sure your player character is visible. With the See Through asset from Cygnus Projects it is possible to fade away objects that are in line of sight.

Features:

  • No special shaders and post effect
  • Easy to set up
  • Fully documented source code included
  • Allow linked objects (when only a part of the object is obscuring the sight you can fade away the complete object)
  • Works with any game object including legacy trees and SpeedTrees

Overview video:

Screen shots (with included standard assets)
Even if the player is only behind a part of the column the whole column renders transparant:


and even when the player is behind a second column he’s still visible:

Now available on the Asset Store

Questions? Comments? Feel free to post them here or contact me at support@cygnusprojects.com.

Does this work even when the terrain tree painter have been used? And not placed the tree by hand

Hi @HelixU4 , no I don’t support this feature.
Let me explain: The system always returns the terrain as the object it is hitting. Of course it it possible to get all the trees within that terrain but it has some huge drawbacks:

  1. One has to check all trees on every hit to determine which ones should be faded
  2. The tree prefabs placed on the terrain should all have some sort of collider.
    In my opinion this will make your project slowing down way to much, so it is best to determine the playable area and place fading trees where you know the player can be obscured by it.

Bah, I use top down camera but the trees are in the view often. The terrain is quite big so placing the trees by hand would be a massive task and it would draw down the performance.

You don’t have to place all trees by hand, but yeah if you are building some kind of an open world game you can’t predict the paths players will take. Don’t see the link why manual placing trees are source of performance though as when you use occlusion culling (specially with a top down camera) trees not visible won’t even draw. But yeah, anyway, thanks for the interest in the asset though.

Hey!
Few questions because this looks like a solution I can use!
Does the tree need to have a collider on it?
Is there a way to smooth fade in/out instead of jumping straight to the full transparency?

Hi @Dunfee , thanks for the interest. To answer your questions:

  • Yes the tree needs to have a collider as the manager component is ray casting towards to player to detect the game objects that need to be faded.
  • Not at the current stage of the product. I’ll add this feature request to the list of improvements and see if it’s possible to implement it for a next version.

Thanks for the info!
One last question. Is there a way to keep the shadows the same while fading out the object?

Not in any way I can think off, as the materials is changed to a transparent alternative the shadows do indeed vanish (which is quite noticeable but not something that can be fixed due to the nature how the system works). While I was typing this I was wondering if baking should make this possible but then you can’t use dynamic sky boxes (where the sun or moon is changing positions in game) any longer.

I have a sort of solution to this but it involves having two versions of the same gameobject. One that doesnt cast shadows and another one with its mesh renderer set to “shadows only”

Not ideal but it seems to be the only way that it will work at the moment

Hi @Dunfee , that’s indeed another way to achieve the desired results. But as you mention, not that ideal as well. I think it will always be a trade-off.

Version 1.0.3 is now live and does add support for orthographic camera’s.

Would it work with 2018’s terrain trees?

@RavenWoodsDE , thanks for your interest in See-Through.
The asset does only work with manually placed trees, not with those placed on the terrain with the tree placement tool. Also as the trees need to have a collider to work with the system, having those for all your trees would have an impact on your game performance.

Update 1.0.4 is now life on the asset store, added a demo scene and script to show how to use the asset in case you have a target that is instantiated.

Hi all,
In case you are still eyeballing the asset and in doubt to buy it now or later just a heads up that the price will increase towards 8$ beginning April 2022.

Hello there,
I’m using a Fixed camera that follow the player, so for the user there’s no way to move the camera.
For that reason I can’t even use obstacles avoidance system for the camera.
So could happen that the camera get inside other objects, (for example a tree)
Reason why if RayCasting is made from camera, the occluder object couldn’t be detected 'cause the norma are on the opposite way of the camera view point, so the raycast should be made from the target toward the camera.
Is it possible?

Hi @MaximilianPs , sorry for the late reply as it seems Unity forum didn’t notify me.
Thank you for your interest in SeeThrough.
I will have to check this user case and will get back to you during the course of next week.

1 Like

Hi @MaximilianPs ,
I had a look at your user case and while it is not possible by default I made it an extra feature of the asset. I will be launching an update on the asset store soon (later this week or next one). However if you already own the asset let me know by sending your invoice id to my support e-mail and I can provide you already the updated scripts.

1 Like

Don’t worry, I worked on it myself and also realized that replacing the material would be a problem for a single-dev like me, however if I bought your asset (I will send the invoice in PM) your work has me helped a lot to get what I need, so it was still worth buying :smile:

1 Like