Skip to content

Gaussian splat unit test failure - Spherical Harmonic specular #13119

Closed

Description

@ggetz

Running locally on MacOS, I see the following failing unit test:

5) Check Spherical Harmonic specular on a Gaussian splats tileset
     Scene/GaussianSplatPrimitive
     Expected 104 to be close to 189, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:180:42 <- Build/Specs/SpecList.js:200273:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 141 to be close to 173, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:181:42 <- Build/Specs/SpecList.js:200274:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 138 to be close to 97, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:182:42 <- Build/Specs/SpecList.js:200275:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 104 to be close to 210, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:195:42 <- Build/Specs/SpecList.js:200285:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 127 to be close to 156, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:196:42 <- Build/Specs/SpecList.js:200286:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 113 to be close to 98, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:197:42 <- Build/Specs/SpecList.js:200287:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 221 to be close to 127, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:209:42 <- Build/Specs/SpecList.js:200297:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 103 to be close to 80, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:210:42 <- Build/Specs/SpecList.js:200298:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>
     Expected 132 to be close to 141, -1.
    at <Jasmine>
    at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:211:42 <- Build/Specs/SpecList.js:200299:42
    at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
    at <Jasmine>

Activity

  1. jjspace commented on Jan 13, 2026

    @jjspace
    Contributor

    Just as another data point this test is also failing on my Linux system (Kubuntu 25.04) with exactly the same "incorrect" values.

    1) Check Spherical Harmonic specular on a Gaussian splats tileset
         Scene/GaussianSplatPrimitive
         Expected 104 to be close to 189, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:180:42 <- Build/Specs/SpecList.js:200273:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 141 to be close to 173, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:181:42 <- Build/Specs/SpecList.js:200274:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 138 to be close to 97, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:182:42 <- Build/Specs/SpecList.js:200275:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 104 to be close to 210, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:195:42 <- Build/Specs/SpecList.js:200285:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 127 to be close to 156, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:196:42 <- Build/Specs/SpecList.js:200286:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 113 to be close to 98, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:197:42 <- Build/Specs/SpecList.js:200287:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 221 to be close to 127, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:209:42 <- Build/Specs/SpecList.js:200297:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 103 to be close to 80, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:210:42 <- Build/Specs/SpecList.js:200298:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
         Expected 132 to be close to 141, -1.
        at <Jasmine>
        at packages/engine/Specs/Scene/GaussianSplatPrimitiveSpec.js:211:42 <- Build/Specs/SpecList.js:200299:42
        at compare (Specs/addDefaultMatchers.js:329:13 <- Build/Specs/karma-main.js:304:13)
        at <Jasmine>
    
  2. javagl commented on Jan 13, 2026

    @javagl
    Contributor

    Same on Windows. Not sure if this ever passed, or what may have changed in the last 5 months. The reason is probably that the scene has to be rendered 101 times, and not only 100 times 🤡

    A bit more seriously: When setting breakpoints at the right places and adding the 'debug canvas' parameters as in

    http://localhost:8080/Specs/SpecRunner.html?category=none&spec=Scene%2FGaussianSplatPrimitive%20Check%20Spherical%20Harmonic%20specular%20on%20a%20Gaussian%20splats%20tileset&debugCanvasWidth=400&debugCanvasHeight=400

    one can see the rendered result...

    Image

    which is expected to be "yellow" at this point.

    The data set should be replaced with the slightly more "predictable" one from #12790 (comment) so that the orientations and intended colors are clearer.

  3. javagl commented on Mar 27, 2026

    @javagl
    Contributor

    I'm no longer seeing this. The view that should look like a "dark yellow" (but looked cyan, as shown in the previous screenshot) now looks like this:

    Image

    We could still consider to replace the test data set from the specs with a "nicer, more predictable" one. But the main issue seems to be resolved.

    (Maybe @ggetz or @jjspace want to test it on Mac or Linux, but I assume that it will be the same as on Windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions