Skip to content

Voxel: no black wall round underground rooms (the Abandoned Ship, the Sky Pillar floors) - #199

Open
Deunnis wants to merge 1 commit into
integrationfrom
fix/deunnis-underground-void-border
Open

Deunnis wants to merge 1 commit into
integrationfrom
fix/deunnis-underground-void-border

Conversation

@Deunnis

@Deunnis Deunnis commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

The console review in #198 found a "giant wall" in every Abandoned Ship room, and flickering side walls on every Sky Pillar floor. At the bottom of each room the floor stops a row below the player: the last rows aren't drawn, and the player standing in them shows through something dark.

That something is the border belt. VoxelMesh_EmitBorder stands the map's border up round outdoor maps, and leaves it out indoors. Your comment there explains why: the border indoors is the black filler outside the rooms, and stood up it was a black wall two tiles tall that hid the doorway. The ship's rooms are MAP_TYPE_UNDERGROUND, not indoor, so they still get that wall.

The change: one check in the belt loop. A border cell whose metatile is the black filler (VoxelAtlas_IsVoid, the same test the indoor classifier uses) is left out, whatever the map's type. The five host programs that build the mesh without the atlas get a stub returning false, next to their VoxelWorld_BorderMetatile stub. Their border stub already returns -1, which is also why voxel_engine_view.py never showed the wall.

Checks (Azahar, before and after, same spots)

  • Abandoned Ship, Captain's Office at (2,5) and (4,4): before, the desk, the item ball and the exit mat are hidden and the player shows through black. After, they're all there and the player is drawn plainly.
  • Abandoned Ship, Corridors 1F at (3,10) and (12,10), and the Hidden Floor Corridors at (6,9): the corridors' last row and the flooded corner show, and the player is drawn plainly.
  • Sky Pillar 1F and 3F, at both side walls: the floors are underground too, with the filler (0x201) as their border. Before, the belt's black wall stood in the same plane as the side walls, so they showed black or flickered (the review's "left and right walls flicker" on all five floors). After, the side walls stand plainly.
  • Granite Cave 1F (south and middle), Meteor Falls 1F, the Aqua Hideout 1F: identical before and after. Their borders are rock, not filler.
  • Host tests: verify-voxel-lighting, verify-voxel-trees and the ground mesh test all pass. voxel_engine_view.py check and voxel_grid_check.py build and run.

Left as it is: at a cave's south edge the rock belt still stands in front of the player, in Meteor Falls 1F's last rows and Magma Hideout 3F_3R's. The review noticed it there too: the player shows through the rock. That's a design question for your cave edges, so this PR doesn't touch it.

It's your engine, so I'll leave the merge to you.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LPrNNmSCD4r6j5TioF3EZ7

@Deunnis Deunnis changed the title Voxel: no black wall round underground rooms (the Abandoned Ship's) Voxel: no black wall round underground rooms (the Abandoned Ship, the Sky Pillar floors) Oct 25, 2026
@Deunnis
Deunnis force-pushed the fix/deunnis-underground-void-border branch from 79734eb to 997441c Compare October 26, 2026 22:50
The border belt stands the map's border up round outdoor maps. Indoors it
is left out, since the border there is the black filler outside the rooms
and stood up it was a black wall two tiles tall (VoxelMesh_EmitBorder).
The Abandoned Ship's rooms are MAP_TYPE_UNDERGROUND, not indoor, so they
still got that wall: the south one hid each room's last rows and the
player in them, seen through it.

A border cell whose metatile is the black filler (VoxelAtlas_IsVoid, as
the indoor classifier finds it) is now left out wherever it is. Caves'
borders are rock, not filler, and stand as before.

The host programs that build the mesh without the atlas get a stub, as
they have for VoxelWorld_BorderMetatile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Deunnis
Deunnis force-pushed the fix/deunnis-underground-void-border branch from 997441c to b7b1b34 Compare October 29, 2026 14:03
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 21, 2026
Original implementation by @Deunnis in ZallaxDev#199.
Original commit: b7b1b34
This commit ports that contribution to current integration.

Co-authored-by: Deunnis <234996103+Deunnis@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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.

1 participant