Cinematic Stealth Project — Crystal Clear Windows #2

Allow your players to take a peek through the windows

Do you wonder how windows are made? No, not in real life. In videogames! It’s actually quite simple. In your 3D model, whether it is a primitive shape or a complex shape, you’ll just have to add one material which you can easily create in Unity.

Create a new material, and assign that to the model you want it to have the transparent window material. This will allow you to see real-time changes of that material.

Now, change the Rendering Mode to Transparent. This is pretty much self-explanatory.

You won’t notice any difference, and that’s because the material has an Albedo color without transparency (max alpha value). The lower the value, the more transparent it will get. You can use this to your advantage to make tinted glass! But, for now, keep the alpha value as low as you can / want.

Now, we can see the background. But there isn’t as reflectant as a clear window should be. And that’s because we need to adjust the Smoothness bar. Setting it at the maximum value will reflect everything and it will give it the look that we are looking for!

And that’s it! Quick and simple windows done in less than a minute!

--

--

--

Junior Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How Hakkiri helps Litera bridge product & engineering delivery

Expandable List Widget Packages

Elasticsearch/Kibana: 3 ways to add missing fields during runtime

Sugar 7.9 End of Life — Here’s what you can do now! | Rolustech

Streaming Applications Using AWS AppStream 2.0

How to tune Filebeat configuration & improve real time logging performance

Building a Wordle Solver

AWS EC2 Auto Scaling Groups | CheatSheet

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pablo Gómez Platón

Pablo Gómez Platón

Junior Unity Developer

More from Medium

2.5D Platformer — Improving the Ledge Grab #10

Journal 136 — Unity App Development, AR using Vuforia

My journey becoming a Unity game developer: Main Menu: Main Menu Music and Start button activated

Creating the Main Menu