Skip to content

Add Minecraft 26.3 as a Fabric target on the multi-version layout - #79

Draft
AlexMelanFromRingo wants to merge 11 commits into
NVIDIAGameWorks:mainfrom
AlexMelanFromRingo:port/minecraft-26.3
Draft

AlexMelanFromRingo wants to merge 11 commits into
NVIDIAGameWorks:mainfrom
AlexMelanFromRingo:port/minecraft-26.3

Conversation

@AlexMelanFromRingo

@AlexMelanFromRingo AlexMelanFromRingo commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

This adds Minecraft Java Edition 26.3 as a target on the multi-version, multi-loader layout from #105: one catalog entry, versions/26.3/minecraft and versions/26.3/fabric. Minecraft 1.21.1 stays the primary target and its Fabric, Forge and NeoForge builds are unchanged. 26.3 is declared active with an experimental Fabric loader, so the maintainers can decide how far to support it.

The branch was rebuilt from current main (d5f4a4b). The 26.3 changes of the earlier old-layout version of this PR were carried into the new modules by three-way merges, so the upstream fixes since 0.1.1 are in 26.3 too. The first commit copies the 1.21.1 modules unchanged, so the following commits show only what 26.3 changes. The old-layout branch is kept as the tag v0.1.1-26.3-alpha.1 in the fork, from which a community alpha was published.

A per-target Gradle

Fabric Loom 1.19, the Loom that builds the unobfuscated 26.x, needs Gradle 9.8. ForgeGradle 6 refuses any Gradle 9, which is presumably why #105 pins the wrapper to 8.11.1. A Minecraft version can therefore pin its own Gradle:

  • project-state.json gains an optional versions.<version>.gradle with a version and its distribution SHA-256. 26.3 pins Gradle 9.8.2; 1.21.1 has no pin and keeps the default wrapper.
  • gradlew.bat reads -PmcVersion (quoted or not) and asks gradle/target-wrapper.ps1 for the wrapper directory. For a pinned target the script writes gradle/wrapper-<gradle version>/ (ignored) with a copy of the wrapper JAR and properties naming the pinned distribution; otherwise it returns gradle/wrapper.
  • settings.gradle fails a build that runs another Gradle than its target pins, with a message naming the pin.

CI, the release workflow and the developer tools all call gradlew.bat with -PmcVersion, so none of them needed a change. This is the one cross-target design choice here and the obvious one to discuss; moving 1.21.1 Forge to a Gradle 9 ForgeGradle and bumping the shared wrapper would be the alternative.

The 26.3 Minecraft module

Minecraft 26.x ships unobfuscated, renders through renderpearl and SDL3, and draws the world through an extract and submit pipeline. The module keeps #105's boundaries and implements them for 26.3:

  • Frame and window: OpenGL backend forced (GL 4.5 core) and the start-up Vulkan probe skipped; the HWND comes from SDL; presentation hooks GlSurface; the main render target is a texture, which the interop attaches to its own framebuffer by DSA; the frame hooks live in LevelRendererMixin.
  • Terrain: SectionBuildCapture takes 26.3's model sets and fluid wrap, so SectionBuilderMixin stays a thin delegate as on 1.21.1. Blocks are captured from BlockStateModel parts, whose layer is per quad, and visibility comes from LevelExtractor. There is no loader terrain hook on 26.3.
  • Entities: RemixSubmitCollector evaluates SubmitNodeCollector submits into the capture. Fabric API adds submitCustom to that interface, so the shared collector is abstract and the Fabric module supplies the concrete class.
  • Textures: glyph pages mirrored from command-encoder writes, animated sprites forwarded from the GPU animation tick, LabPBR sidecars kept out of atlases (Keep LabPBR sidecars out of the stitched atlases #114) through 26.3's SpriteSource.
  • Sky, clouds, particles, outline: environment attributes for time, stars, moon and clouds; the SINGLE_QUADS particle group; the outline from BlockOutlineRenderState.
  • Composite (Leave a frame Remix has not written out of the composite #111): GlInterop.copyFromTexture zeroes the alpha of the frame it copies into the shared image, through GlStateManager so vanilla's cached colour mask stays valid. 26.x has no textured full-screen quad that discards zero alpha, so TextureOverlay copies the Remix image into a render target of its own and blends it onto the main target with vanilla's render-target blit, which blends colour by source alpha and keeps the destination alpha. A frame Remix has not written leaves vanilla's frame as it is. TextureOverlayBlendTest fails if a later Minecraft version changes that blend or its shader.
  • Content: copper torch and lantern lights, 26.x data formats for the Copper Beacon, zones stored under data/rtx-remix-renderer/zones.dat with migration of a 1.21.1 save's file.

The Fabric module registers through Fabric API's 26.x names (menus, creative tabs, key mappings, model layers, level render events). Fabric's renderer API hooks (FRAPI and Indigo) are not ported, because 26.3 capture reads vanilla model parts.

renderer-core

Only Minecraft-neutral additions; 1.21.1 sources pass none of the new values, so their behaviour is unchanged:

  • Sprite snapshots gain an optional padding. Since 26.x the stitcher reserves a border around every sprite, and the block, particle and entity atlas builders fill it from the sprite's edge texels after composing each layer (SpritePadding).
  • The entity texture source names the block-entity atlas warm-up builds: beds by default, chests on 26.3, where beds are block models.
  • AtlasAnimationForwarder.isActive(), and light colours for the 26.x copper torches and lanterns.

Installer

  • Probes the Microsoft launcher's java-runtime-epsilon (Java 25) first, and records the target's Java major in a Prism instance whenever its pack is rewritten.
  • On ARM64, where Adoptium builds no Windows JDK 25, installs the Microsoft Build of OpenJDK, verified against its published SHA-256.
  • A source checkout with several declared versions selects the catalog default, as Gradle does without -PmcVersion; a release bundle still asks. The installer test fixtures that stage unqualified mods/<loader> JARs now stage the one-version catalog such a release carries.

How it was verified

  • gradlew.bat build test "-PmcVersion=26.3" "-Ploader=fabric": 899 tests pass.
  • gradlew.bat build test "-PmcVersion=1.21.1": Fabric 925, Forge 905 and NeoForge 899 tests pass.
  • tools\rtx.bat check --tests: ruff, ty and 1362 Python tests pass.
  • gradlew.bat package "-PmcVersion=26.3" "-Ploader=fabric" -Parch=win64 builds and verifies the JAR.
  • Every 26.3 mixin was checked against the 26.3 client JAR at the bytecode level: targets, @At call sites, @Shadow, @Accessor and @Invoker descriptors and handler signatures (67 mixins, 148 injection targets, no problems).
  • Played on 26.3 through a Prism instance with the showcase world.

Not ported or not verified

  • The 1.21.1 rain refraction pass is not ported to 26.3's pipelines, so Leave a frame Remix has not written out of the composite #111's change to its shader has no counterpart here.
  • Leave a frame Remix has not written out of the composite #111 is verified on 26.3 with the shaders cached only: the world renders as before and no GL error is logged. The compile it fixes, with the driver's shader cache empty, has not been run on 26.3.
  • The installer has not been run end to end for 26.3, and the ARM64 path has not run on ARM64 hardware.
  • CI for the 26.3 target has not run yet; it needs Java 25 and the pinned Gradle, both of which it should get from the catalog.

🤖 Generated with Claude Code

@AlexMelanFromRingo
AlexMelanFromRingo marked this pull request as ready for review November 1, 2026 16:21
@AlexMelanFromRingo AlexMelanFromRingo changed the title Port the renderer to Minecraft 26.3 Port the renderer, installer and tools to Minecraft 26.3 Nov 1, 2026
danzrikonew2 added a commit to danzrikonew2/rtx-remix-minecraft that referenced this pull request Nov 2, 2026
Adapts the save-wide storage and diagnostic-title corrections from NVIDIA upstream PR NVIDIAGameWorks#79 follow-up 600a95f by Alex Melan. Also preserves this fork's existing 26.3 dimension data and blocks fallback overwrites for unreadable or future-schema files.

Signed-off-by: danzrikonew2 <danzrikonew2@gmail.com>
@sambvfx

sambvfx commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this, and for splitting the mappings change out into #78 so each can be reviewed on its own.

To answer your question directly: 26.3 won't replace 1.21.1 on main. If we support more than one version, we don't want two branches that drift apart. Before taking a port, we want to settle how one repository builds and tests more than one game version and loader, so a change doesn't have to be tested by hand in each. This PR is the most complete picture we have of what 26.x needs, including the extract and submit pipeline, SDL3 input, the forced GL backend and Java 25, so it's very useful for that.

The exact set of versions we'll support is still being decided, and it will be chosen based on community interest. If you'd like to weigh in, the RTX Remix Discord has a thread for it: https://discord.com/channels/1028444667789967381/1565060125301936169

Please keep the branch, and feel free to switch it to a draft for now.

@AlexMelanFromRingo
AlexMelanFromRingo marked this pull request as draft November 6, 2026 15:53
@zm-develops

Copy link
Copy Markdown

Could you tag an alpha 26.3 release in your fork and create a jar?

@AlexMelanFromRingo

Copy link
Copy Markdown
Contributor Author

Sure, will do! I'm in Ukraine and we have power outages right now, so I'll build and tag the 26.3 alpha as soon as I'm back at my PC.

@AlexMelanFromRingo

Copy link
Copy Markdown
Contributor Author

@zm-develops Here it is: https://github.com/AlexMelanFromRingo/rtx-remix-minecraft/releases/tag/v0.1.1-26.3-alpha.1

It's an unofficial alpha built from this branch (upstream 0.1.1 ported to 26.3), Windows x64 only. The release notes list the requirements and have one warning: the installer moves an existing official 1.21.1 instance to 26.3, so either back up those worlds or drop the JAR into a separate 26.3 Fabric instance.

Work on the port continues. Next I'm moving 26.3 onto the new multi-version layout from #105, so it fits the way upstream now builds several versions.

AlexMelanFromRingo and others added 10 commits November 27, 2026 09:24
The 26.3 Minecraft and Fabric modules begin as copies of their 1.21.1
counterparts, so the following commits show only what 26.3 changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Three-way merges carry the old-layout 26.3 changes into
versions/26.3, keeping the upstream fixes the 1.21.1 copy already has.
It does not compile yet; later commits adapt the version-neutral
boundaries that the layout introduced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
project-state.json gains Minecraft 26.3 with an experimental Fabric
loader on Loom 1.19.3, Fabric Loader 0.20.1 and Fabric API 0.165.0, and
Java 25.

Loom 1.19 needs Gradle 9.8, which ForgeGradle 6 refuses to run, so a
version may now pin its own Gradle under versions.<mc>.gradle. gradlew.bat
reads -PmcVersion and runs gradle/target-wrapper.ps1, which writes a
wrapper directory for the pin beside the default one. settings.gradle
fails a build that runs another Gradle than its target pins. Targets
without a pin keep the default wrapper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The version-owned adapters that the layout introduced now speak 26.3:
SDL windows, the texture-backed main render target, SINGLE_QUADS
particle groups, environment attributes for sky and clouds, outline
render states, and Fabric API's 26.x names for menus, creative tabs,
key mappings, model layers and level render events.

The section-capture helper takes 26.3's model sets and fluid wrap, so the
mixin stays a thin delegate as on 1.21.1. 26.3 captures terrain from
vanilla BlockStateModel parts, so the Fabric renderer API hooks, the
model selectors and the loader terrain hooks are gone. renderer-core
gains AtlasAnimationForwarder.isActive() for the GPU animation hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Since 26.x the stitcher reserves a padding border around every sprite and
a sprite's x and y name the border's corner. renderer-core's sprite
snapshots gain an optional padding, which the block, particle and entity
atlas builders fill from the sprite's edge texels after composing each
layer, as vanilla's atlas blit does. The 1.21.1 sources pass none, so
their atlases are unchanged.

renderer-core also learns the 26.x copper torch and lantern light colours,
and the entity texture source names the block-entity atlas that warm-up
builds: beds on 1.21.1, chests on 26.3, where beds are block models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The copied tests read sources and configs under versions/26.3, expect
Java 25 mixin configs without a refmap, find the frame hooks in
LevelRendererMixin, and use 26.3's sprite-source loader. The custom
model layer test goes with the custom model path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
The Microsoft Launcher ships Java 25 as java-runtime-epsilon, which the
runtime probes now try first. A Prism instance records the selected
target's Java major on creation and whenever its pack is rewritten, so
an instance moved between Minecraft versions keeps a matching one.
Adoptium builds no Windows ARM64 JDK 25, so an ARM64 host falls back to
the Microsoft Build of OpenJDK, verified against its published SHA-256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Fabric API adds submitCustom to vanilla's SubmitNodeCollector, so the
shared capture collector is abstract and the Fabric module supplies the
concrete class, keeping loader APIs out of the Minecraft module. The
architecture test now looks for 26.3's texture-backed main render
target in the OpenGL host integration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
With two declared Minecraft versions, a source checkout selected none,
so the installer functions the tests load had no loader catalog. Like a
Gradle build without -PmcVersion, a checkout now selects the catalog's
default version; a release bundle still asks when it carries several.
The installer fixtures that stage unqualified mods/<loader> JARs stage
the one-version catalog such a release would carry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
@AlexMelanFromRingo AlexMelanFromRingo changed the title Port the renderer, installer and tools to Minecraft 26.3 Add Minecraft 26.3 as a Fabric target on the multi-version layout Nov 27, 2026
@AlexMelanFromRingo

Copy link
Copy Markdown
Contributor Author

As promised, the port now sits on the multi-version layout from #105: the branch is rebuilt from current main and adds Minecraft 26.3 as a catalog entry with versions/26.3/minecraft and versions/26.3/fabric. The 1.21.1 Fabric, Forge and NeoForge targets build and pass their tests unchanged, and 26.3 builds, tests, packages and plays.

One point needs your view before review: Loom 1.19 needs Gradle 9.8, which ForgeGradle 6 refuses. So a version can pin its own Gradle in project-state.json, and gradlew.bat selects it from -PmcVersion. The description has the details and the alternative.

The old-layout version of this branch is kept as the fork's v0.1.1-26.3-alpha.1 tag. The PR stays a draft until you say how you would like 26.3 to land.

This brings NVIDIAGameWorks#111 to 26.3. While Remix compiles its shaders it writes
nothing, so the shared image still holds the previous host frame, which
the composite drew upside down under the next one.

GlInterop.copyFromTexture now zeroes the alpha of the frame it copies
into the shared image, through GlStateManager so vanilla's cached colour
mask stays valid. 26.x has no textured full-screen quad that discards
zero alpha, so TextureOverlay copies the image into a render target of
its own and blends it onto the main target with vanilla's render-target
blit. That blit blends colour by source alpha and keeps the destination
alpha, so opaque Remix texels replace vanilla's and an unwritten frame
leaves vanilla's untouched. A test fails if a later Minecraft version
changes that blend or its shader. 26.3 has no rain refraction pass, so
NVIDIAGameWorks#111's shader change has no counterpart here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Alex Melan <59925151+AlexMelanFromRingo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants