Book Image

CryENGINE 3 Game Development: Beginner's Guide

Book Image

CryENGINE 3 Game Development: Beginner's Guide

Overview of this book

CryENGINE is a complete game development environment used by AAA game development studio Crytek to produce blockbuster games such as Crysis 1, 2 and 3. This complete Beginner's Guide takes the would be game developer through the steps required to create a game world complete with event scripting, user interface and 3D environment in the free CryENGINE SDK. Learn to create game worlds with the CryENGINE 3 Sandbox, the tool used to create AAA games like the soon to be released Crysis 3. Follow straightforward examples to sculpt the terrain, place vegetation, set up lighting, create game sounds, script with Lua and code with C++. Learn to navigate the interface within the CryENGINE 3 Sandbox, the tool used to create AAA games like Crysis 1 and 2, as well as the soon to be released Crysis 3. Learn to create your own worlds by following straight forward examples to sculpt the terrain, place vegetation, set up lighting, create game sounds, and script with the Lua language. The book covers all beginner aspects of game development including an introduction to C++ for non- coders.
Table of Contents (18 chapters)
CryENGINE 3 Game Development Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

CryENGINE specific data types


Besides the standard data types, such as int, bool, float, and so on, there are a lot of other data types in CryENGINE 3, which are very helpful if you start writing your own code:

  • Vec3: It represents a vector of three float values, which is used for positions and 3D-vectors

  • Ang3: It represents a vector of three floats, which is used to represent Euler rotations

  • Matrix33: It represents a 3 x 3 float matrix, which is used for the rotation matrix

  • Matrix34: It represents a 3 x 4 float matrix, which is used to store the rotation matrix with translation

  • Quat: It represents a Quaternion, which is used to efficiently store rotations and interpolate them

While you work with CryENGINE 3, you will use them a lot. All the common operations are supported, such as addition, subtraction, dot product, cross product, and so on.

Let us see an example of a C++ function to determine which of the two points is the closest to a target point:

Vec3 GetClosestPositionToTarget(const Vec3 target...