Skip to content

fix(oot): indirect mesh first word and task/mesh c0 SSBO tables - #5

Closed
MD5Visual wants to merge 2 commits into
Kolkka:feat/ootfrom
MD5Visual:fix/oot-mesh-first-c0
Closed

MD5Visual wants to merge 2 commits into
Kolkka:feat/ootfrom
MD5Visual:fix/oot-mesh-first-c0

Conversation

@MD5Visual

Copy link
Copy Markdown

Two NVN2 mesh-replay fixes from the nxnative/ocarina-recomp research:

  • Map the indirect mesh record as 16 bytes (was 8), and copy the first task/mesh workgroup from the record into the argument buffer.
  • Treat offset ranges 0x670..0x770 (task) and 0x770..0x870 (mesh) as driver c0 storage-buffer tables, so the mesh stages see their bound SSBO tables.

OoT's meshes read the useful first index from word 1, not NVN2's {count,0,0,first} word 3: word 3 removed the grass and made distant vertices tear. This keeps word 1 by default and makes the NVN2 layout opt-in with TOTK_MESH_FIRST_NEW=1.

Verified in play: grass present, vertex tearing gone. The distance-only ground-chunk crosshatch is a separate, still-open issue and is not claimed fixed here.

The 16-byte record map is still required, but OoT's meshes read the useful first index from word 1: word 3 removed the grass and made distant vertices tear. Default to word 1 and make NVN2's {count,0,0,first} layout opt-in with TOTK_MESH_FIRST_NEW=1.
@Kolkka

Kolkka commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Merged here e03a97f

@Kolkka Kolkka closed this Nov 10, 2026
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.

2 participants