aras-p / UnityGaussianSplatting

Toy Gaussian Splatting visualization in Unity
MIT License
2.21k stars 251 forks source link

Exported ply has no colors #104

Closed pkmnjourney closed 7 months ago

pkmnjourney commented 7 months ago

The ply output is missing the color texture Below is an image of the exported ply (of garden splat) after loading it into a separate unity scene image

YIXIN-M commented 7 months ago

My rendering scene cannot be opened and keeps displaying an error message.The following is the content of the error: 1.IndexOutOfRangeException: Invalid kernelIndex (1) passed, must be non-negative less than 19. GaussianSplatting.Runtime.GaussianSplatRenderer.SortPoints (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Camera cam, UnityEngine.Matrix4x4 matrix) (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:598) GaussianSplatting.Runtime.GaussianSplatRenderSystem.SortAndRenderSplats (UnityEngine.Camera cam, UnityEngine.Rendering.CommandBuffer cmb) (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:115) GaussianSplatting.Runtime.GaussianSplatRenderSystem.OnPreCullCamera (UnityEngine.Camera cam) (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:193) UnityEngine.Camera.FireOnPreCull (UnityEngine.Camera cam) (at /home/bokken/build/output/unity/unity/Runtime/Export/Camera/Camera.bindings.cs:543) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203) 2.IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 19. GaussianSplatting.Runtime.GaussianSplatRenderer.InitSortBuffers (System.Int32 count) (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:423) GaussianSplatting.Runtime.GaussianSplatRenderer.CreateResourcesForAsset () (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:408) GaussianSplatting.Runtime.GaussianSplatRenderer.Update () (at /home/yixin/桌面/UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:614). Finally,how can these problems be solved?

aras-p commented 7 months ago

PLY export does not export "a mesh", it exports the gaussian splat back into the file. This is meant for saving the 3DGS "edits".