ReshotAI / gaussian-splatting-blender-addon

https://www.lingosub.com
423 stars 47 forks source link

ValueError: no field of name f_dc_0 #42

Open caiolopesdasilva opened 1 month ago

caiolopesdasilva commented 1 month ago

Hi all,

I tried to using this addon in multiple versions of Blender, from 3.6LTS to 4.0 4.1 and 4.2

I always face the same error:

Python: Traceback (most recent call last):
  File "C:\Users\render\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gaussian_splatting_io\__init__.py", line 74, in execute
    features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"])
                                      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\render\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gaussian_splatting_io\plyfile.py", line 715, in __getitem__
    return self.data[key]
           ~~~~~~~~~^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\site-packages\numpy\core\memmap.py", line 334, in __getitem__
    res = super().__getitem__(index)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no field of name f_dc_0

I see others are facing the same issue but I have not found a proper solution for this. I am using the latest version from this repo. Anything that I can do?