Importing .ply gaussian splat file error

Hi everyone. When I try to import SuperSplat edited .ply files into UE5 I’m met with the error ‘ply properties header format invalid, pls check it first’.
I only get this error with SuperSplat edited .ply files. My LumaAI .ply files import fine. I have the XV3DGS plugin enabled.
Anyone know how to fix this, or a way round it?
Thanks
Lauren

I also have this issue

Thanks for your reply. Glad to know I am not the only one.

Found the solution - really simple. Instead of Exporting to compressed .ply you need to SAVE or SAVE AS. Hope that helps.
Lauren

1 Like

You can solve this “Ply properties header format invalid“ error with our 3DGS Toolkit (https://www.patreon.com/posts/147153030)

You should be able to import it if you convert it with the following Python code!!

import numpy as np

from plyfile import PlyData, PlyElement

INPUT_FILE = ‘postshot_original.ply’

OUTPUT_FILE = ‘postshot_unreal_ready.ply’

def fix_for_xverse(input_path, output_path):

plydata = PlyData.read(input_path)

v = plydata[‘vertex’]

# Define the standard attribute list expected by XVERSE

# If nx, ny, nz are not present, it is necessary to fill them in with 0.

props = [‘x’, ‘y’, ‘z’, ‘nx’, ‘ny’, ‘nz’,‘f_dc_0’, ‘f_dc_1’, ‘f_dc_2’]

props += [f’f_rest_{i}’ for i in range(45)]

props += [‘opacity’, ‘scale_0’, ‘scale_1’, ‘scale_2’,

‘rot_0’, ‘rot_1’, ‘rot_2’, ‘rot_3’]

# Create a new data structure

new_data = np.zeros(v.count, dtype=[(p, ‘f4’) for p in props])

for p in props:

if p in v.data.dtype.names:

new_data[p] = v[p]

else:

new_data[p] = 0.0 # If there is no nx, ny, nz, etc.

el = PlyElement.describe(new_data, ‘vertex’)

PlyData([el]).write(output_path)

fix_for_xverse(INPUT_FILE, OUTPUT_FILE)