Game about a washed-up Space Marine, science babes and slimy aliens...and of course zombies! <...insert mutants if you hate zombies...>

Report RSS UNITY - Mesh Fading (without using Layers)

In this tutorial I'm going to show how you can use our MeshFade components to smoothly fade out meshes that obstruct view of camera's target. This system does not rely on Layers to determine which meshes should be faded.

Posted by on - Intermediate Client Side Coding

Greetings Earthlings,

Today we decided to do something different so we put together a lovely tutorial for those of you who give a martian dung pile.

What's this thing all about (the TL;DR section)...

If you're using Unity to build your game or something less interesting, you may have a situation where an object (which is part of the scenery for instance) blocks the camera's view of its target.

Depending on your implementation details and / or limitations you may need to hide said object until the camera has moved past it.

There are various ways to solve this problem and here we will discuss one of those ways. The cool or not so cool thing about this approach is that it doesn't rely on the Layers system to determine if a particular object should be hidden from view.

The video...

So without further ado here is the video. Have a look and listen to my ramblings recorded over the period of three days. So, it may feel like three different people put this together.

Anyways.

If you spot mistakes, nonsensical statements and or other utter BS please let me know and I'll make the necessary corrections and or changes. Provided you are correct of course :)

If you are having trouble using this system in your game don't be shy, post your questions. Also, if there are features that you would like to see added to the system feel free to post them in the forum linked below as well.

Links, resources, code and so on...

You can find all of the code for the components mentioned in this video in this forum thread.
Additionally I wanted to mention the assets we used in the video, for those of you who are working on a similar game or perhaps a game that could use some of those assets.

So, here it goes:

I hope that at least someone will find this useful :D
- Alex

Post comment Comments
Borzi
Borzi - - 196 comments

Interesting tutorial :) thank you (tracking)!

Reply Good karma Bad karma+2 votes
alexfeature Author
alexfeature - - 78 comments

It was an interesting experience :)

Never realised how hard it is to say something on video and not sound like a rambling idiot at the same time. I'm sure the second tutorial will be a lot better.

Thanks for watching.
- Alex

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: