- CryENGINE 3 Cookbook
- Dan Tracy Sean Tracy
- 723字
- 2021-04-02 19:13:08
Utilizing the layers for multiple developer collaboration
A common question that is usually asked about the CryENGINE is how does one developer work on the same level as another at the same time. The answer is—Layers. In this recipe, we will show you how you may be able to utilize the layer system for not only your own organization, but to set up external layers for other developers to work on in parallel.
Getting ready
- Have
My_Level
open inside of Sandbox (after completing either the Terrain sculpting or Generating a procedural terrain recipe). - Review the Navigating a level with the Sandbox Camera to get familiar with the Perspective View.
- Review the Using the Rollup Bar recipe.
- Have the Rollup Bar open and ready.
- Review the Placing the objects in the world (place at least two objects) recipe.
How to do it...
- For this recipe, we will assume that you have your own repository for your project or some means to send your work to others in your team.
- First, start by placing down two objects on the map. For the sake of the recipe, we shall refer to them as Box1 and Box2. After you've placed both boxes, open the Rollup Bar and bring up the Layers tab.
- Create a new layer by clicking the New Layer button (paper with a + symbol).
- A New Layer dialog box will appear. Give it the following parameters:
- Name =
ActionBubble_01
- Visible = True
- External = True
- Frozen = False
- Export To Game = True
- Name =
- Now select Box1 and open the Objects tab within the Rollup Bar.
- From here you will see in the main rollup of this object with values such as – Name, Helper Size, MTL, and Minimal Spec. But also in this rollup you will see a button for layers (it should be labelled as Main). Clicking on that button will show you a list of all other available layers.
- Clicking again on another layer that is not highlighted will move this object to that layer (do this now by clicking on ActionBubble_01).
- Now save your level by clicking—File | Save.
Note
There is important information about saving your level in that recipe. Please make a note to review it.
Now in your build
folder, go to the following location: -... \Game\Levels\My_Level
. From here you will notice a new folder called Layers
. Inside that folder, you will see ActionBubble_01.lyr
.
This layer shall be the layer that your other developers will work on. In order for them to be able to do so, you must first commit My_Level.cry
and the Layers
folder to your repository (it is easiest to commit the entire folder).
After doing so, you may now have your other developer make changes to that layer by moving Box1 to another location. Then have them save the map.
Have them commit only the ActionBubble_01.lyr
to the repository. Once you have retrieved it from the updated repository, you will notice that Box1 will have moved after you have re-opened My_Level.cry
in the Editor with the latest layer.
How it works...
External layers are the key to this whole process. Once a .cry
file has been saved to reference an external layer, it will access the data inside of those layers upon loading the level in Sandbox.
It is good practice to assign a Map owner who will take care of the .cry
file. As this is the master file, only one person should be in charge of maintaining it by creating new layers if necessary.
There's more...
Here is a list of limitations of what external layers cannot hold.
External layer limitations
Even though any entity/object you place in your level can be placed into external layers, it is important to note that there are some items that cannot be placed inside of these layers. Here is a list of the common items that are solely owned by the .cry
file:
- Terrain
- Heightmap
- Unit Size
- Max Terrain Height
- Holes
- Textures
- Vegetation
- Environment Settings (unless forced through Game Logic)
- Ocean Height
- Time of Day Settings (unless forced through Game Logic)
- Baked AI Markup (The owner of the
.cry
file must regenerate AI if new markup is created on external layers) - Minimap Markers
See also
- The Saving your level recipe
- The Exporting to an engine recipe
- The Essential game objects recipe
- 3ds Max 2014標準教程(全視頻微課版)
- PrestaShop 1.3 Theming – Beginner’s Guide
- 邊做邊學:3ds Max 2014動畫制作案例教程
- UG NX 8.0基礎與實例教程
- AutoCAD快速自學寶典(2018中文版)
- 從零開始:Flash CS6中文版基礎培訓教程
- Photoshop案例實戰從入門到精通
- 中文版Photoshop CS6平面設計實例教程(第2版)
- Adobe創意大學After Effects產品專家認證標準教材(CS6修訂版)
- Photoshop 2024從入門到精通
- AutoCAD 2016中文版基礎教程(全圖解視頻版)
- AutoCAD 2020中文版入門、精通與實戰
- After Effects印象 影視高級特效光影篇
- 行攝 Photoshop CC后期修片高手之道(第2版)
- Photoshop-CorelDRAW 基礎培訓教程