Reader small image

You're reading from  Hands-On Unity Game Development - Fourth Edition

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781835085714
Edition4th Edition
Tools
Right arrow
Authors (2):
Nicolas Alejandro Borromeo
Nicolas Alejandro Borromeo
author image
Nicolas Alejandro Borromeo

Nicolas is a Game Developer currently working as a Senior Software Development Consultant for Unity in London. He is a Unity Certified Instructor teaching Unity clients all around the globe. He started using Unity in 2008 and teaching it in 2012 in several Universities and Education Institutes.
Read more about Nicolas Alejandro Borromeo

Juan Gabriel Gomila Salas
Juan Gabriel Gomila Salas
author image
Juan Gabriel Gomila Salas

Juan graduated in mathematics with a master's degree in Teacher Training, specializing in Game Design for social casino video games and as a video game developer using Unity and Unreal Engine for both PC and mobile. He was an online teacher on Udemy from 2015 to 2022 and subsequently on his own platform Frogames Training with over 150 online courses and over 500,000 students across 130 countries.
Read more about Juan Gabriel Gomila Salas

View More author details
Right arrow

Immersive Realism: Achieving Fullscreen Effects with Post-Processing

So far, we have created different objects, such as meshes, particles, and lights, to alter the visuals of our scene. But if we really want to get that slick, modern game look, it’s time to try our hand at some post-processing magic. We can tweak the settings of our objects here and there to improve our scene quality, but you will always feel that something is missing when comparing it with modern game scenes, and the thing that is missing is post-processing effects, that is, any effects applied after all the processing of the scene has been completed to enhance its visual results. In this chapter, you will learn how to apply effects to the final rendered frame, which will alter the look of the overall scene we have been creating in previous chapters.

In this chapter, we will examine the following image effect concepts:

  • Using post-processing
  • Using advanced effects

Let’s...

Using post-processing

Post-processing is a Unity feature that allows us to apply a stack of effects (several effects) one on top of the other to alter the final look of an image. Each one will affect the finished frame, changing the final image the user sees. In Figure 13.1, you can see a scene before and after applying image effects. You will notice a dramatic difference, but that scene doesn’t have any changes in its objects, including lights, particles, and meshes.

The effects applied are based on a per-pixel level. Have a look at both the scenes here:

Figure 13.1: A scene without image effects (left) and the same scene with effects (right)

In this section, we will discuss the following URP post-processing concepts:

  • Setting up a profile
  • Using basic effects

By mastering these URP post-processing concepts, you’ll be able to transform your scenes from the ordinary to the extraordinary. Let’s start preparing our scene...

Using advanced effects

Now we’re stepping up our game with some advanced effects. They’re a notch above what we’ve seen before, and a bit trickier, but don’t worry—we’ll guide you through them. In this section, we are going to see the following advanced effect concepts:

  • High Dynamic Range (HDR) and Depth Map
  • Applying advanced effects

Let’s start by discussing some requirements for some of these effects to work properly.

High Dynamic Range (HDR) and depth map

Remember the Depth Map from our last chapter? Some effects need more than just the rendered image; they require extra data like this to really shine. Some effects not only work with the rendered image but also need additional data. We can first discuss the Depth Map, a concept we discussed in previous chapters.

A Depth Map is an image rendered from the point of view of the camera, but instead of generating a final image of the scene, it renders...

Summary

In this chapter, we discussed basic and advanced full screen effects to apply in our scene, making it look more realistic in terms of camera lens effects and more stylish in terms of color distortions. We also discussed the internals of HDR and Depth Maps and how they are important when using those effects, which can immediately increase your game’s graphic quality with minimal effort.

Now that we have covered most of the common graphics found in Unity systems, let’s start looking at how to increase the immersion of our scene by using sounds in the next chapter.

Learn more on Discord

Read this book alongside other users, Unity game development experts, and the author himself. Ask questions, provide solutions to other readers, chat with the author via Ask Me Anything sessions, and much more. Scan the QR code or visit the link to join the community:

https://packt.link/unitydev

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Hands-On Unity Game Development - Fourth Edition
Published in: Jan 2024Publisher: PacktISBN-13: 9781835085714
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $19.99/month. Cancel anytime

Authors (2)

author image
Nicolas Alejandro Borromeo

Nicolas is a Game Developer currently working as a Senior Software Development Consultant for Unity in London. He is a Unity Certified Instructor teaching Unity clients all around the globe. He started using Unity in 2008 and teaching it in 2012 in several Universities and Education Institutes.
Read more about Nicolas Alejandro Borromeo

author image
Juan Gabriel Gomila Salas

Juan graduated in mathematics with a master's degree in Teacher Training, specializing in Game Design for social casino video games and as a video game developer using Unity and Unreal Engine for both PC and mobile. He was an online teacher on Udemy from 2015 to 2022 and subsequently on his own platform Frogames Training with over 150 online courses and over 500,000 students across 130 countries.
Read more about Juan Gabriel Gomila Salas