Book Image

Blender Game Engine: Beginner's Guide

Book Image

Blender Game Engine: Beginner's Guide

Overview of this book

Blender Game Engine is the part of the Blender 3D editor used to create actual 3D video games. It's the ideal entry level game development environment because you don't even need to learn to program. Create a complete game using Bender's innovative logic bricks."Blender Game Engine: Beginner's Guide" is the ideal introduction to game development. Using only logic bricks, the reader will create a complete game in Blender. By the end of the book the reader will be able to use their skills to create their own 3D games.
Table of Contents (11 chapters)
10
Index

Time for action — making waves

There are many ways to create water. The movement of fluids is not recommended to generate waves. Therefore, let's turn to texture movement, as it makes it appear as if the water moves. With the BGE, we can use several different techniques, depending on the final texture mode. In this case, it only works with GLSL.

  1. Make a plane by going to Menu | Add | Mesh | Plane. Scale it as you like, and apply a cloud texture twice, as water1 and water2, as follows:
    Time for action — making waves

    Tip

    The Cloud texture is one of a list of the available procedural textures that give an overall irregularity to the material, to look like the sea.

  2. Increase the size value of water2 a little bit, to 0.35, to see the difference between the two water objects with the same texture:
    Time for action — making waves
  3. Add a last layer with an image file of a JPG water texture (we use the one downloaded from the Internet by typing water texture free in the Search navigation).
    Time for action — making waves
  4. Go to the Modifiers tab and select Displace:
    Time for action — making waves

    Tip

    The Displace modifier...