Oculus Community Port
非官方客户端端 Forge 移植版 — 公开测试版
本项目并非 Oculus、Iris、Forge、Mojang、Microsoft、Sodium、Embeddium、OptiFine 或任何光影包开发者的官方发布。
Oculus Community Port 是由社区独立维护的,基于 Oculus/Iris 光影包架构的 Forge 延续版本。
支持版本
| Minecraft |
Forge |
Java |
| 1.21.11 |
61.2.0 |
21 |
| 26.2 |
65.1.0 |
25 |
这两个 Minecraft 版本使用独立的 JAR 文件。请下载与您游戏实例中 Minecraft 版本完全匹配的文件。
版本 0.3.0-beta.1 是首个公开测试版。它在光影包加载、兼容性、GLSL 预处理、故障恢复、安全性、构建质量以及 Forge 帧图渲染方面进行了显著改进。
在 AMD Radeon 集成显卡测试中,BSL v10.1.1 和 Complementary Reimagined r5.7.1 成功激活并执行了它们兼容的 world0/final 阶段。
此测试版比最初的 Alpha 版本更可用且更稳定,但它尚未成为完整的 Iris/Oculus 世界渲染器。请在报告视觉差异之前阅读下方的测试版限制说明。
仅限客户端
- 仅将模组安装在玩家客户端的
mods 文件夹中。
- 请勿将其安装在专用服务器上。
- 服务器不需要安装 Oculus Community Port。
- 该模组不添加任何方块、物品、实体、配方、维度、命令或服务端游戏玩法机制。
要求
- 上述列出的支持的 Minecraft、Forge 和 Java 组合之一
- 一个兼容 OpenGL 的图形后端
- 实例的
shaderpacks 文件夹内包含一个光影包 ZIP 文件或目录
- 不得安装 OptiFine
Vulkan 会被安全检测,但在此测试版中使用 Vulkan 时,光影包渲染将被禁用。
功能
光影包加载与兼容性
- 无需解压即可发现光影包目录和 ZIP 存档。
- 支持活动程序位于
shaders/world0 下的包。
- 保留对旧版根目录
shaders 全屏布局的支持。
- 扩展受限的光影包含(includes)。
- 执行正确的条件 GLSL 预处理。
- 处理常见的遗留声明和逗号分隔的统一变量(uniforms)。
- 支持兼容的遗留全屏顶点着色器。
- 提供常见的颜色、深度、阴影颜色和噪声纹理别名。
- 为经过测试的 BSL 和 Complementary Reimagined 版本提供所需的额外最终阶段统一变量。
- 检测不支持的活动采样器、统一变量、输出和着色器特性。
- 报告清晰的兼容性错误,而不是静默替换不安全值。
渲染与稳定性
- 使用 Forge 的现代帧图和 Minecraft 的活动 GPU 设备。
- 以确定性顺序执行兼容的
deferred*、composite* 和 final 全屏阶段。
- 为现代复杂光影包使用保守的兼容
world0/final 路径。
- 支持已识别的主颜色和主深度别名。
- 更新常见的帧、时间、世界、天气、相机、雾、天空和视角统一变量。
- 使用事务性光影包替换。
- 失败的包替换不再立即破坏正在工作的着色器状态。
- 保留最后一个已知良好的准备就绪的着色器源代码。
- 当请求的替换失败时,在资源重新加载后重新编译最后一个已知良好的着色器。
- 如果活动的着色器渲染通道失败,则安全地恢复原版渲染。
- 在处理过的 AMD Radeon 环境中处理窗口和全屏调整大小。
- 安全清理被替换的管道和统一变量缓冲区。
- 支持干净的世界和游戏关闭。
光影包安全性
光影包被视为不可信的本地输入。加载器包括针对以下内容的保护措施:
- 路径遍历和绝对路径
- 目录包内的符号链接
- 格式错误的 ZIP 存档
- 重复的 ZIP 条目
- 过大的单个文件
- 过大的目录和存档
- 过高的压缩率
- 过高的累计解压缩数据量
- 无效的 UTF-8 着色器源代码
- 包含循环
- 过深的包含层级和过多的包含数量
- 过度膨胀的着色器源代码
性能设计
渲染器包含几项效率改进:
- 光影包磁盘访问不会每帧发生。
- 着色器预处理不会每帧发生。
- 着色器编译不会每帧发生。
- 稳定的渲染目标描述按大小缓存。
- 统一变量数据使用映射的环形缓冲区。
- 多阶段全屏渲染在两个颜色目标之间乒乓切换。
- 兼容的 N 阶段管道现在执行
N mod 2 次全屏纹理复制,而不是 N 次复制。
- 一个命令编码器被重用于整个有序阶段序列。
- 当着色器禁用时,不会编译或执行任何光影包程序。
尚未完成受控的平均 FPS 或 1%低帧率基准测试比较。因此,此测试版不声称有测量的 FPS 提升。
已测试的光影包
以下光影包版本在 beta 验证期间使用:
- BSL v10.1.1
- Complementary Reimagined r5.7.1
它们兼容的 world0/final 通道已成功准备、激活并在两个支持的 Minecraft 目标上执行。
此测试确认了兼容的最终通道激活。这不意味着这些光影包中的每个视觉效果都已实现,也不意味着输出与 Iris 或原版 Oculus 具有完整的视觉一致性。
验证
Beta 构建已通过以下内容进行验证:
- Minecraft 1.21.11 上的 16 项自动兼容性和安全性测试
- Minecraft 26.2 上的 16 项自动兼容性和安全性测试
- 使用
--warning-mode all 的完整 Gradle 构建
- BSL v10.1.1 光影包的准备和激活
- Complementary Reimagined r5.7.1 光影包的准备和激活
- 窗口和全屏调整大小
- 重复的光影启用和禁用测试
- 30 秒实时渲染浸泡测试
- 故意替换不受支持的光影包
- 最后已知良好状态的光影恢复
- 清理世界和游戏关闭
用于实时测试的硬件:
- AMD Ryzen 5 5625U
- 集成 AMD Radeon 显卡
- OpenGL 4.6
- 16 GB DDR4 RAM
生成的工件也经过 Microsoft Defender 扫描,报告零检测。
重要的 beta 限制
这还不是一个完整的 Iris/Oculus 世界渲染器。
以下主要系统仍然缺失:
- 地形和区块 gbuffer 着色器路由
- 半透明地形 gbuffer 路由
- 实体和块实体着色器路由
- 粒子着色器路由
- 手持物品、持有物品和叠加层着色器路由
- 光影包控制的天空渲染
- 光影包控制的云层和天气渲染
- 光影包控制的水体和世界几何阶段
- 真实阴影贴图世界渲染
- 完整的附加
colortex 目标系统
- 完整的
depthtex 目标系统
- 上一帧和历史目标
- 法线和高光纹理
- 光影包提供的自定义纹理
- 完整的 OptiFine/Iris 属性系统
- 着色器配置文件和配置表达式
- 完整的矩阵和统一模型
- Vulkan 光影包渲染
由于这些限制:
- 当活动通道需要不支持的资源时,某些光影包仍会失败。
- 某些成功激活的光影包在全 Iris 或 Oculus 下可能看起来更接近原版。
- BSL 和 Complementary 测试仅确认兼容的最终通道激活,而非完整的视觉一致性。
- 不应将此 beta 宣传为支持每一个 OptiFine 光影包。
安装
- 安装一个受支持的 Minecraft 和 Forge 组合。
- 对于 Minecraft 1.21.11 使用 Java 21,对于 Minecraft 26.2 使用 Java 25。
- 下载匹配的
0.3.0-beta.1 生产 JAR。
- 将生产 JAR 放入客户端的
mods 文件夹中。
- 不要将
-sources.jar 放入 mods 中。
- 启动 Minecraft 一次。
- 将光影包 ZIP 文件或目录放入实例的
shaderpacks 文件夹中。
- 打开模组 → Oculus Community Port → 配置。
- 选择一个光影包。
- 启用光影并保存配置。
兼容性说明
- OptiFine:不兼容。在使用此模组前请将其移除。
- OpenGL:支持的着色器后端。
- Vulkan:已检测到,但光影包渲染被禁用。
- 专用服务器:请勿在服务端安装此模组。
- 其他 Forge 模组:在更广泛的测试继续期间提供尽力兼容。
- 资源包:尽力兼容。
- Rubidium, Embeddium 和 Sodium:未虚构或捆绑任何当前不存在的 Forge 依赖项。
报告问题
请将问题报告给社区端口,而不是原始 Oculus 或 Iris 开发者:
请包含:
logs/latest.log
- Minecraft 版本
- Forge 版本
- Java 版本
- Oculus Community Port 版本
- GPU 型号和驱动程序版本
- 活动的图形后端
- 光影包名称和确切版本
- 已安装的模组列表
- 精确的重现步骤
- 必要时附上截图
源代码和许可证
Oculus Community Port 根据GNU 宽通用公共许可证第 3 版仅许可(LGPL-3.0-only)分发。
社区端口源代码:
原始 Oculus 项目:
Iris 项目:
对应的源代码必须对每个发布的二进制文件保持可用。
这是一个经过大量修改的非官方社区分支。它与原始项目、光影包开发者、Mojang、Microsoft 或 Forge 无关,也未得到它们的认可或背书。
Oculus Community Port
Unofficial client-side Forge port — public beta
This project is not an official release of Oculus, Iris, Forge, Mojang, Microsoft, Sodium, Embeddium, OptiFine, or any shader-pack developer.
Oculus Community Port is an independently maintained Forge continuation of the Oculus/Iris shader-pack architecture.
Supported versions
| Minecraft |
Forge |
Java |
| 1.21.11 |
61.2.0 |
21 |
| 26.2 |
65.1.0 |
25 |
The two Minecraft versions use separate JARs. Download the file whose Minecraft version exactly matches your instance.
Version 0.3.0-beta.1 is the first public beta. It significantly improves shader-pack loading, compatibility, GLSL preprocessing, failure recovery, security, build quality, and Forge frame-graph rendering.
BSL v10.1.1 and Complementary Reimagined r5.7.1 successfully activated and executed their compatible world0/final passes during AMD Radeon integrated-GPU testing.
This beta is much more usable and stable than the original alpha, but it is not yet a complete Iris/Oculus world renderer. Please read the beta limitations below before reporting visual differences.
Client-side only
- Install the mod only in the player's client
mods folder.
- Do not install it on a dedicated server.
- The server does not need Oculus Community Port.
- The mod adds no blocks, items, entities, recipes, dimensions, commands, or server-side gameplay mechanics.
Requirements
- One of the supported Minecraft, Forge, and Java combinations listed above
- An OpenGL-compatible graphics backend
- A shader-pack ZIP or directory inside the instance's
shaderpacks folder
- OptiFine must not be installed
Vulkan is safely detected, but shader-pack rendering is disabled when using Vulkan in this beta.
Features
Shader-pack loading and compatibility
- Discovers shader-pack directories and ZIP archives without extracting them.
- Supports packs whose active programs are located under
shaders/world0.
- Retains support for the older root
shaders full-screen layout.
- Expands bounded shader includes.
- Performs proper conditional GLSL preprocessing.
- Handles common legacy declarations and comma-separated uniforms.
- Supports compatible legacy full-screen vertex shaders.
- Provides common color, depth, shadow-color, and noise texture aliases.
- Supplies additional final-pass uniforms required by tested versions of BSL and Complementary Reimagined.
- Detects unsupported active samplers, uniforms, outputs, and shader features.
- Reports clear compatibility errors instead of silently substituting unsafe values.
Rendering and stability
- Uses Forge's modern frame graph and Minecraft's active GPU device.
- Executes compatible
deferred*, composite*, and final full-screen stages in deterministic order.
- Uses a conservative compatible
world0/final path for modern complex shader packs.
- Supports recognized main-color and main-depth aliases.
- Updates common frame, time, world, weather, camera, fog, sky, and view uniforms.
- Uses transactional shader-pack replacement.
- A failed pack replacement no longer immediately destroys the working shader state.
- Retains the last-known-good prepared shader source.
- Recompiles the last-known-good shader after resource reload when a requested replacement fails.
- Safely restores vanilla rendering if the active shader render pass fails.
- Handles window and fullscreen resizing in the tested AMD Radeon environment.
- Cleans up replaced pipelines and uniform buffers safely.
- Supports clean world and game shutdown.
Shader-pack security
Shader packs are treated as untrusted local input. The loader includes protections against:
- Path traversal and absolute paths
- Symbolic links inside directory packs
- Malformed ZIP archives
- Duplicate ZIP entries
- Oversized individual files
- Oversized directories and archives
- Excessive compression ratios
- Excessive cumulative decompressed data
- Invalid UTF-8 shader source
- Include cycles
- Excessive include depth and count
- Excessively expanded shader source
Performance design
The renderer includes several efficiency improvements:
- Shader-pack disk access does not occur every frame.
- Shader preprocessing does not occur every frame.
- Shader compilation does not occur every frame.
- Stable render-target descriptions are cached by size.
- Uniform data uses mapped ring buffers.
- Multi-stage full-screen rendering ping-pongs between two color targets.
- Compatible N-stage pipelines now perform
N mod 2 full-screen texture copies instead of N copies.
- One command encoder is reused for the complete ordered stage sequence.
- When shaders are disabled, no shader-pack program is compiled or executed.
No controlled average-FPS or 1%-low benchmark comparison has been completed. Therefore, this beta does not claim a measured FPS increase.
Tested shader packs
The following shader-pack versions were used during beta validation:
- BSL v10.1.1
- Complementary Reimagined r5.7.1
Their compatible world0/final passes successfully prepared, activated, and executed on both supported Minecraft targets.
This testing confirms compatible final-pass activation. It does not mean that every visual effect from these packs is implemented or that the output has complete visual parity with Iris or the original Oculus.
Validation
Beta builds were validated with:
- 16 automated compatibility and security tests on Minecraft 1.21.11
- 16 automated compatibility and security tests on Minecraft 26.2
- Full Gradle builds using
--warning-mode all
- BSL v10.1.1 pack preparation and activation
- Complementary Reimagined r5.7.1 pack preparation and activation
- Window and fullscreen resizing
- Repeated shader enable and disable testing
- 30-second live rendering soaks
- Deliberately unsupported shader-pack replacement
- Last-known-good shader recovery
- Clean world and game shutdown
Hardware used for live testing:
- AMD Ryzen 5 5625U
- Integrated AMD Radeon graphics
- OpenGL 4.6
- 16 GB DDR4 RAM
The produced artifacts were also scanned with Microsoft Defender, which reported zero detections.
Important beta limitations
This is not yet a complete Iris/Oculus world renderer.
The following major systems are still missing:
- Terrain and chunk gbuffer shader routing
- Translucent terrain gbuffer routing
- Entity and block-entity shader routing
- Particle shader routing
- Hand, held-item, and overlay shader routing
- Pack-controlled sky rendering
- Pack-controlled cloud and weather rendering
- Pack-controlled water and world-geometry stages
- Real shadow-map world rendering
- The complete additional
colortex target system
- The complete
depthtex target system
- Previous-frame and history targets
- Normal and specular textures
- Pack-provided custom textures
- The complete OptiFine/Iris properties system
- Shader profiles and configuration expressions
- The complete matrix and uniform model
- Vulkan shader-pack rendering
Because of these limitations:
- Some shader packs will still fail when an active pass requires an unsupported resource.
- Some successfully activated packs may look closer to vanilla than they do under full Iris or Oculus.
- BSL and Complementary testing confirms compatible final-pass activation, not complete visual parity.
- This beta should not be advertised as supporting every OptiFine shader pack.
Installation
- Install one of the supported Minecraft and Forge combinations.
- Use Java 21 for Minecraft 1.21.11 or Java 25 for Minecraft 26.2.
- Download the matching
0.3.0-beta.1 production JAR.
- Place the production JAR inside the client's
mods folder.
- Do not place the
-sources.jar inside mods.
- Start Minecraft once.
- Place shader-pack ZIPs or directories inside the instance's
shaderpacks folder.
- Open Mods → Oculus Community Port → Config.
- Select a shader pack.
- Enable shaders and save the configuration.
Compatibility notes
- OptiFine: Incompatible. Remove it before using this mod.
- OpenGL: Supported shader backend.
- Vulkan: Detected, but shader-pack rendering is disabled.
- Dedicated servers: Do not install the mod server-side.
- Other Forge mods: Best-effort compatibility while broader testing continues.
- Resource packs: Best-effort compatibility.
- Rubidium, Embeddium and Sodium: No nonexistent current Forge dependency is fabricated or bundled.
Reporting problems
Report issues to the community port, not to the original Oculus or Iris developers:
Please include:
logs/latest.log
- Minecraft version
- Forge version
- Java version
- Oculus Community Port version
- GPU model and driver version
- Active graphics backend
- Shader-pack name and exact version
- Installed mod list
- Exact reproduction steps
- Screenshots when useful
Source code and license
Oculus Community Port is distributed under the GNU Lesser General Public License version 3 only (LGPL-3.0-only).
Community port source:
Original Oculus project:
Iris project:
Corresponding source must remain available for every published binary.
This is a substantially modified, unofficial community fork. It is not affiliated with or endorsed by the original projects, shader-pack developers, Mojang, Microsoft, or Forge.
评论 0
登录后参与评分
还没有评论,来抢沙发吧