Page MenuHome

Fix part of T84326: No ID for geometry nodes instances after scattering
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Jan 6 2021, 9:15 PM.

Details

Summary

Instances are created with an "index" parameter used for persistence over
time through animation. Currently the geometry nodes instancer passes
the index in the array for this value, but the arrays created by the
"Point Distribution" node aren't necessarily stable in this way when
the input mesh is deformed. In D9832 we already mostly solved this
problem with an id attribute. The solution here is to create instances
with this attribute as well.

It's important to note that deforming the instanced points *after*
distribution will usually be a better solution for this problem. This
solution is likely still important though.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Jan 6 2021, 9:15 PM

This instancing component stuff probably has to be refactored to become more generic at some point. But for now this looks good.

This revision is now accepted and ready to land.Jan 7 2021, 1:35 PM