Page MenuHome

Geometry Nodes: Attribute fill node
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Dec 8 2020, 6:24 PM.

Details

Summary

I saw this happen twice in stuff people have been sharing:

Since the min and max are the same, it just fills every element of the
attribute with the same value. This is an unfortunate hacky way to do
this, and it makes sense to have a specific node, an "Attribute Fill"
node.

An immediate use case is for "billboard" scattering:

Diff Detail

Repository
rB Blender
Branch
geometry-nodes-attribute-fill (branched from master)
Build Status
Buildable 11623
Build 11623: arc lint + arc unit

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Dec 8 2020, 6:24 PM
Hans Goudey (HooglyBoogly) created this revision.

LGTM.

source/blender/nodes/geometry/nodes/node_geo_attribute_fill.cc
49

Should be const CustomDataType data_type. This can make debugging easier.

This revision is now accepted and ready to land.Dec 9 2020, 5:28 PM
This revision was automatically updated to reflect the committed changes.