赞
踩
前言
好吧,这次总结的还是UE4,在这里要向CE3的朋友们道一声歉,因为本人水品有限,对于CE3的探索学习陷入了一个非常大的瓶颈,暂时抽不出一块儿大的单独的时间去解决,另外,自己也有一点小小的私念,就是期盼Cryteck官方能够推出新的版本,至少能完善一下现在的文档,所以只能暂时把CE3搁置下来,但是我并不会放弃CE3,CE3对我来说,绝对是个非常大的挑战,我不会轻易放弃他的。
好了回归正题,先来简单说一下写这篇文章的背景吧,这两天我试着看了一下UE4官方提供的实例“2014功能介绍”,在里面发现一个疑惑,在GDC_Demo这个场景的关卡蓝图部分,发现了一个没听说的玩意儿----“子蓝图”,这个实例中,有三个地图,感觉像是嵌套在了一起组成了一个大地图,于是带着这样的疑惑,就去群里问了一下,得到了“LevelStream”的信息,再然后,就去官方文档搜索,发现有专门这么一部分,于是,这篇文章便应运而生了!好吧,先从对官方文档的翻译总结说起!
LevelStream 实现超大无缝地图--官方文档学习
The Level Streaming feature makes it possible to load and unload map files into memory as well as toggle their visibility all during play. This makes it possible to have worlds broken up into smaller chunks so that only the relevant parts of the world are taking up resources and being rendered at any point. If done properly, this allows for the creation of very large, seamless levels that can make the player feel as if they are playing within a world that dwarfs them in size.
关卡流(LevelStreaming)使得我们在游戏运行的整个过程中动态的加载、卸载地图,这样以来,使得通过“把大地图分成许多小的部分,只有与当前状态有关的地图部分资源加载”的思路来创建无缝超大地图成为了可能。
World Composition has been designed to simplify managing large worlds. One of the goals is to avoid using a persistent level to store streaming information as it becomes a bottleneck when a team of level designers want to work on levels simultaneously. The persistent level does not store any streaming information and instead scans a folder and treats all found levels as streaming levels. Each streaming level has information stored in the package header, which World Composition can read without loading the level into memory. Initially, all levels except the persistent level are unloaded in World Composition. You can load or unload any part of the world manually at any time.
World Composition relies on a world origin shifting feature which, when used with distance based level streaming, allows you to create worlds which are not limited to the WORLD_MAX
constant value hard-coded into the engine.
WORLD_MAX
constant这个常量。
World Composition managed worlds can be activated by switching on Enable World Composition flag in World Settings.
You can also disable world origin shifting by switching off Enable World Origin Rebasing flag in World Settings.
被”世界组合“(World Composition)管理的世界可以通过勾选在世界设置中的Enable World Composition布尔值。
当然你也可以通过不勾选世界设置中的Enable World Origin Rebasing 布尔值来不使用世界原始转移特性。
After you have activated World Composition, all the levels in your project will be visible in the Levels window. To open this window, click on theWindows menu, and then select Levels.
The entries in the Levels window represent your world hierarchy.
当你激活了世界组合的命令后,你可以在关卡面板(英文:Level)中看到你项目中的所有关卡。关卡面板可以这样打开
在关卡窗口的条目代表你的世界的层次结构。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。