ReshotAI / gaussian-splatting-blender-addon

Home Page:https://www.lingosub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

importing to blender 4.0 seems to just give the dots, like it did without the addon. In cycles.

Koningsbruggen opened this issue · comments

It does not seem to be compatible with some of the API changes in blender 4.0.

I tried to fix it, though some issues I couldn't fix due to poor documentation. Here is my diff with comments so far:

239c239
<         principled_node.inputs["Specular"].default_value = 0
---
>         principled_node.inputs["Specular IOR Level"].default_value = 0
775c775
<             principled_node.inputs["Emission"]
---
>             principled_node.inputs["Emission Color"]
837,839c837,838
<         
<         geo_tree.inputs.new('NodeSocketGeometry', "Geometry")
<         geo_tree.outputs.new('NodeSocketGeometry', "Geometry")
---
>         # geo_tree.inputs.new('NodeSocketGeometry', "Geometry")    # inputs and outputs attributes do not seem to exist anymore. No idea how to create them
>         # geo_tree.outputs.new('NodeSocketGeometry', "Geometry")
850c849,850
<         random_value_node.inputs["Probability"].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)
---
>         random_value_node.inputs[6].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)  # Workaround. access via Probability key is not working, even though it exists. Probably a bug
>         # random_value_node.inputs["Probability"].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)

I ran into this same issue. Hoping it gets resolved soon cause I would really love to use this.

yeah me too, see the pull requests too, but there are still some issues, if someone got it running please create a pull request

Guys, you can change to the old version of Blender; just donot use 4.0
https://download.blender.org/release/Blender3.3/

it should work now, blender 4.0 support was added