Lumiera
Lumiera 是用于 Minecraft 的摄像机和过场动画工具。你可以通过游戏内的时间轴在关键帧上构建摄像机镜头,并在路径上挂载淡入淡出、音效和屏幕震动等定时事件,然后通过按键、命令或数据包来播放整个动画。
它支持 Forge、Fabric 和 NeoForge,涵盖三个 Minecraft 版本,因此你在任意平台制作的镜头在安装该模组的任何地方都能以相同的方式运行。
功能特性
- 在飞行过程中放置摄像机关键帧,然后拖动时间轴并实时预览效果。
- 选择关键帧之间的摄像机移动方式:直线、Catmull-Rom(卡特姆-罗姆)、带控制点的贝塞尔曲线、余弦曲线或阶梯式停顿。Centripetal Catmull-Rom 是安全默认值;它在急转弯时不会产生回环。
- 为每个片段设置缓动函数。提供简单的进入/退出缓动,以及二次方、三次方、正弦、指数、反向、弹性及弹跳效果,所有效果均通过真实的 cubic-bezier 曲线求解实现。
- 为每个关键帧设置视野和旋转角度,或在转弯时进行倾斜,也可将瞄准锁定到实体或固定点上。
- 保存按世界分类的路径和过场动画库,以便重命名、复制或删除。
过场动画提示
一条路径可以携带随播放触发的各种事件:
- 淡入淡出、色彩渐变遮罩和信噪比条(letterbox bars)
- 屏幕文本、动作栏消息和样式化字幕
- 放置在世界中或固定在摄像机上的音效和粒子提示
- 可调节强度、频率和衰减的屏幕震动
- 雾效、暗角以及用于营造氛围的平滑昼夜过渡
- 叠加在路径之上的注视点、环绕和偏移移动
- 基于表情驱动的视野、旋转和位置变化,模拟手持抖动效果
- 隐藏 HUD、锁定昼夜时间,以及在时间轴任意位置执行命令
在 1.21.1 及更高版本中,你还可以编排演员(actors):实体、玩家、物品、方块、盔甲架或粒子。每个演员都有自己的姿态关键帧和时间轴动作轨道,例如挥动、跳跃、攻击、破坏方块、死亡或播放音效。
在游戏中构建镜头
按 G 打开时间轴。将摄像机飞到合适位置并按 = 放置关键帧。添加几个关键帧后,拖动时间轴并按 ] 进行预览。所有按键均在“控制”列表中列出,且可重新绑定:
G 时间轴,. 编辑模式,, 查看模式
= 添加关键帧,Delete 删除,K 复制
[ 播放,] 预览,End 重置,M 库
命令
服务器和命令方块可通过 /lumiera 获得相同的功能支持:
/lumiera play <id> [speed] [targets] [center],其中 center 可以是实体坐标或 x y z
/lumiera stop [target] 和 /lumiera reset [target]
/lumiera list [saved|datapack] 和 /lumiera info <id>
/lumiera delete <id> 和 /lumiera rename <id> <newId>
/lumiera interpolation、/lumiera center、/lumiera reload
/lumiera cutscene play <id> [targets] 播放数据包中的过场动画,同时支持 stop、pause、resume、skip 和 seek <tick> 操作。
数据包
通过将 JSON 文件放入 data/<namespace>/cutscenes/ 目录下,可将过场动画与地图打包分发:
{
"schema": 1,
"id": "intro",
"duration_ticks": 40,
"fov": { "mode": "keyframed", "default": 90.0 },
"keyframes": [
{ "time": 0.0, "pos": { "x": 0, "y": 65, "z": 0 }, "rot": { "yaw": 0, "pitch": 0 }, "fov": 90.0, "path_type": "linear" },
{ "time": 2.0, "pos": { "x": 8, "y": 67, "z": 4 }, "rot": { "yaw": -30, "pitch": 10 }, "fov": 70.0, "path_type": "smooth" }
],
"camera_position_mode": "absolute"
}
位于 data/<namespace>/camera_paths/ 下的摄像机路径包含一个 events 列表,用于上述提示。时间可以使用 tick、time 或 at(秒)表示,事件类型接受命名空间 ID,如 lumiera:shake_camera。
支持的版本
- Minecraft 1.20.1 适用于 Forge 和 Fabric
- Minecraft 1.21.1 适用于 NeoForge 和 Fabric
- Minecraft 26.1 适用于 NeoForge 和 Fabric
演员编排功能仅支持 1.21.1 及更高版本。目前雾效提示仅在 NeoForge 1.21.1 上生效;在其他平台上虽能加载但无实际效果。屏幕文本和字幕在客户端使用 EmbersTextAPI。
给模组开发者
Lumiera 提供了一个摄像机修改器 API,允许其他模组驱动摄像机而无需争夺控制权。修改器根据优先级堆叠在一个独立的后台层上,因此一个模组的过场动画不会覆盖另一个模组的动画。此外,它还提供了一个小型运行时 API,可通过 ID 启动和停止过场动画。
许可证
Lumiera 根据 Ember 的模组开发许可证 (EML) v1.2 发布。请参阅 。简而言之:你可以自由使用和展示它,但未经许可以外,不得重新托管文件、分叉代码或在你的项目中使用其代码。
Lumiera
Lumiera is a camera and cutscene tool for Minecraft. You build camera shots from
keyframes on an in-game timeline, hang timed events like fades, sound, and screen
shake off the path, and play the whole thing back from a key, a command, or a
datapack.
It runs on Forge, Fabric, and NeoForge across three Minecraft versions, so a shot
you build in one place works the same everywhere the mod is installed.
What you can do
- Drop camera keyframes as you fly around, then scrub the timeline and preview the
result live.
- Choose how the camera moves between keyframes: straight lines, Catmull-Rom,
Bezier with handles, cosine, or a stepped hold. Centripetal Catmull-Rom is the
safe default; it won't loop on sharp turns.
- Set easing per segment. Plain ease in/out is there, along with quad, cubic, sine,
expo, back, elastic, and bounce, all solved as real cubic-bezier curves.
- Animate field of view and roll per keyframe, bank into turns, or lock the aim onto
an entity or a fixed point.
- Keep a per-world library of your paths and cutscenes to rename, duplicate, or
delete.
Cutscene cues
A path can carry events that fire as it plays:
- Fades, colour-ramp veils, and letterbox bars
- On-screen text, action bar messages, and styled captions
- Sound and particle cues, placed in the world or pinned to the camera
- Screen shake with adjustable intensity, frequency, and decay
- Fog, vignette, and a smooth time-of-day ramp for mood
- Look-at, orbit, and offset moves layered on top of the path
- Expression-driven field of view, rotation, and position for handheld drift
- HUD hide, time-of-day lock, and a command run at any point on the timeline
On 1.21.1 and newer you can also stage actors: entities, players, items, blocks,
armor stands, or particles. Each one gets its own pose keyframes and a track of
timed actions like swinging, jumping, attacking, breaking a block, dying, or
playing a sound.
Building a shot in-game
Open the timeline with G. Fly your camera into place and press = to drop a
keyframe. Add a few more, scrub the timeline, and press ] to preview. Every key is
listed under Controls and can be rebound:
G timeline, . edit mode, , view mode
= add keyframe, Delete remove, K duplicate
[ play, ] preview, End reset, M library
Commands
Servers and command blocks get the same reach through /lumiera:
/lumiera play <id> [speed] [targets] [center], where center is an entity or x y z
/lumiera stop [target] and /lumiera reset [target]
/lumiera list [saved|datapack] and /lumiera info <id>
/lumiera delete <id> and /lumiera rename <id> <newId>
/lumiera interpolation, /lumiera center, /lumiera reload
/lumiera cutscene play <id> [targets] plays a datapack cutscene, with stop,
pause, resume, skip, and seek <tick> alongside it.
Datapacks
Ship cutscenes with a map by dropping JSON under data/<namespace>/cutscenes/:
{
"schema": 1,
"id": "intro",
"duration_ticks": 40,
"fov": { "mode": "keyframed", "default": 90.0 },
"keyframes": [
{ "time": 0.0, "pos": { "x": 0, "y": 65, "z": 0 }, "rot": { "yaw": 0, "pitch": 0 }, "fov": 90.0, "path_type": "linear" },
{ "time": 2.0, "pos": { "x": 8, "y": 67, "z": 4 }, "rot": { "yaw": -30, "pitch": 10 }, "fov": 70.0, "path_type": "smooth" }
],
"camera_position_mode": "absolute"
}
Camera paths under data/<namespace>/camera_paths/ take an events list for the cues
above. Times can be given as tick, time, or at in seconds, and event types accept
namespaced ids like lumiera:shake_camera.
Supported versions
- Minecraft 1.20.1 on Forge and Fabric
- Minecraft 1.21.1 on NeoForge and Fabric
- Minecraft 26.1 on NeoForge and Fabric
Actor staging is 1.21.1 and newer. The fog cue applies on NeoForge 1.21.1 for now;
elsewhere it loads but has no effect. On-screen text and captions use EmbersTextAPI on
the client.
For modders
Lumiera exposes a camera modifier API so other mods can drive the camera without
fighting over it. Modifiers stack by priority on a separate background layer, so one
mod's cutscene won't stomp another's. A small runtime API starts and stops cutscenes
by id.
License
Lumiera is released under Ember's Modding Licence (EML) v1.2. See
. In short: use it and feature it freely,
but don't rehost the files, fork it or use the code in your own projects without permission.
评论 0
登录后参与评分
还没有评论,来抢沙发吧