Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplatPartitioner.js:55 Cannot read properties of undefined (reading 'splatCount') #417

Open
marwie opened this issue Jan 31, 2025 · 0 comments

Comments

@marwie
Copy link

marwie commented Jan 31, 2025

Trying to download ksplats - this worked in the previous 0.4.5 version but throws in 0.4.7 for e.g. this splat: https://huggingface.co/cakewalk/splat-data/resolve/main/garden.splat

const compressionLevel = 1;
        const sphericalHarmonicsDegree = 1;
        // const splatAlphaRemovalThreshold = 5; // out of 255

        return PlyLoader.loadFromURL(url,
            opts?.onProgress,
            false,
            false,
            1,
            compressionLevel,
            true,
            sphericalHarmonicsDegree)
            .then((splatBuffer) => {
                console.debug("Downloaded optimized splat");
                KSplatLoader.downloadFile(splatBuffer, `${filename || "converted_file"}.ksplat`);
                return splatBuffer;
            });
SplatPartitioner.js:55 Uncaught TypeError: Cannot read properties of undefined (reading 'splatCount')
    at SplatPartitioner.partitionGenerator (SplatPartitioner.js:55:64)
    at SplatPartitioner.partitionUncompressedSplatArray (SplatPartitioner.js:19:34)
    at SplatBufferGenerator.generateFromUncompressedSplatArray (SplatBufferGenerator.js:18:56)

Image

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

No branches or pull requests

1 participant