Skip to content

NullReferenceException Error #153

Closed
Closed
@qiangjiadong

Description

@qiangjiadong

Hi, I use Unity 6 with the Universal Render Pipeline (URP). I want to import the GSfile into my VR project. I unzipped the UnityGaussianSplatting-main folder and only copied the entire PACKAGE folder into my project path under ASSETS/GAUSSIANSPLAT.

The creation of the GaussianSplatAsset works, but when I try to add the Data Asset, I encounter the following errors:

NullReferenceException: Object reference not set to an instance of an object
GaussianSplatting.Runtime.GaussianSplatRenderer.InitSortBuffers (System.Int32 count) (at Assets/UnityGaussianSplatting/Runtime/GaussianSplatRenderer.cs:428)
GaussianSplatting.Runtime.GaussianSplatRenderer.CreateResourcesForAsset () (at Assets/UnityGaussianSplatting/Runtime/GaussianSplatRenderer.cs:407)
GaussianSplatting.Runtime.GaussianSplatRenderer.Update () (at Assets/UnityGaussianSplatting/Runtime/GaussianSplatRenderer.cs:612)

I apologize for my questions, but I would be really appreciate if you can help me:

  1. Is there a way to import UnityGaussianSplatting as a Unity Package to use in my own project?
  2. Based on the error above, could it be due to missing files that I didn’t copy into the correct path?
  3. I haven’t tried single or multi-pass rendering yet; is single-pass supported?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions