Skip to content

Move guides to the developer site, add version/asset metadata to LOD and voxel headers#261

Merged
slimbuck merged 6 commits into
playcanvas:mainfrom
slimbuck:lod-dev
Jun 12, 2026
Merged

Move guides to the developer site, add version/asset metadata to LOD and voxel headers#261
slimbuck merged 6 commits into
playcanvas:mainfrom
slimbuck:lod-dev

Conversation

@slimbuck

@slimbuck slimbuck commented Jun 12, 2026

Copy link
Copy Markdown
Member

This PR moves repo documentation to the PlayCanvas developer site and extends the LOD and voxel output headers with identifying metadata.

  • Removed the guides/ directory (COLLISION.md, DOCKER.md, STREAMED_SOG.md and all guide images). These guides now live on developer.playcanvas.com, alongside new on-disk format specifications for streamed SOG and voxel output.
  • README links now point at the developer site, and the guides list includes the two new format specifications.
  • lod-meta.json now includes version: 1, asset.generator, total splat count, and per-LOD-level counts. The environment key is omitted when the scene has no environment splats instead of being written as null.
  • The .voxel.json header now includes asset.generator, matching the SOG and LOD writers.

@slimbuck slimbuck requested a review from Copilot June 12, 2026 21:43
@slimbuck slimbuck self-assigned this Jun 12, 2026
@slimbuck slimbuck added the enhancement New feature or request label Jun 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds formal on-disk format specifications for streamed SOG and voxel outputs, and updates the voxel/LOD writers to emit identifying asset metadata and additional header fields to support versioning and compatibility.

Changes:

  • Added new format specification docs for streamed SOG (lod-meta.json) and voxel (.voxel.json / .voxel.bin) outputs.
  • Extended LOD (lod-meta.json) and voxel headers to include asset.generator; LOD headers also gain version, total count, and per-LOD counts, and omit environment when absent.
  • Updated README and guides to link to the new specifications.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/lib/writers/write-voxel.ts Adds asset.generator to .voxel.json metadata using the tool version.
src/lib/writers/write-lod.ts Extends lod-meta.json schema with version/asset metadata and splat counts; omits environment when absent.
README.md Adds links to the new format specification documents.
guides/VOXEL_FORMAT.md Introduces voxel format v1.1 specification (header + binary layout + octree semantics).
guides/STREAMED_SOG.md Links the streamed SOG guide to the new streamed SOG format specification.
guides/STREAMED_SOG_FORMAT.md Introduces streamed SOG format v1 specification (lod-meta.json schema + semantics).
guides/COLLISION.md Links collision guide voxel output to the voxel format specification.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread guides/VOXEL_FORMAT.md Outdated
Comment thread src/lib/writers/write-lod.ts
@slimbuck slimbuck changed the title Add format specifications for streamed SOG and voxel outputs, extend headers with version/asset metadata Move guides to the developer site, add version/asset metadata to LOD and voxel headers Jun 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 15 changed files in this pull request and generated 2 comments.

Comment thread src/lib/writers/write-voxel.ts
Comment thread src/lib/writers/write-voxel.ts
@slimbuck slimbuck marked this pull request as ready for review June 12, 2026 22:19
@slimbuck slimbuck requested a review from a team June 12, 2026 22:20
@slimbuck slimbuck merged commit 46dac72 into playcanvas:main Jun 12, 2026
3 checks passed
@slimbuck slimbuck deleted the lod-dev branch June 12, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants