ReshotAI / gaussian-splatting-blender-addon

https://www.lingosub.com
333 stars 35 forks source link

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

Open Koningsbruggen opened 7 months ago

Koningsbruggen commented 7 months ago

image

phreax commented 7 months ago

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)
jkl3848 commented 7 months ago

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

Wladefant commented 7 months ago

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

Dehaoq commented 6 months ago

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

Wladefant commented 5 months ago

it should work now, blender 4.0 support was added