Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/ply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,14 +519,12 @@ export class PlyReader {

const elementCallback = (element: PlyElement) => {
if (element.name === "chunk") {
if (
this.comments.some((comment) =>
comment.toLowerCase().includes("supersplat"),
)
) {
// SuperSplat compressed format detected
return initSuperSplat(element);
}
// "chunk" could conceivably be used for other formats, and we would
// ideally check for the comment: Generated by SuperSplat 2.*
// but gsplat also outputs this format without such a comment.
// In order to support both, let's assume a "chunk" element should
// be interpreted as this format.
return initSuperSplat(element);
}
if (isSuperSplat) {
return decodeSuperSplat(element);
Expand Down