scier / MetalSplatter

Render Gaussian Splats using Metal on Apple platforms (iOS/iPhone/iPad, macOS, and visionOS)
MIT License
272 stars 35 forks source link

PLYIO.PLYHeader.ASCIIDecodeError.headerUnknownKeyword("obj_info") #22

Closed vade closed 3 months ago

vade commented 3 months ago

Thanks again for this project. Im noticing some minor file parsing hiccups in for files in the wild, specifically off of SketchFab made with some other tools.

Seems like some Splat files have some additional fields that PLYIO or doesnt handle correctly. In the wild, ive seen a few hiccups.

PLYIO.PLYHeader.ASCIIDecodeError.headerUnknownKeyword("obj_info")

and if I manually remove that line from the PLY file:

obj_info Generated by CloudCompare!

I get :

SplatIO.SplatPLYSceneReader.Error.unsupportedFileContents(Optional("No property named \"scale_0\" found"))

vade commented 3 months ago

Ah, these might just be ply files that dont have the correct Gaussian Splat metadata required but are badly formed. Interesting.

vade commented 3 months ago

FWIW I added the obj_info header parsing! I hope you dont mind the PRs! :)

scier commented 3 months ago

Don't mind at all -- I very much appreciate it!

scier commented 3 months ago

Fixed by #23