# Gaussian splating orientation on creation

**URL:** <https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093>\
**Category:** Questions\
**Tags:** gaussian-splatting\
**Created:** [January 21, 2025, 7:32am UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093 "2025-01-21T07:32:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidP](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/davidp/32/45669_2.png) [@DavidP](https://forum.babylonjs.com/u/DavidP)\
**Post date:** [January 21, 2025, 7:32am UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/1 "2025-01-21T07:32:53Z")

</div>

Hello,

I see that Gaussian splatting, created and rendered in BabylonJS, do not match what I see in other packages, for example, in playcanvas / super splat .

In the playground below, I follow a simple example, generated by chatGPT, to produce splats, constructed by uniform scale and 0-rotation. In other words the resulting splats are spheres, but I am getting disks - there are camera angles when the splats appear flat

> **[Babylon.js Playground](https://playground.babylonjs.com/#EILZ5L%2313)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

This playground will download the resulting splats. If you import them to Super Splat, you will see the expected result

> **[SuperSplat](https://playcanvas.com/supersplat/editor/)**
>
> SuperSplat is an advanced browser-based editor for manipulating and optimizing 3D Gaussian Splats. It is open source and engine agnostic.

Moreover, if you export these splats from Super Splat back to BabylonJS, the splats appear correct too. In this playground, you can switch between the original splats and the splats that made a round-trip from BaylonJs to Super Splat and back to BabylonJS

> **[Babylon.js Playground](https://playground.babylonjs.com/#CID4NN%23275)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

Let me know how I can create super splats in BabyhlonJS correctly to avoid the round trip to Super Splat?

Thank you,  
David

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 21, 2025, 8:29am UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/2 "2025-01-21T08:29:02Z")

</div>

Quaternion component value range is [0…255] mapped to [-1…1]  
So to get the splat to be rendered as a sphere in every direction, the quaternion needs to be (128,128,128,255)

The quaternion in the 1st PG (0,0,0,255) maps to (-1,-1,-1,1) which is not normalized (and not identity).

Check this PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#EILZ5L%2316)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

1st splat is not rendered when perfectly aligned with the camera. I’ll check out why.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 21, 2025, 1:27pm UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/4 "2025-01-21T13:27:25Z")

</div>

Assigned @Cedric on January 21, 2025, 1:27pm UTC



---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 29, 2025, 4:07pm UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/5 "2025-01-29T16:07:49Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/pull/16122>
>
> Avoid div0 for perflectly aligned splats

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [January 29, 2025, 4:07pm UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/6 "2025-01-29T16:07:53Z")

</div>

Unassigned @Cedric on January 29, 2025, 4:07pm UTC



---

<div class="post-metadata">

**Author:** ![DavidP](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/davidp/32/45669_2.png) [@DavidP](https://forum.babylonjs.com/u/DavidP)\
**Post date:** [January 29, 2025, 4:30pm UTC](https://forum.babylonjs.com/t/gaussian-splating-orientation-on-creation/56093/7 "2025-01-29T16:30:24Z")

</div>

thank you
