Packt+ | Advance your knowledge in tech (2025)

GO TO TOP

You're reading from CryENGINE 3 CookbookOver 90 recipes written by Crytek developers for creating third-generation real-time games

Product typeBook

Published inJun 2011

PublisherPackt

ISBN-139781849691062

Pages324 pages

Edition1st Edition

Languages

C++

Concepts

3D Game Development

Authors (2):

Packt+ | Advance your knowledge in tech (2)Sean P Tracy

Sean P Tracy

Sean P Tracy

Sean Tracy is Crytek’s Senior Field Application Engineer for the award-wining CryENGINE. He is responsible for adapting the engine and its features to individual licensees, as well as developing full technical and ‘vertical slice’ demos for prospective and existing clients. Describing himself as a ‘generalizing specialist’, he also gives support directly to CryENGINE licensees, while designing and maintaining their workflows, pipelines and development techniques. Sean was recruited by Crytek in 2008 after working as an electronics technician for the Canadian Military. He was recruited due to his role in founding and leading development on the award winning total conversion project ‘MechWarrior:Living Legends’. Since then, he has been featured in numerous gaming magazines and has been invited to speak at many game related trade shows, conferences and seminars. He is an avid gamer with extensive modding experience on titles including Never Winter Nights, Battlefield, Doom and Quake.

Read more

See other products by Sean P Tracy

Packt+ | Advance your knowledge in tech (3)Dan Tracy

Dan Tracy

Dan Tracy

Dan Tracy is Cryteks Technical Level Designer for the award-winning CryENGINE and Crysis 2. He is responsible for the creation and maintenance of numerous technical features and external applications used for telemetry and optimization. Viewed as more than a level designer, Dan prides himself on pushing the envelope when it comes to improving both technical and game related designs across multiple production disciplines. Dan was recruited by Crytek in 2009 after the previous year working as a Quality Assurance Technician for BioWare. He was recruited due to his pivotal role in co-founding and leading development on the award winning total conversion project MechWarrior:Living Legends. Since then, he has been featured in numerous gaming magazines and has been interviewed by multiple media outlets. Dan is a passionate gamer, but an even more passionate modder and game designer with vast knowledge and experience with multiple engines and titles including Never Winter Nights Aurora, Battlefields engine Frostbite, Unreal 3, and CryENGINE.

Read more

See other products by Dan Tracy

View More author details

Table of Contents (18) Chapters

CryENGINE 3 Cookbook

    Credits

      About the Authors

        www.PacktPub.com

          Preface

            1. CryENGINE 3: Getting StartedFREE CHAPTER

            • Introduction
            • Opening a level in the CryENGINE 3 Sandbox
            • Navigating a level with the Sandbox Camera
            • Setting up a personalized toolset layout
            • How to customize toolbars and menus
            • Using the Rollup Bar
            • Selecting and browsing level objects
            • Restoring the CryENGINE 3 default settings

            2. Sandbox Basics

            • Introduction
            • Creating a new level
            • Generating a procedural terrain
            • Terrain sculpting
            • Setting up the terrain texture
            • Placing the objects in the world
            • Refining the object placement
            • Utilizing the layers for multiple developer collaboration
            • Switching to game mode
            • Saving your level
            • Exporting to an engine
            • Essential game objects
            • Running a map from the Launcher

            3. Basic Level Layout

            • Introduction
            • Making basic shapes with the Solids tool
            • Editing and merging solids
            • Grouping the objects
            • Utilizing the Geom entities instead of brushes
            • Road construction
            • Painting vegetation
            • Breaking up tiling with Decals
            • Making caves with Voxels
            • Creating Prefabs to store in external libraries

            4. Environment Creation

            • Introduction
            • Creating your first time of day using the basic parameters
            • Adjusting the terrain lighting
            • Using the real-time Global Illumination
            • Editing HDR lighting and the effects for flares
            • Creating a global volumetric fog
            • Creating a night scene with time of day parameters
            • Color grading your level
            • Creating a photo realistic ocean
            • Improving your sky with clouds
            • Making it rain in your level

            5. Basic Artificial Intelligence

            • Introduction
            • Placing the enemy AI
            • Generating the AI navigation
            • Forbidden boundaries
            • Forbidden areas
            • Setting up the interior navigation
            • Debugging the AI triangulation
            • Narrowing the AI's FOV to allow attacks from behind
            • Respawning AI

            6. Asset Creation

            • Introduction
            • Installing the CryENGINE 3 plugin for 3D Studio Max
            • Creating textures using CryTIF
            • Setting up units to match CryENGINE in 3ds
            • Basic material setup in 3ds
            • Creating and exporting static objects
            • Creating and exporting destroyable objects
            • Using advanced material editor parameters to create animation
            • Creating new material effects
            • Creating image-based lighting

            7. Characters and Animation

            • Introduction
            • Creating skinned characters for the CryENGINE
            • Ragdoll and physics for characters
            • Creating animation for your character
            • Previewing animations and characters for Sandbox
            • Creating upper body only animations
            • Creating locomotion animations
            • Animating rigid body geometry data

            8. Creating Vehicles

            • Introduction
            • Creating a new car mesh (CGA)
            • Creating a new car XML
            • Giving more speed to the car
            • Increasing the mass to push objects with the car
            • Defining a sitting location
            • Setting up multiple cameras for the car
            • Need for a machine gun
            • Giving the car a weak spot

            9. Game Logic

            • Introduction
            • How to beam the player to a tag point from a trigger
            • Making the AI go to a location when the player enters a proximity trigger
            • Debugging the Flow Graph
            • Creating a kill counter
            • Rewarding the player for reaching a kill goal
            • Displaying the player's health through a Flow Graph
            • Changing the player camera through key input
            • Creating a countdown timer

            10. Track View and Cut-Scenes

            • Introduction
            • Creating a new Track View sequence
            • Animating a camera in the Track View
            • Triggering a sequence using the Flow Graph
            • Animating entities in the Track View
            • Playing animations on entities in the Track View
            • Using console variables (CVars) in the Track View
            • Using track events

            11. Fun Physics

            • Introduction
            • Low gravity
            • Hangman on a rope
            • Tornadoes
            • Constraints
            • Wrecking ball
            • Rock slide

            12. Profiling and Improving Performance

            • Introduction
            • Profiling performance in the Sandbox
            • Saving level statics
            • Enabling the debug draw modes
            • Optimizing the levels with VisAreas and portals
            • Using light boxes and light areas
            • Activating and deactivating the layers

            Index

              Optimizing the levels with VisAreas and portals

              A VisArea is used to define indoor areas that have their own ambient color. You can also create indoor areas without this entity; however you will not be able to achieve totally dark lighting conditions as the bright outdoor ambient lighting also affects indoor areas.

              • Objects inside a VisArea won't be rendered from outside

              • Helps to set up lighting inside rooms

              • With portals you can cut holes inside the VisAreas

              • Portals have to be smaller than the VisArea shape

              • You can enable/disable portals via FG

              • You can have multiple portals in one VisArea

              Getting ready

              Open any level and set up a small structure similar to the screenshot as shown next.

              How to do it...

              Lets create our own VisArea:

              1. On theRollupBar, go to Area | VisArea.

              2. Place the VisArea shape around your room.

              3. Set the height.

                Be sure everything related is inside the VisArea. Try to stay on the grid. Keep the shape of the VisArea as simple as possible.

                Packt+ | Advance your knowledge in tech (4)

              4. Next we must create a portal for our room. Portals...

              Packt+ | Advance your knowledge in tech (5)The rest of the chapter is locked

              Unlock this book and the full library FREE for 7 days

              Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of

              Renews at ₹800/month. Cancel anytime

              Start free trial

              Previous Section

              Section 6 of 8

              Next Section

              Personalised recommendations for you

              Based on your interests and search pattern

              The Essential Guide to Creating Multiplayer Games with Godot 4.0Read moreThis Essential Guide to Creating Multiplayer Games with Godot 4.0 teaches you how to use the high-level network API with concrete use cases. You'll learn the fundamentals of multiplayer games and advanced techniques to improve players' experience.Read moreDec 202310h 52m
              Creating an RTS Game in Unity 2023Read moreA practical guide packed with essential concepts and techniques of game development, best coding practices for C# programming language, the most used design patterns to build high-quality projects, and techniques on implementing gameplay features to develop an RTS game using UnityRead moreOct 202318h 16m
              Unity CookbookRead moreUnlock the limitless potential of Unity 2023 game development with this new edition. Dive into over 140 expertly crafted recipes that empower you to pioneer VR and AR experiences, conquer mobile game development, and master audio techniques, all while building a strong foundation in Unity's latest tools and features. Elevate your skills, captivate your audience, and craft your gaming masterpiece with this essential resource.Read moreNov 202326h 0m
              Enhancing Virtual Reality Experiences with Unity 2022Read moreEnhancing Virtual Reality Experiences with Unity 2022 guides you through the latest features of Unity. Starting with the basics of understanding virtual reality, you'll systematically build the technical skills for building VR experiences in Unity, and finally implement everything you've learned in real-world projects.Read moreNov 202318h 52m
              Photorealistic Materials and Textures in Blender CyclesRead moreThis comprehensive, beginner-friendly, AI-assisted, step-by-step guide is carefully tailored to guide you through the journey of progressing from a beginner to an expert artist. The book helps you to master materials, procedural textures, lighting, and rendering in Blender's powerful Cycles render engine.Read moreOct 202313h 8m
              XR Development with UnityRead moreThis practical guide helps you create immersive VR, AR, and MR experiences using Unity 2021.3 or later versions. You'll learn to add physics, animations, teleportation, sound, effects, and hand-tracking to XR scenes and deploy them on VR headsets, simulators, and mobile devices—all that you need to create interactive XR projects in Unity is here.Read moreNov 20239h 28m
              Unreal Engine 5 - The Intermediate CourseRead moreElevate your game design journey with "Unreal Engine 5: The Intermediate Course." Dive into detailed studies of Materials and Textures, Landscapes and Open Worlds, Skeletal Meshes and Animations, and advanced Blueprint techniques. Transform your basic knowledge into professional-level expertise in Unreal Engine 5.Read moreDec 202318h 55m
              Learn Unity Game Development - Build Six Games with Unity 2023Read moreGet ready to dive into the exciting world of Unity game development and C# scripting! With a hands-on approach, you will craft a variety of thrilling 2D and 3D games using Unity and C#. Uncover the art of building and exporting games to the Android mobile platform. This course is tailor-made for someone who wants to learn Unity and C# through real-world projects.Read moreSep 202312h 3m
              Learn Intermediate C# Scripting for Unity Game DevelopmentRead morePrepare to immerse yourself in the thrilling realm of Unity game development and C# scripting! If you have already acquired the fundamentals of C# scripting with Unity and are eager to elevate your skills to the next tier, then you have found the ideal Intermediate C# Scripting Course. This course is custom-crafted for individuals seeking to master Unity and C# by working on practical, real-world projects.Read moreOct 20238h 6m
              Low Poly Modeling for Absolute BeginnersRead moreImmerse yourself in the mesmerizing realm of low poly modeling with Blender! Unleash your boundless creativity as you sculpt stunning 3D designs. Master Blender’s tools to create captivating low poly trees, rocks, and more. Elevate your artistry with powerful modifiers and bring your unique vision to life in the world of 3D.Read moreAug 202314h 37m
              Packt+ | Advance your knowledge in tech (2025)
              Top Articles
              Latest Posts
              Recommended Articles
              Article information

              Author: Golda Nolan II

              Last Updated:

              Views: 6232

              Rating: 4.8 / 5 (78 voted)

              Reviews: 93% of readers found this page helpful

              Author information

              Name: Golda Nolan II

              Birthday: 1998-05-14

              Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

              Phone: +522993866487

              Job: Sales Executive

              Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

              Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.