Book Image

CryENGINE 3 Cookbook

By : Dan Tracy, Sean P Tracy (USD)
Book Image

CryENGINE 3 Cookbook

By: Dan Tracy, Sean P Tracy (USD)

Overview of this book

With every successive console generation, the cost, time, and complexity of developing games has grown. Meet CryENGINE3, a middleware engine that is the perfect fit for most developers allowing users to exceed current generation quality standards while using less people and time than ever thought possible.The CryENGINE3 CookBook is packed full of recipes for junior and senior developers alike. It covers everything from creating photo realistic architectural visualizations to implementing advanced physics such as ragdoll and tornado effects. Topics covered include the sandbox, level layout, environment creation, AI, character creation, creating vehicles, and game logic. Every recipe is designed to add AAA quality to your games. The CryENGINE3 SDK has many tools immediately available to developers of all disciplines. For designers the book has recipes for building up your own levels and populating your levels with intelligent AI and photo realistic assets. For artists we have recipes for practical workflow tools and techniques used when working with the advanced CryENGINE shaders and materials. For animators we have recipes that will bring your creations to life using skinned characters and advanced animation systems like locomotion groups. Finally for programmers we have recipes that show how to employ the core mechanics behind entities such as vehicles and weapons while also utilizing the strengths of the physics engine to create a unique and exciting game.
Table of Contents (18 chapters)
CryENGINE 3 Cookbook
Credits
About the Authors
www.PacktPub.com
Preface
Index

Creating Prefabs to store in external libraries


In this recipe, we will show you how to create a Prefab and look at some of the global uses for them.

Getting ready

  • Before we begin, you must have Sandbox 3 open

  • Then open My_Level.cry

  • Create the house object again from the Editing and Merging Solids recipe

  • Then place down the Objects/natural/trees/hill_tree/hill_tree_large_bright_green.cgf as a brush near the house

How to do it...

The house and the tree are just two objects that will be used to demonstrate creating a Prefab.

Before we begin, we must create a new library to store these objects:

  1. Open the DataBase View (View | Open View Pane | DataBase View).

  2. Open the Prefabs Library tab.

  3. Create a new Prefab library named My_Prefabs.

  4. Select both the House and the Tree.

  5. In the main toolbar, click on Prefabs | Make from Selection.

  6. Group = Houses.

  7. Name = House_with_tree.

  8. Click on the Save Modified Libraries in the DataBase View.

Note

If you do not perform step 8 and close the level, you risk losing your Prefab...