scier / MetalSplatter

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

trouble loading ply generated by postshot #33

Open JosuaKrause opened 3 months ago

JosuaKrause commented 3 months ago

Hi, I have trouble loading ply files generated by postshot. The (Vision Pro) app crashes without displaying an error.

The ply header is as follows:

ply
format binary_little_endian 1.0
element vertex 2659433
property float x
property float y
property float z
property float nx
property float ny
property float nz
property float f_dc_0
property float f_dc_1
property float f_dc_2
property float f_rest_0
property float f_rest_1
property float f_rest_2
property float f_rest_3
property float f_rest_4
property float f_rest_5
property float f_rest_6
property float f_rest_7
property float f_rest_8
property float f_rest_9
property float f_rest_10
property float f_rest_11
property float f_rest_12
property float f_rest_13
property float f_rest_14
property float f_rest_15
property float f_rest_16
property float f_rest_17
property float f_rest_18
property float f_rest_19
property float f_rest_20
property float f_rest_21
property float f_rest_22
property float f_rest_23
property float f_rest_24
property float f_rest_25
property float f_rest_26
property float f_rest_27
property float f_rest_28
property float f_rest_29
property float f_rest_30
property float f_rest_31
property float f_rest_32
property float f_rest_33
property float f_rest_34
property float f_rest_35
property float f_rest_36
property float f_rest_37
property float f_rest_38
property float f_rest_39
property float f_rest_40
property float f_rest_41
property float f_rest_42
property float f_rest_43
property float f_rest_44
property float opacity
property float scale_0
property float scale_1
property float scale_2
property float rot_0
property float rot_1
property float rot_2
property float rot_3
end_header

The file can be found here (will eventually remove link)

scier commented 2 months ago

I'm unable to reproduce this with the tree.ply file you supplied; it loads fine for me. Is this with the sample app? What commit are you using? Can you give me more details that might help reproduce?

JosuaKrause commented 2 months ago

Huh, it's with the Apple Vision Pro app. Did it recently update? Let me try again (I was on vos2 beta, now that it's properly out it might have changed things)