We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4142c commit ea9e4e3Copy full SHA for ea9e4e3
1 file changed
src/ply.ts
@@ -519,14 +519,12 @@ export class PlyReader {
519
520
const elementCallback = (element: PlyElement) => {
521
if (element.name === "chunk") {
522
- if (
523
- this.comments.some((comment) =>
524
- comment.toLowerCase().includes("supersplat"),
525
- )
526
- ) {
527
- // SuperSplat compressed format detected
528
- return initSuperSplat(element);
529
- }
+ // "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);
530
}
531
if (isSuperSplat) {
532
return decodeSuperSplat(element);
0 commit comments