Repository navigation
Gaussian splat unit test failure - Spherical Harmonic specular #13119
Copy link
Copy link
Closed
Description
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>
Reactions are currently unavailable
Activity
jjspace commentedon Jan 13, 2026
Just as another data point this test is also failing on my Linux system (Kubuntu 25.04) with exactly the same "incorrect" values.
javagl commentedon Jan 13, 2026
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...
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.
javagl commentedon Mar 27, 2026
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:
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)