Book Image

Mastering Unreal Engine 4.X

By : Muhammad A.Moniem
Book Image

Mastering Unreal Engine 4.X

By: Muhammad A.Moniem

Overview of this book

Unreal Engine 4 has garnered a lot of attention in the gaming world because of its new and improved graphics and rendering engine, the physics simulator, particle generator, and more. This book is the ideal guide to help you leverage all these features to create state-of-the-art games that capture the eye of your audience. Inside we’ll explain advanced shaders and effects techniques and how you can implement them in your games. You’ll create custom lighting effects, use the physics simulator to add that extra edge to your games, and create customized game environments that look visually stunning using the rendering technique. You’ll find out how to use the new rendering engine efficiently, add amazing post-processing effects, and use data tables to create data-driven gameplay that is engaging and exciting. By the end of this book, you will be able to create professional games with stunning graphics using Unreal Engine 4!
Table of Contents (22 chapters)
Mastering Unreal Engine 4.X
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

The animated fog


Almost like any other thing within Unreal Engine, you can do some animations for it. Some parts of the engine are super-responsive to the animation system, while other parts have a limited access. But speaking of the fog, it has a limited access in order to animate some values. You can use different ways and methods to animate values at runtime or even during the Edit mode.

Color

Height fog color can be changed at runtime using Linear Color Property Track in Matinee. We are going to dive deep inside Matinee in the next chapter, but here is the recipe in advance!

By following the given steps, you could change height fog color in-game:

  1. Create a new Matinee actor.

  2. Open the newly created actor within Matinee Editor.

  3. Create a height fog actor.

  4. Create a group in Matinee.

  5. Attach the Height Fog actor from the scene into the group created in the previous step.

  6. Create a linear color property track within the group.

  7. Choose the Fog Inscattering Color or Directional Inscattering Color option to...