reshotai / gaussian-splatting-blender-addon Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.lingosub.com
Home Page: https://www.lingosub.com
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'
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
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!
can't install as regular addon in 3.6 and 3.5. any suggestion? thanks!! (i'm on windows)
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'
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
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?
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 ... (",)
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
I tried a few splat, converted into Uncompressed PLY using Super-Splat:
https://playcanvas.com/super-splat
Some PLY uncompressed works fine, but a few keeps on failing.
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
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
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
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
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'
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?
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.
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.