From 0ff6036fcc6262487a5dd1729fd5cf79e6ef9979 Mon Sep 17 00:00:00 2001 From: Dustin Norberg Date: Mon, 21 Sep 2026 08:54:25 -0400 Subject: [PATCH] Render full destination preview volume --- docs/PORTING.md | 7 +++++-- gradle.properties | 2 +- .../client/preview/PonderDestinationPreviewRenderer.java | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/PORTING.md b/docs/PORTING.md index 7945b69..d853656 100644 --- a/docs/PORTING.md +++ b/docs/PORTING.md @@ -132,8 +132,11 @@ square horizontal footprint with a vertical slice spanning 64 blocks below and 63 blocks above the recorded linking location. Version 0.1.18 changes the preview cache to 9-by-64-by-9, spanning 32 blocks -below and 31 above the link point. The Ponder section remains locked to the -centered 9-by-7-by-9 window so the book retains a readable close-up. +below and 31 above the link point. Its camera is centered on a 9-by-7-by-9 +window around the link point so the book retains a readable close-up. + +Version 0.1.19 renders the complete 9-by-64-by-9 snapshot in that Ponder +scene while retaining the target-centered camera framing. The preview code is separated behind a renderer interface and uses an isolated Ponder level populated from server-authoritative destination snapshots. diff --git a/gradle.properties b/gradle.properties index 2f8ca50..fda5ed8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -33,7 +33,7 @@ mod_name=Rivencraft # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=LGPL-3.0-or-later # The mod version. See https://semver.org/ -mod_version=0.1.18 +mod_version=0.1.19 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/net/dnorberg/rivencraft/client/preview/PonderDestinationPreviewRenderer.java b/src/main/java/net/dnorberg/rivencraft/client/preview/PonderDestinationPreviewRenderer.java index 3d0545e..f4c25a4 100644 --- a/src/main/java/net/dnorberg/rivencraft/client/preview/PonderDestinationPreviewRenderer.java +++ b/src/main/java/net/dnorberg/rivencraft/client/preview/PonderDestinationPreviewRenderer.java @@ -44,10 +44,10 @@ public final class PonderDestinationPreviewRenderer implements DestinationPrevie Minecraft minecraft = Minecraft.getInstance(); previewLevel = new PonderLevel(BlockPos.ZERO, minecraft.level); snapshotSelection = SelectionImpl.of(new BoundingBox(0, 0, 0, 8, 63, 8)); - // The target sits at y=32 in the snapshot. Render only its familiar - // y=30..36 window, giving the page a fixed 9×7×9 close-up. - Selection viewSelection = SelectionImpl.of(new BoundingBox(0, 30, 0, 8, 36, 8)); - section = new WorldSectionElementImpl(viewSelection); + // Keep the target-centered 9×7×9 camera framing below, but give Ponder + // the entire snapshot so terrain above and below that window is still + // part of the rotating scene. + section = new WorldSectionElementImpl(snapshotSelection); } @Override