Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CryENGINE 3 Cookbook

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

Arrow left icon
Product type Paperback
Published in Jun 2011
Publisher Packt
ISBN-13 9781849691062
Length 324 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Sean P Tracy Sean P Tracy
Author Profile Icon Sean P Tracy
Sean P Tracy
Dan Tracy Dan Tracy
Author Profile Icon Dan Tracy
Dan Tracy
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

CryENGINE 3 Cookbook
Credits
About the Authors
www.PacktPub.com
Preface
1. CryENGINE 3: Getting Started FREE CHAPTER 2. Sandbox Basics 3. Basic Level Layout 4. Environment Creation 5. Basic Artificial Intelligence 6. Asset Creation 7. Characters and Animation 8. Creating Vehicles 9. Game Logic 10. Track View and Cut-Scenes 11. Fun Physics 12. Profiling and Improving Performance Index

Navigating a level with the Sandbox Camera


The ability to intuitively navigate levels is a basic skill that all developers should be familiar with. Thankfully, this interface is quite intuitive to anyone who is already familiar with the WASD control scheme popular in most First Person Shooters Games developed on the PC.

Getting ready

You should have already opened a level from the CryENGINE 3 Software Development Kit content and seen a perspective viewport displaying the level.

The window where you can see the level is called the Perspective Viewport window. It is used as the main window to view and navigate your level. This is where a large majority of your level will be created and common tasks such as object placement, terrain editing, and in-editor play testing will be performed.

How to do it...

The first step to interacting with the loaded level is to practice moving in the Perspective Viewport window.

Note

Sandbox is designed to be ergonomic for both left and right-handed users. In this example, we use the WASD control scheme, but the arrow keys are also supported for movement of the camera.

  1. Press W to move forwards.

  2. Then press S to move backwards.

  3. A is pressed to move or strafe left.

  4. Finally, D is pressed to move or strafe right.

  5. Now you have learned to move the camera on its main axes, it's time to adjust the rotation of the camera.

  6. When the viewport is the active window, hold down the right mouse button on your mouse and move the mouse pointer to turn the view.

  7. You can also hold down the middle mouse button and move the mouse pointer to pan the view.

  8. Roll the middle mouse button wheel to move the view forward or backward.

  9. Finally, you can hold down Shift to double the speed of the viewport movements.

How it works...

The Viewport allows for a huge diversity of views and layouts for you to view your level; the perspective view is just one of many. The perspective view is commonly used as it displays the output of the render engine. It also presents you a view of your level using the standard camera perspective, showing all level geometry, lighting, and effects.

To experiment further with the viewport, note that it can also render subsystems and their toolsets such as flow graph, or character editor.

There's more...

You will likely want to adjust the movement speed and how to customize the viewport toyour individual use. You can also split the viewport in multiple different views, which is discussed further.

Viewport movement speed control

The Speed input is used to increase or decrease the movement speed of all the movements you make in the main Perspective Viewport.

The three buttons to the right of the Speed: inputs are quick links to the .1, 1, and 10 speeds.

Under Views you can adjust the viewport to view different aspects of your level

Top View, Front, and Left views will show their respective aspects of your level, consisting of bounding boxes and line-based helpers. It should be noted that geometry is not drawn.

Map view shows an overhead map of your level with helper, terrain, and texture information pertaining to your level.

Splitting the main viewport to several subviewports

Individual users can customize the layout and set viewing options specific to their needs using the viewport menu accessed by right-clicking on the viewports header.

The Layout Configuration window can be opened from the viewport header under Configure Layout. Once selected, you will be able to select one of the preset configurations to arrange the windows of the Sandbox editor into multiple viewport configurations. It should be recognized that in multiple viewport configurations some rendering effects may be disabled or performance may be reduced.

See also

  • To start building your own objects immediately, go to the Making basic shapes with the Solids Tool recipe in Chapter 3, Basic Level Layout

  • To modify the terrain of the current level, go to the Terrain Sculpting recipe in Chapter 2, Sandbox Basics

You have been reading a chapter from
CryENGINE 3 Cookbook
Published in: Jun 2011
Publisher: Packt
ISBN-13: 9781849691062
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
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 $19.99/month. Cancel anytime
Banner background image