# Issue rendering multiple .sog GSplat files using @playcanvas/react

**URL:** <https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108>\
**Category:** Gaussian Splatting\
**Created:** [April 3, 2026, 10:53am UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108 "2026-04-03T10:53:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aza](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@Aza](https://forum.playcanvas.com/u/Aza)\
**Post date:** [April 3, 2026, 10:53am UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/1 "2026-04-03T10:53:57Z")

</div>

Hi everyone,

I’m experiencing an issue when trying to render multiple Gaussian Splatting models using the `.sog` format within a React application using `@playcanvas/react`.

**The Problem:** When I attempt to load and display two different `.sog` models simultaneously, the textures/points get mixed up or corrupted. It seems like the resources of one model are overwriting the other in the GPU buffers or the internal registry.

**Key Observations:**

- **Format specific:** The issue **only** happens with `.sog` files. If I use standard `.ply` files, multiple models render perfectly fine.

- **Isolation works:** If I load both but only render one (either one), it still fails or shows artifacts. However, if I only load and render a single model (removing the code for the second one entirely), it works perfectly.

- **Editor behavior:** I managed to make it work in the PlayCanvas Editor with the same files, but it was inconsistent. I noticed that the loading order in the Editor affected the outcome; otherwise, they would also get “mixed.”

- **Environment:** I am using the `useSplat` hook and the `<GSplat />` component with `unified={false}`.

```javascript
const TwoModels = () => {
  const m1 = useSplat('assets/models/bike-high.sog')
  const m2 = useSplat('assets/models/posthof.sog.sog')

  return (
    <>
      <Entity rotation={[180, 0, 0]}>
        {m1.asset && <GSplat asset={m1.asset} unified={false} />}
      </Entity>
      <Entity rotation={[180, 0, 0]}>
        {m2.asset && <GSplat asset={m2.asset} unified={false} />}
      </Entity>
    </>
  )
}

```

**What I’ve tried:**

1. Loading the assets sequentially (waiting for `m1.asset` to be ready before calling `useSplat` for `m2`).

2. Ensuring `unified={false}` is set on both components.

3. Using different `key` props for the Entities to force isolation.

Is there a known limitation regarding the `.sog` parser or resource management when handled via the React wrapper? It feels like a race condition or a global state collision within the `SplatResource` or the material creation for `.sog` files.

This is what i see:

 ![Captura de pantalla 2026-04-03 124315](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/f/6fa121f1cc19f110b55f91ddf2e9d2fb6e7c7642.jpeg)

The models are taken from the examples.  
Any insights would be appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [April 3, 2026, 3:12pm UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/2 "2026-04-03T15:12:02Z")

</div>

If you have two models, it’s likely you’d want unified to be true.

But your screenshot seems to show a different issue.

Can you try unified anyways to see if that helps?

---

<div class="post-metadata">

**Author:** ![Aza](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@Aza](https://forum.playcanvas.com/u/Aza)\
**Post date:** [April 6, 2026, 6:35am UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/3 "2026-04-06T06:35:11Z")

</div>

I’ve created a project to demonstrate the error I’m referring to.

> **[PublicGroup / pc-two-models · GitLab](https://gitlab.com/publicgroup4910515/pc-two-models)**
>
> GitLab.com

> **[PlayCanvas + React + TS](https://pc-two-models.netlify.app/)**

The models I’m using are from

> **[PlayCanvas 3D HTML5 Game Engine](https://playcanvas.com/project/1358087/overview/3dgs-with-physics-and-relighting)**

and

> **[PlayCanvas 3D HTML5 Game Engine](https://playcanvas.com/project/1444720/overview/3d-gaussian-splat-annotations)**

I need the two models to be separate because I’m going to show/hide them step by step.

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [April 6, 2026, 8:35am UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/4 "2026-04-06T08:35:35Z")

</div>

@abstrakt

---

<div class="post-metadata">

**Author:** ![Aza](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@Aza](https://forum.playcanvas.com/u/Aza)\
**Post date:** [April 8, 2026, 8:38am UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/5 "2026-04-08T08:38:09Z")

</div>

Sorry, my mistake. I’ve updated to the latest version and it’s working now.

---

<div class="post-metadata">

**Author:** ![abstrakt](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abstrakt](https://forum.playcanvas.com/u/abstrakt)\
**Post date:** [April 9, 2026, 3:34pm UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/6 "2026-04-09T15:34:33Z")

</div>

Sorry for trouble, but that sounded like a version issue.

Glad it was resolved!

---

<div class="post-metadata">

**Author:** ![system](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/f/9f42d319539b35306476fd0ef3f95e4ea61b0840.png) [@system](https://forum.playcanvas.com/u/system)\
**Post date:** [April 13, 2026, 12:53pm UTC](https://forum.playcanvas.com/t/issue-rendering-multiple-sog-gsplat-files-using-playcanvas-react/42108/7 "2026-04-13T12:53:01Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
