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

Road construction


In this recipe, we will explore the basic uses of the Road tool and how to paint down paths that are easy for the player to recognize.

Getting ready

  • Before we begin, you must have Sandbox 3 open

  • Then open My_Level.cry

How to do it...

  1. From the RollupBar, open the Objects tab.

  2. Select the Misc button.

  3. From the Object Type, select Road.

  4. Make sure you are set to Align to Terrain.

  5. Click down three points in roughly a straight line.

  6. Double-click for the fourth point to finalize the road.

  7. Open the Material Editor (M).

  8. Assign the material materials | Terrain | roads | road_asphalt01 to the road.

How it works...

The Road tool is a spline that projects a repeating texture along the terrain surface.

There's more...

The following are some of the definitions to the parameters for the road as well as how you can edit the shape of the road.

Road parameters

  • Width: This is the width of the road in meters.

  • StepSize: This affects the tiling amount on the road. It is used for both the texture and the curves...