connectome-neuprint / neuVid

Generates neuroscience videos from high-level descriptions using Blender or VVDViewer.
Other
26 stars 7 forks source link

first steps towards blender 4? #162

Closed floesche closed 11 months ago

floesche commented 1 year ago

Import of *.obj files is now natively supported and much faster. This is a huge speed improvement for importMeshes.py and necessary for our many movies.

The "Principled BSDF" has received a full rewrite, some of the argument names for the nodes changed, mostly in the utilsMaterials.py file.

Most of the fixes are centered around functionality we use in our movies.

None of the fixes should break any backward compatibility, but are steps torwards #161

hubbardp commented 12 months ago

Thanks for getting the support for Blender 4 started! I think the change for specular tint needs some more work. The old scalar tint value was an interpolation parameter, where 0 meant specular highlights were white and 1 meant they were the base color. So I think the new color tint value probably needs to be computed with a ShaderNodeMixRGB node blending between white and the base color. Maybe I'll do that work in a second pass.