概述
- 在染色玻璃立方体内渲染 3D “全息图”,并通过红石完全控制它们。
- 自带模型和动画(未捆绑任何内容)。
- 由 BlazeRod 渲染库驱动。
- 目前尚未测试服务器端游玩。
功能
- 基于 BlazeRod 的渲染,默认使用稳定的 CPU 变换路径。
- 支持 PMX/PMD 模型的外部 VMD 动画。将 .vmd 文件放置在模型旁边即可。
- 通用边缘总线 (UEB) 红石控制:
- 模型代码:0–255
- 动画代码:0–255(0 = 待机姿势)
- Ctrl 代码:0–15(保留供将来使用)
- 参数总线(缩放/偏移),量化为 0–15
- 提供有用的命令来检测、映射、监视和管理立方体。
- /holo map 输出中包含可点击的传送坐标。
要求
- Minecraft: 1.21.8
- Fabric Loader
- Fabric API
- Fabric Language Kotlin
使用方法
- 在世界中的任何位置构建一个实心的染色玻璃立方体。
- 注视染色玻璃方块时使用 /holo watch(或让自动监视功能自行识别)。
- 将你的模型内容放入 Minecraft 运行目录(而非模组 jar 包内):
- Windows: %appdata%/.minecraft/hologram/models/
- Linux: ~/.minecraft/hologram/models/
- 通过红石或命令选择模型/动画。
内容文件夹结构
- 每个模型代码对应一个文件夹(3 位数字,不足补零):
- hologram/models/003/
- model.pmx(也支持 .pmd/.glb/.gltf/.vrm)
- Idle.vmd, Walk.vmd 等(可选;仅 PMX/PMD 支持 VMD)
- manifest.json(可选)
可选 manifest.json
{
"file": "model.pmx",
"scale": 1.0,
"offset": [0.0, 0.0, 0.0],
"defaultAnimation": 0
}
- file: 指定模型文件(否则使用第一个支持的格式的文件)
- scale/offset: 应用于全息图根节点的默认变换
- defaultAnimation: 当 anim=0 时被忽略(因为 anim=0 代表待机姿势)
支持的格式
- 模型:.pmx, .pmd, .vrm, .glb, .gltf
- 动画:.vmd(MMD;期望具有匹配骨骼的 PMX/PMD 骨架)
红石:通用边缘总线 (UEB)
- 模组从立方体的边缘读取红石信号:
- 底部边缘 → 模型位(8 位)
- 顶部边缘 → 动画位(8 位)
- 垂直边缘(Y 轴中间中心)→ Ctrl 位(4 位)
- 如果总线在小立方体上只能容纳单个端口,则在该位置回退到模拟半字节(0..15)。
- 使用 /holo map 打印所有总线端口和参数总线的可点击坐标。
参数总线(模拟量,位于面中心)
- scaleQ: 北面面中心
- offXQ: 东面面中心
- offYQ: 南面面中心
- offZQ: 西面面中心
- 量化:0..15(0 = 非活动状态;使用 manifest 中的默认值)
- 客户端映射:
- 缩放:0.25 + (scaleQ / 15) * 1.75(如果 scaleQ > 0),否则为 1.0
- 偏移:(Q − 8) / 8.0(如果 Q > 0),否则为 0.0
动画行为
- anim=0 → 待机姿势(不应用动画)
- anim=1..N → 剪辑索引 0..N−1(超出范围时会循环)
- 切换剪辑时:模组会重置相对变换和变形以实现干净的重置。
命令
- /holo detect [x y z]
- /holo map [x y z]
- 打印总线布局(Model/Anim/Ctrl 端口 + Param 端口)。
- 坐标可点击:
- OP(权限 ≥ 2):点击进行传送。
- 非 OP:点击在聊天栏中获取建议的 /tp 命令。
- /holo codes [x y z]
- 打印该立方体当前的 Model/Anim/Ctrl 代码。
- /holo setcodes <model> <anim> <ctrl> [x y z]
- 设置代码并立即广播给客户端。
- 需要 OP(权限等级 2)。
- /holo watch [x y z]
- /holo unwatch [x y z]
提示
- 要播放第 10 号动画,请将 anim 总线设置为 10:
- 命令:/holo setcodes <model> 10 <ctrl>(仅限 OP)
- 红石:激活总和为 10 的 anim 总线端口,或将强度 10 输入到模拟回退端口。
- 要选择 003 模型文件夹,请将 model 总线设置为 3。
故障排除
- 没有任何渲染:
- 确保你正在监视该立方体(/holo watch)。
- 确保你的模型文件夹存在且包含受支持的模型文件。
- VMD 无法播放:
- 使用 PMX/PMD 模型;确保 VMD 文件位于模型文件旁边。
- 检查客户端日志中的 “Loaded scene ... animations=K”;K=0 表示未找到可用的剪辑。
- 切换动画时出现奇怪姿势:
- 模组会在切换剪辑时重置姿势。如果问题持续存在,可能是骨架或通道映射异常——请报告模型格式/骨架信息。
内容政策
- 本模组未捆绑任何模型。你必须自行提供内容。
- 附带的截图/视频仅用于演示,不属于模组 jar 包的一部分。
致谢
- 渲染库:BlazeRod by Fifth Light(又名 fifth_light)。感谢其提供的渲染器和格式加载器。
- 本项目不重新分发 BlazeRod 源代码;为方便起见,BlazeRod JAR 以 jar-in-jar 方式包含在内。
许可证
- 本模组:GPLv3。
- BlazeRod:LGPL 3.0。
- 第三方模型/媒体仍归其作者所有,并受其各自许可证约束。
Overview
- Render 3D “holograms” inside tinted-glass cuboids and control them entirely with redstone.
- Bring your own models and animations (none are bundled).
- Powered by the BlazeRod rendering library.
- Server play is currently not tested.
Features
- BlazeRod-based rendering, with a stable CPU transform path by default.
- External VMD animation support for PMX/PMD models. Drop .vmd files next to the model.
- Universal Edge Bus (UEB) redstone control:
- Model code: 0–255
- Animation code: 0–255 (0 = rest pose)
- Ctrl code: 0–15 (reserved for future use)
- Param bus (scale/offsets), quantized 0–15
- Helpful commands to detect, map, watch, and manage cuboids.
- Clickable TP coordinates in the /holo map output.
Requirements
- Minecraft: 1.21.8
- Fabric Loader
- Fabric API
- Fabric Language Kotlin
How to use
- Build a filled tinted-glass cuboid anywhere in the world.
- Use /holo watch while looking at a tinted glass block (or let auto-watch pick it up).
- Place your model content in your Minecraft run directory (not inside the mod jar):
- Windows: %appdata%/.minecraft/hologram/models/
- Linux: ~/.minecraft/hologram/models/
- Select model/animation via redstone or commands.
Content folder structure
- One folder per model code (3-digit, zero-padded):
- hologram/models/003/
- model.pmx (.pmd/.glb/.gltf/.vrm also supported)
- Idle.vmd, Walk.vmd, etc. (optional; VMD for PMX/PMD)
- manifest.json (optional)
Optional manifest.json
- Place next to your model:
{
"file": "model.pmx",
"scale": 1.0,
"offset": [0.0, 0.0, 0.0],
"defaultAnimation": 0
}
- file: picks a model file (otherwise the first supported file is used)
- scale/offset: default transform applied to the hologram root
- defaultAnimation: ignored when anim=0 (since anim=0 is rest pose)
Supported formats
- Models: .pmx, .pmd, .vrm, .glb, .gltf
- Animations: .vmd (MMD; expects PMX/PMD rigs with matching bones)
Redstone: Universal Edge Bus (UEB)
- The mod reads redstone from the cuboid edges:
- Bottom edges → Model bits (8)
- Top edges → Anim bits (8)
- Vertical edges (middle Y centers) → Ctrl bits (4)
- If a bus can only fit a single port on a small cuboid, it falls back to an analog nibble (0..15) at that one position.
- Use /holo map to print clickable coordinates for all bus ports and the param bus.
Parameter bus (analog, middle face centers)
- scaleQ: north face center
- offXQ: east face center
- offYQ: south face center
- offZQ: west face center
- Quantization: 0..15 (0 = inactive; use manifest defaults)
- Client mapping:
- Scale: 0.25 + (scaleQ / 15) * 1.75 (if scaleQ > 0), else 1.0
- Offsets: (Q − 8) / 8.0 (if Q > 0), else 0.0
Animation behavior
- anim=0 → rest pose (no animation applied)
- anim=1..N → clip indices 0..N−1 (wraps if out of range)
- On clip change: the mod resets relative transforms and morphs for a clean start.
Commands
- /holo detect [x y z]
- Detect cuboid bounds/size for where you’re looking or a position.
- /holo map [x y z]
- Print the bus layout (Model/Anim/Ctrl ports + Param ports).
- Coordinates are clickable:
- OP (permission ≥ 2): click to teleport.
- Non‑OP: click to get a suggested /tp command in chat.
- /holo codes [x y z]
- Print current Model/Anim/Ctrl codes for that cuboid.
- /holo setcodes <model> <anim> <ctrl> [x y z]
- Set codes and broadcast instantly to clients.
- Requires OP (permission level 2).
- /holo watch [x y z]
- Start watching a cuboid (bus is read and broadcast).
- /holo unwatch [x y z]
Tips
- To play animation 10, set anim bus = 10:
- Command: /holo setcodes <model> 10 <ctrl> (OP only)
- Redstone: power anim bus ports that sum to 10, or feed strength 10 to the analog fallback.
- To select model folder 003, set model bus = 3.
Troubleshooting
- Nothing renders:
- Ensure you’re watching the cuboid (/holo watch).
- Ensure your model folder exists and contains a supported model file.
- VMD doesn’t play:
- Use PMX/PMD models; ensure VMD files are next to the model file.
- Check client log for “Loaded scene ... animations=K”; K=0 means no usable clips were found.
- Weird pose when switching animations:
- The mod resets pose on clip change. If issues persist, the rig or channel mapping may be unusual—please report the model format/rig.
Content policy
- No models are bundled with this mod. You must supply your own content.
- The included screenshots/videos are for demonstration only and are not part of the mod jar.
Credits
- Rendering library: BlazeRod by Fifth Light (aka fifth_light). Thank you for the renderer and format loaders.
- This project does not redistribute BlazeRod source; BlazeRod JARs are included jar‑in‑jar for convenience.
License
- This mod: GPLv3.
- BlazeRod: LGPL 3.0.
- Third‑party models/media remain the property of their authors and are subject to their own licenses.
评论 0
登录后参与评分
还没有评论,来抢沙发吧