跳到正文

Immersive Portals Vulkan

作者:hezhixin15

Unofficial Immersive Portals fork for Minecraft 1.21.1 (Fabric) that renders portals on VulkanMod with no OpenGL context.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Unofficial fork of Immersive Portals 6.0.6 for Minecraft 1.21.1 (Fabric) that runs on VulkanMod.

Immersive Portals lets you see through portals and travel between dimensions seamlessly. Upstream draws portal views with OpenGL. VulkanMod does not create an OpenGL context, so upstream cannot render portals at all. This fork adds a Vulkan-compatible rendering path so portals work with VulkanMod.

This project is not affiliated with qouteall, iPortalTeam or the VulkanMod project. Please report problems here, not upstream.

What is different from upstream

  • Terrain bridge: one VulkanMod terrain context per dimension, with chunk load and unload events routed to it.
  • Portal rendering without OpenGL: an off-screen framebuffer per portal, composited in a second buffer instead of the stencil buffer, with oblique near-plane clipping instead of glClipPlane.
  • Translucent layers inside a portal are re-sorted for that portal camera, and the viewport Y flip VulkanMod relies on is handled, which fixes water and translucent layers appearing upside down inside portals.
  • Indirect draw is kept: each portal pass appends its own draw parameters instead of overwriting a shared per-frame buffer.
  • Performance: a per-portal image cache (at most two live world renders per frame, the rest reuse the previous image), and conservative occlusion culling that skips a portal fully hidden behind a nearer one.
  • The OpenGL path is untouched. If you do not use VulkanMod, use the upstream mod.

Requirements

  • Minecraft 1.21.1 with Fabric Loader
  • Fabric API
  • VulkanMod 0.6.7 (the version this was tested on)
  • Java 21
  • Not compatible with Sodium, Iris or OptiFine

Installation

  1. Remove any existing Immersive Portals jar from the mods folder. The mod id is still immersive_portals, so the two jars cannot coexist.
  2. Put this jar, Fabric API and VulkanMod into the mods folder.

Known limitations

  • Only tested on 1.21.1 with VulkanMod 0.6.7.
  • Cached portal views lag by roughly 0.25 to 0.37 seconds while the camera moves, then become sharp once it stops.
  • GUI portal views and cross-portal views are not cached.
  • Every portal rendered live still costs a full world render, so frame rate drops as the number of live portals grows.
  • The water fix and the occlusion culling were verified structurally; bug reports with logs are welcome.

Links

License: Apache-2.0. LICENSE and NOTICE are kept in the repository and inside the jar.

The rendering API adaptation was written with AI assistance, and every AI-generated change was reviewed by the maintainer before it was committed.

常见问题

Immersive Portals Vulkan 支持哪些 Minecraft 版本?

Immersive Portals Vulkan 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Immersive Portals Vulkan 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分