GithubHelp home page GithubHelp logo

gaussian-splatting-blender-addon's People

Contributors

alexandre01 avatar ednaordinary avatar miketkachuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gaussian-splatting-blender-addon's Issues

Error on Export

I get this error on exporting. Wanted to adjust the rotation and posotion for later use and reexport.
Unfortunately the mesh has no position attribute.

Python: Traceback (most recent call last):
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\blender-addon_init_.py", line 1075, in execute
xyz[i] = position_attr.data[i].vector.to_tuple()
AttributeError: 'NoneType' object has no attribute 'data'

Import gaussian splatting with sh_degree != 3

Impossible to import a gaussian splatting generate with a sh_degree different than 3, for example :
python train.py -s ./dataset/mont_1/ --sh_degree 1
We obtain :
Python: Traceback (most recent call last): File "/home/chupin/.config/blender/3.4/scripts/addons/blender-addon/__init__.py", line 80, in execute features_extra = features_extra.reshape((N, 3, 15)) ValueError: cannot reshape array of size 52317216 into shape (2179884,3,15)

It might come from the default casting of a sh_degree=3 gaussian splatting incompatible with sh_degree!=3

Just to say thanks

I just wanted to say thanks for releasing this, it's awesome and sooooo needed in Blender. I really hope some coders (I'm not) can help continue the development and contribute this repo, as it is most definitely needed!

Thank you!

istallation problem

can't install as regular addon in 3.6 and 3.5. any suggestion? thanks!! (i'm on windows)

Particles are round and not the original shape

Blender:
Screenshot 2024-04-05 170455_mod
Other Viewer:
Screenshot 2024-04-05 171026_mod

For me the the particles in blender are round and not the "splatted" shape they should have. In other viewers the GS file looks correct. Did someone have the same problem?

No export button

Importing the GS model is normal, but there is no export button. Does anyone know the reason? Blender4.0
image

KeyError: 'bpy_prop_collection[key]: key "Specular" not found'

Hello,
Thank you for your work.

I'm on Ubuntu with Blender 4.0.x and I get the following error during import.
It seems that pullrequests can provide a solution even if these errors are not in the discussion of pullrequests.

Read prefs: "/home/me/.config/blender/4.0/config/userpref.blend"
Info: Deleted 3 object(s)

PLY loaded in 0.0033948421478271484 seconds
Data loaded in 1.073183536529541 seconds
Mesh loaded in 0.3035547733306885 seconds
Mesh attributes added in 1.1825714111328125 seconds
Traceback (most recent call last):
  File "/home/me/.config/blender/4.0/scripts/addons/blender-addon/__init__.py", line 239, in execute
    principled_node.inputs["Specular"].default_value = 0
KeyError: 'bpy_prop_collection[key]: key "Specular" not found'
Traceback (most recent call last):
  File "/home/me/.config/blender/4.0/scripts/addons/blender-addon/__init__.py", line 1133, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'

error import

I can't import ply files, it always gives me this error, on Blender 6.5.1 and MacBookPro M2

Python: Traceback (most recent call last):
File "/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/init.py", line 66, in execute
log_opacities = np.asarray(plydata.elements[0]["opacity"])[..., np.newaxis]
File "Library/Application Support/Blender/3.6/scripts/addons/blender-addon/plyfile.py", line 715, in getitem
return self.data[key]
ValueError: no field of name opacity

how can I solve it?
Grazie

Unable to export

Using Blender 3.4 on macOS. I installed and enabled the plugin.

I can import a splat .ply file just fine and see it in the scene. But exporting it, even if I’ve made no changes, outputs this error instead:

Python: Traceback (most recent call last):
  File “[redacted]/gaussian-splatting-blender-addon-master/__init__.py", line 1075, in execute
    xyz[i] = position_attr.data[i].vector.to_tuple()
AttributeError: 'NoneType' object has no attribute ‘data'

I tried ignoring the NoneType objects:

         for i, _ in enumerate(mesh.vertices):
+            if position_attr is None:
+                continue
             xyz[i] = position_attr.data[i].vector.to_tuple()

That kinda goes around the problem, but that just outputs a big empty files with mostly empty bytes (0x00).

Any idea? How do you export splats?

Error - Blender

Not sure why I get this...

Python: Traceback (most recent call last):
File "C:\Users\perso\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-addon\plyfile.py", line 160, in read
data = PlyData._parse_header(stream)
File "C:\Users\perso\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-addon\plyfile.py", line 121, in _parse_header
parser = _PlyHeaderParser(_PlyHeaderLines(stream))
File "C:\Users\perso\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-addon\plyfile.py", line 1270, in init
raise PlyHeaderParseError("expected 'ply'", 1)
blender-addon.plyfile.PlyHeaderParseError: line 1: expected 'ply'

importing a splat file called vessel.splat and using Blender 4.0 ??

Appreciate being pointed in the right direction ... (",)

There are some issues in Blender 4.1

Foundation\Blender\4.1\scripts\addons\blender-addon_init_.py", line 970, in execute
switch_node.inputs[14]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: bpy_prop_collection[index]: index 14 out of range, size 3

i try to read the code but still don't know bpy_prop_collection[14] for what

Error on Import

Getting an error when importing PolyCam Gaussian Splatting SPLAT PLY files into Blender using your Addon.

Error line 229
Opacity_geom_attr_node.outputs ["Value"]
KeyError- bpy_prop_collection[key] : Key "Value" not found

Unable to import

image
I am Blender 3.3 and I have tested 2.98, which is the same error. I am unable to use the sh script, so I compressed the zip file using the 7z program myself. Use the splat file generated by TriplaneGaussian. I'm not sure if this is the problem, I hope we can provide a release version.

IndexError

When I tried to import the ply file from the train's point cloud result in gaussian_splatting, I met with this problem:

Python: Traceback (most recent call last):
File "C:\Users\24224\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blender-addon_init_.py", line 970, in execute
switch_node.inputs[14]
~~~~~~~~~~~~~~~~~~^^^^
IndexError: bpy_prop_collection[index]: index 14 out of range, size 3

help

How to add the color texture in blender?

hi,

First thank you for the addon, I was trying it, but after import the gaussian splatting file into blender, only get the points cloud no color or texture information cames! how i can add it the textures to the splatting?

thks

import Error

Blender 3.6.8
Python: Traceback (most recent call last):
File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender-addon_init_.py", line 74, in execute
features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"])
File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blender-addon\plyfile.py", line 715, in getitem
return self.data[key]
File "M:\SteamLibrary\steamapps\common\Blender\3.6\python\lib\site-packages\numpy\core\memmap.py", line 334, in getitem
res = super().getitem(index)
ValueError: no field of name f_dc_0

Bleder 4.1.0 and 4.0.2 same
Python: Traceback (most recent call last):
File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blender-addon_init_.py", line 74, in execute
features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"])
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\lind\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\blender-addon\plyfile.py", line 715, in getitem
return self.data[key]
~~~~~~~~~^^^^^
File "S:\blender-4.1.0-alpha+main.da77f90744c1-windows.amd64-release\4.1\python\Lib\site-packages\numpy\core\memmap.py", line 334, in getitem
res = super().getitem(index)
^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no field of name f_dc_0

Error when exporting edited splat

Getting the following error when trying to export a splat which I edited, any ideas?

Python: Traceback (most recent call last):
  File "/Users/me/Library/Application Support/Blender/3.4/scripts/addons/blender-addon/__init__.py", line 1075, in execute
    xyz[i] = position_attr.data[i].vector.to_tuple()
AttributeError: 'NoneType' object has no attribute 'data'
Python: Traceback (most recent call last):
  File "/Users/me/Library/Application Support/Blender/3.4/scripts/addons/blender-addon/__init__.py", line 1075, in execute
    xyz[i] = position_attr.data[i].vector.to_tuple()
AttributeError: 'NoneType' object has no attribute 'data'

Question...

Hi, sorry to leave a question in the bugs area.

Does this implementation in blender allow for splat viewpoint variations? (Not sure what the correct terminology is) basically, will reflections work correctly from different viewpoints in blender? Or are the material shaders just fixed?

Error when importing ply

Hi, first I want to say thanks for publishing this addon, it looks super useful. I'm trying to import a ply from the polycam gaussian splatting app however I get an error when I do. I'm using blender 3.6.4 on Mac OS.

bpy.context.space_data.system_bookmarks_active = 3
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 229, in execute
    opacity_geom_attr_node.outputs["Value"],
KeyError: 'bpy_prop_collection[key]: key "Value" not found'
bpy.ops.object.import_gaussian_splatting(filepath="/Users/joe/Downloads/toy-village-splat.ply")
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'
Python: Traceback (most recent call last):
  File "/Users/joe/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/__init__.py", line 1135, in draw
    row.prop(obj.modifiers["GeometryNodes"].node_group.nodes.get("Boolean"), "boolean", text="As point cloud (faster)")
KeyError: 'bpy_prop_collection[key]: key "GeometryNodes" not found'

If you are able to give me any help I'd really appreciate it. I'm not very familiar with blender scripting unfortunately otherwise I'd try to fix this myself.

Can't get geometry nodes...

Thanks for the plug-in ! For some reason I get the Polycam splatt point cloud but no geometry nodes?? I can import fine into Unity etc... HELP !! See screenshot...

Python: Traceback (most recent call last):
File "/Users/ppor9589/Library/Application Support/Blender/3.6/scripts/addons/blender-addon/init.py", line 1177, in draw
row.prop(obj.modifiers["Geometry Nodes"].node_group.nodes.get("Boolean"), "boolean",
KeyError: 'bpy_prop_collection[key]: key "Geometry Nodes" not found'
Screenshot 2023-12-30 at 4 37 18 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.