open-standards/wai/wai-rs/tests/vectors/int_splat/splat.json
Transaction Science 8582c0d745 wai-web: decodeIntSplat binding + per-attr ranges for the in-browser 3D demo
- wai-web::decodeIntSplat (splat_int feature, src/int_splat.rs → DecodedSplat{attr,
  nAttr, s}): the same pure-i64 decode in the browser, returning the [14,S,S] integer
  attribute tensor for in-page hash-verify (fnv1aHex) before a sink-supplied
  rasterizer presents it.
- wai_int_splat_export.py now emits per-attribute lo/hi ranges so the presentation
  layer can un-normalize the attribute tensor back to Gaussians (pos/scale/colour/
  opacity). attr_hash unchanged (5a94ebc9f0399a35) — the committed vector + never-skip
  test still pass.

Live at wai.transaction.science/splat: decodes 1024 gaussians in ~15 ms, hash-verifies
the cloud against the native reference, then rasterizes a rotating point cloud — the
int_hyper of 3D, pinning the attributes not the pixels.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-28 09:49:40 -04:00

1 line
No EOL
4.5 KiB
JSON

{"c": 32, "sh": 8, "sw": 8, "s": 32, "attr": 14, "afrac": 12, "cdfs": [[0, 2047, 5118, 8189, 14331, 23545, 34807, 48132, 55298, 60417, 63488, 65535, 65536], [0, 1023, 2046, 4093, 11260, 25594, 41987, 55297, 61440, 65535, 65536], [0, 1023, 2046, 9213, 24581, 39939, 54273, 61440, 65535, 65536], [0, 1023, 2046, 10236, 22522, 41989, 57346, 63489, 64512, 65535, 65536], [0, 1023, 2046, 4093, 12283, 18425, 35829, 54275, 62465, 63488, 63489, 64512, 65535, 65536], [0, 1023, 2046, 3069, 8188, 19450, 28664, 41988, 52226, 58369, 65535, 65536], [0, 1023, 2046, 8189, 17403, 38917, 53251, 61441, 64512, 65535, 65536], [0, 2047, 3070, 6141, 12284, 19451, 28665, 51202, 62464, 65535, 65536], [0, 4095, 15357, 24571, 44037, 53251, 59394, 62465, 64512, 65535, 65536], [0, 2047, 3070, 5117, 9212, 22521, 41989, 52226, 58368, 61439, 64510, 64511, 64512, 65535, 65536], [0, 1023, 1024, 1025, 3072, 6143, 11261, 24586, 36871, 46084, 52226, 57344, 61439, 64510, 64511, 64512, 65535, 65536], [0, 1023, 2046, 7165, 24570, 46083, 60417, 64512, 65535, 65536], [0, 1023, 8189, 17403, 27641, 34807, 48131, 56321, 61440, 64511, 64512, 65535, 65536], [0, 2047, 4094, 25595, 48131, 59393, 64512, 65535, 65536], [0, 3071, 12285, 26630, 38916, 53250, 59393, 64512, 65535, 65536], [0, 2047, 2048, 7167, 13309, 21499, 34823, 47108, 58370, 62465, 64512, 65535, 65536], [0, 3071, 4094, 10236, 20474, 32777, 44038, 49157, 53252, 60418, 61441, 63488, 65535, 65536], [0, 1023, 5118, 14332, 25594, 43015, 53253, 60419, 61442, 62465, 63488, 65535, 65536], [0, 1023, 4094, 25605, 44035, 59393, 63488, 65535, 65536], [0, 2047, 3070, 5117, 5118, 7165, 8188, 10235, 12282, 14329, 20470, 25588, 28658, 34799, 41995, 46089, 52230, 58371, 60418, 61441, 62464, 62465, 64512, 65535, 65536], [0, 2047, 2048, 7166, 11261, 17403, 27640, 33782, 48132, 53250, 56321, 64511, 64512, 65535, 65536], [0, 3071, 3072, 7167, 16381, 27657, 36871, 48132, 55298, 61440, 64511, 64512, 65535, 65536], [0, 1023, 1024, 1025, 6144, 17405, 27643, 44037, 53251, 57346, 62465, 64512, 65535, 65536], [0, 1023, 1024, 4095, 13309, 27643, 44035, 58369, 62464, 65535, 65536], [0, 3071, 5118, 11261, 20475, 28665, 49155, 60417, 61440, 65535, 65536], [0, 1023, 3070, 7165, 11260, 21498, 44035, 57345, 62464, 65535, 65536], [0, 1023, 6142, 9213, 13308, 22522, 34807, 52227, 57346, 60417, 62464, 65535, 65536], [0, 3071, 13309, 19452, 29690, 41987, 54273, 61440, 65535, 65536], [0, 1023, 3070, 4093, 9212, 15354, 26615, 36853, 49156, 59394, 63489, 64512, 65535, 65536], [0, 2047, 3070, 5117, 12283, 29702, 46082, 54272, 63486, 63487, 64510, 64511, 64512, 65535, 65536], [0, 1023, 1024, 2047, 6142, 18427, 28665, 45060, 56322, 61441, 64512, 65535, 65536], [0, 1023, 3070, 5117, 11259, 22520, 37894, 52227, 59393, 62464, 64511, 64512, 65535, 65536]], "offsets": [-5, -5, -4, -4, -5, -6, -4, -6, -3, -5, -7, -4, -4, -3, -3, -5, -5, -4, -3, -12, -6, -5, -6, -5, -5, -5, -5, -4, -6, -5, -6, -5], "median_q": [0, 0, 0, 0, 0, 0, 0, 4096, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4096, 0, 0, 0, 0, 4096, 0, 0, 16384, 0, 0, 0, 0], "rans_b64": "WojM/xLL5QApvlU9S0dMm+0+yZN6XUErNReno4ANeFfmdGOCd1uLfXUaY+NvvRuUwc1a0ZNkl9swIblBA5YlNb6B1lYTxuEwxzOblRYrsJSS/nRNDMPL/9HVme+uNpKB4fQSuaY0Gn463uhEdSWcQ5w5b1voh44N5UlM+r2N/pnZ8MbtlhG38NNQgK4alDh2tGVfU9zUrX3Z6E3OPQH/Tzuj1esU87tx1mOq4y3xtOazFhirhgGmpjFiuhcnsF66q8X1HZ3Rt5fWEicP8U3TQCvYBZSVb7BdcdUyfM04jggHnomYJjN3GB7OWgFtuKYFQSlltrK+VG+g4XeOPOJIMvgTF6m3FyYBF941WmGkL+82WCKHo6fNDYMYhLnNQ6YcQrLfIm3BTxOyzD7xqqKwLwVotR1fkw4WGVSNdSor+KNB3v3tx5Vf1Sn/BHJzH32yYunIr1AecfLnr6FpQ5AdUaZp8EIZDEeD7JT7NyGCppakzHAnQBvmSSsZss4+tHh4pNUuIvGLqYW1z0xU/bGjqGLa5YR9ac6tcpRJCuNp8OKdBVbTLXIw0UlZN9cOiuGvnvtwO98rl+OOn8Xv60RUMjZtIZ9SPez/iwzRffEoZ1ns91o6euy+zuPD3Ak4dMx81rF/o6eHYaWITY1lPfzwgBFiv/ABKZtzLmiHV/JvDzSfPuY9iuV0QeCLjKe+uFWZUHcGFBhi6WHB/43ppbjrNkDL4++Gx7xojXF6WMhZHbT5HObZCvRACRJ6IDdWmmR7poqSr1ynLzriO4pobvQRjzIAQO5dY3KfW1xOAZLBu9oGos3P88+j0HaQgoH1EwtMa3G7Zj0PdA9SV0i3fahM5fbNXYC0JrgFe5vUpoWyAIJHd6hlxtCT8FqNI9GitZzyO5m2L3LbncOaUKfG20OfsJlxzvZ0RR0Nhe1rrEPbReaj7fiJQnoNlPG6bcet+JC9DCTBY1eLUkkQp2SEke/U7Q==", "attr_hash": "5a94ebc9f0399a35", "n_gaussians": 1024, "lo": [-1.1338293552398682, -1.176371693611145, -1.0861700773239136, 0.030000029131770134, 0.030000029131770134, 0.030000029131770134, -0.9999944567680359, 0.0, 0.0, 0.002342124469578266, 1.5086486655491171e-06, 0.003607254009693861, 5.614235192297201e-07, 0.20000018179416656], "hi": [1.134145975112915, 1.0041697025299072, 1.089646816253662, 0.0499999038875103, 0.0499999038875103, 0.0499999038875103, 0.9999972581863403, 0.0, 0.0, 0.9999984502792358, 1.0, 0.997649610042572, 0.9999778270721436, 0.9924964904785156]}