guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.8k stars 223 forks source link

ply export does not import in blender. #221

Closed Ryder17z closed 1 year ago

Ryder17z commented 3 years ago
Traceback (most recent call last):
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/__init__.py", line 96, in execute
    import_ply.load(self, context, path)
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 428, in load
    return load_ply(filepath)
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 414, in load_ply
    mesh = load_ply_mesh(filepath, ply_name)
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 231, in load_ply_mesh
    obj_spec, obj, texture = read(filepath)
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 223, in read
    obj = obj_spec.load(format_specs[format], plyf)
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 113, in load
    return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 113, in <listcomp>
    return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 113, in <listcomp>
    return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 37, in load
    return [x.load(format, stream) for x in self.properties]
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 37, in <listcomp>
    return [x.load(format, stream) for x in self.properties]
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 102, in load
    return self.read_format(format, 1, self.numeric_type, stream)[0]
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 77, in read_format
    ans = [mapper(x) for x in stream[:count]]
  File "/home/exilefox/.local/share/Steam/steamapps/common/Blender/2.83/scripts/addons/io_mesh_ply/import_ply.py", line 77, in <listcomp>
    ans = [mapper(x) for x in stream[:count]]
ValueError: could not convert string to float: b'0,000000'

location: <unknown location>:-1
guillaumechereau commented 3 years ago

What version of goxel and blender? Does it happen with all models?

Ryder17z commented 3 years ago

Only tested one so far. Goxel 0.10.4 and blender 2.83-lts

guillaumechereau commented 3 years ago

Could you send me the model that doesn't work?

Ryder17z commented 3 years ago

vitara.gox.zip

guillaumechereau commented 3 years ago

I just tried with current goxel build and blender 2.82a, it seemed to work.

image

Here is the exported ply file I got from goxel: Untitled.zip

Ryder17z commented 3 years ago

Hmm. Odd.

guillaumechereau commented 3 years ago

Can you open the ply file I attached with your version of blender? You can update goxel to the last version (0.10.7) maybe.

Ryder17z commented 3 years ago

Your file works. I have not checked if goxel has been updated yet (installed through pacman)

On Mon, Jan 11, 2021, 10:54 Guillaume Chereau notifications@github.com wrote:

Can you open the ply file I attached with your version of blender? You can update goxel to the last version (0.10.7) maybe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guillaumechereau/goxel/issues/221#issuecomment-757831400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPIOP26XOAD7BUYE6P3SHTSZLDFFANCNFSM4VBEJFKA .

Ryder17z commented 3 years ago

older_untitled.ply.zip

Here is the older export of the same model, if it's useful.