aras-p / UnityGaussianSplatting

Toy Gaussian Splatting visualization in Unity
MIT License
2.09k stars 239 forks source link

[Bug] gaussianAsset throw Null Execption #90

Open cym63238998 opened 8 months ago

cym63238998 commented 8 months ago

Why does a 'NullException' get thrown directly when I drag an asset onto a game object with the "Gaussian Splat Render" script?

4C4D3D41-FCFD-4111-83E5-C7FCC2101DC6

DroShown commented 8 months ago

I had the same problem.

aras-p commented 8 months ago

I could see that this could happen if your are on a GPU that does not support compute shaders (i.e. your GPU is more than 10 years old), or if Unity editor is set to a platform that does not support compute shaders (e.g. WebGL). What is the current editor platform? (indicated in the title bar)

DroShown commented 8 months ago

Thank you very much! In my case, the editor is 2022.3.2f1, which is unlikely to be a course of error. I finally solved the problem by simply unchecking&checking the game object because I noticed that the err was located in initialization of the code. Hope it works.

YuEBuZu114514 commented 6 months ago

I met the same problem, and my editor is 2022.3.17f1c1. The solution from DroShown is useful.