Cutscene API 是一个模组,允许你制作带有摄像机移动和可选特效的过场动画,并在游戏中实时播放。它旨在供地图制作者和模组制作者使用,以提升其项目的视觉效果。
功能概览
决定玩家所见内容的核心是过场类型(cutscene type),即简称为过场(cutscene)的东西,它在数据包中定义。过场具有 持续时间(以刻为单位)、摄像机的 路径、玩家在观看过场时允许执行的 动作 列表、开始 和 结束 过渡效果,以及一些特殊的 特效。所有这些元素都是可选的,但组合使用时,它们能够创造出精美的过场动画。
你可以在下方的折叠框中找到更多详细信息:
路径
在过场期间,玩家的摄像机可以沿着特定路径移动。该路径由一组线段定义,每个线段可以是简单的直线、贝塞尔曲线、Catmull-Rom 样条线、静态点,或由数学函数定义坐标的特殊点。摄像机的旋转也使用相同类型的线段来定义,此外还有一种特殊线段,允许你从当前位置注视特定点。
过渡
玩家不需要突然进入过场状态——你可以指定一种过渡效果,使其看起来更美观。目前已实现的过渡效果包括“平滑缓动”(smooth ease),它让你平滑地进入或离开过场路径;以及“淡入淡出”(fade),它将屏幕渐变为某种颜色(不一定是单一颜色或恒定颜色),然后开始或结束过场。动作开关
在过场期间,你可以阻止玩家移动、转头、破坏方块、使用物品、受到伤害,或者让他们进入旁观者模式,使生物不再将其作为目标。目前这一功能略显不稳定。特效
除了摄像机路径外,你可能还希望玩家在过场中看到某些文本或图像。特效功能可以实现这一点。目前已实现的特效包括“出现文本”(appearing text),它会随时间逐渐显现;“三角形带”(triangle strip),可用于绘制简单的几何图形;“矩形”(rectangle),用于绘制矩形;以及“纹理贴花”(texture blit),用于在指定位置绘制纹理。命令
/cutscene start <player> <type> [at_preview | position] [start_camera_rotation] [path_rotation] - 在指定位置启动过场,摄像机初始朝向 start_camera_rotation,路径围绕起始位置旋转 path_rotation
/cutscene stop [player] - 停止某位玩家的过场
/cutscene preview set <type> [start_pos] [path_rotation] - 从某一点预览过场路径,该路径围绕该点进行旋转
/cutscene preview hide - 隐藏预览
亲自体验
在源代码仓库中,有一个名为 "Example Cutscenes" 的文件夹,其中包含一个数据包,里面有许多我用来测试新功能的过场动画,你也可以用它来了解该模组的功能。它们有时可能显得有些奇怪,但足以展示其能力。
兼容性
我尽力使该模组尽可能与其他模组兼容。应该不会出现任何问题。
我发布的绝大多数版本通常向后兼容,尤其是在格式方面。
Cutscene API is a mod that allows you to make cutscenes with camera movement and optional effects, and play them in-game in real time. It is intended to be used by map and mod makers to make their projects more beautiful.
Feature overview
The thing that defines what a player sees is a cutscene type, or simply a cutscene, defined in a data pack. Cutscenes have a length (in ticks), a path for the camera, a list of actions that a player is allowed to do when watching a cutscene, a start and end transition, as well as some special effects. All of these are optional, but when combined, they allow for making beautiful cutscenes.
You can find more details in the spoiler boxes below:
Path
The player's camera may follow a certain path during a cutscene. This path is defined by a set of segments, each of which can be either a simple line, a Bézier curve, a Catmull-Rom spline, a static point, or a special point, whose coordinates are defined by math functions.The camera's rotation is defined using the same kinds of segments, as well as a special one that lets you look at a specific point from where you are.
Transitions
The player doesn't have to snap into a cutscene - you can specify a transition to make it look more beautiful. Currently implemented transitions are "smooth ease" that makes you smoothly enter or leave the path of a cutscene and "fade", which fades the screen to a color (not necessarily one, or constant) and then starts or ends the cutscene.Action toggles
During a cutscene, you can prevent the player from moving, turning their head, breaking blocks, using items, taking damage, or make them a spectator so that mobs don't target them. This is a bit unstable at the time.Effects
Besides a camera path, you may want the player to see some text or images in a cutscene. Effects allow you to do that. Currently implemented effects include "appearing text" that slowly appears over time, "triangle strip" that can be used to draw simple geometry with triangles, "rectangle" that draws a rectangle, as well as "texture blit", which draws a texture on a specified position.Commands
/cutscene start <player> <type> [at_preview | position] [start_camera_rotation] [path_rotation] - starts a cutscene at the specified position, with the camera initially facing start_camera_rotation and the path rotated by path_rotation around the starting position
/cutscene stop [player] - stops a cutscene for a player
/cutscene preview set <type> [start_pos] [path_rotation] - previews a cutscene path from a certain point, rotated around that point
/cutscene preview hide - hides a preview
See it yourself
In the source repository, there is folder named "Example Cutscenes", which is a datapack with a bunch of cutscenes I use for testing out new features and that you can use to see what the mod has to offer. They're a little weird sometimes, but they get the job done.
Compatibility
I try to make the mod as compatible with other mods out there as possible. There should be no problems.
Most versions I release are typically backwards-compatible, especially format-wise.
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cutscene API
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
本次更新移植了来自更高版本的问题修复:
问题修复
- 修复了部分特效(尤其是自定义特效)在专用服务器上引发类加载错误的问题
- 相机实体不再渲染(我认为这曾导致其在过场动画结束后偶尔出现)
- 修复了“加载浮点提供者时出错”的刷屏日志
与往常一样,为之前版本制作的所有过场动画均可在此版本中正常使用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧