Book Image

Building a Game with Unity and Blender

Book Image

Building a Game with Unity and Blender

Overview of this book

In the wake of the indie game development scene, game development tools are no longer luxury items costing up to millions of dollars but are now affordable by smaller teams or even individual developers. Among these cutting-edge applications, Blender and Unity stand out from the crowd as a powerful combination that allows small-to-no budget indie developers or hobbyists alike to develop games that they have always dreamt of creating. Starting from the beginning, this book will cover designing the game concept, constructing the gameplay, creating the characters and environment, implementing game logic and basic artificial intelligence, and finally deploying the game for others to play. By sequentially working through the steps in each chapter, you will quickly master the skills required to develop your dream game from scratch.
Table of Contents (16 chapters)
Building a Game with Unity and Blender
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mist particles


Next, we will learn how to add some spooky and mysterious atmospherics to our game scene by creating a mist particle system. Start by creating an empty game object, then apply a particle system component to it. Because our scene is so huge, we'll need to make the particle system cover the entire scene. To achieve that, change the shape of the emitter to Box, and change its scale until it covers the entire scene. After that, check the Random Direction option so that particles will be spawned facing a random direction. That will make the mist look more natural.

Then, we will adjust the settings in the Main module:

  • Duration: 100

  • Looping: Enable

  • Prewarm: Enable

  • Start Lifetime: 100

  • Start Speed: 0.1

  • Start Size: 1

  • Start Color: A gradient of total transparency to opaque white

  • Max Particle: 10000

The start color looks something like this in the gradient editor:

We want the particles to be totally transparent when it gets spawned, and gradually change to opaque. After that, set the...