ninjamode / Unity-VR-Gaussian-Splatting

VR-capable version of Gaussian Splatting for Unity
MIT License
28 stars 2 forks source link

splat color issue in builds #2

Closed unitycoder closed 2 weeks ago

unitycoder commented 2 weeks ago

works fine in editor, but build looks like this: image

2022.3.45f1 + URP + VR (openxr multipass)

*there is this message in player.log, if related?

Texture compression not available at runtime
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
GaussianSplatting.Runtime.GaussianImageCreator:CreateColorData(NativeArray`1, ColorFormat)
GaussianSplatting.Runtime.GaussianSplatRenderer:UpdateRessources()
GaussianSplatting.Runtime.GaussianSplatRenderer:Update()
unitycoder commented 2 weeks ago

ok, it was due to using that compressed format (BC7) image

ninjamode commented 1 week ago

Compression to texture is not supported. This is due to the multi-layer capability and the need to recompress multiple layer combinations at runtime, however the image compression APIs are only available in the editor. Note that this is not strictly related to VR support, so you could adjust the code to initially create the image in the editor and load that later