Blender Git Loki

Git Commits -> Revision 34eaf62

January 22, 2021, 00:07 (GMT)
Geometry Nodes: Support the "normal" attribute

The `normal` attribute is a bit special for a few reasons:
- It has the special CD_NORMAL custom data type even though
it is just a float3.
- It is sometimes stored in the `MVert` array as a vector of
shorts instead of in a separate custom data layer.
- The custom data layer does not have a default name, so we
can't count on addressing it by name.
- It can exist on multiple domains, meaning that polys, vertices,
and corners can all have the "normal" attribute.

All of these combined raise a lot of questions about how to properly
support reading and writing from this attribute. The whole idea that
it should be valid to address an attribute with the same name on
multiple domains is challenging for the attribute code.

This branch currently supports reading normals stored in the `MVert`
layer and in `CD_NORMAL` layers. I'm not at all sure that this is the
ideal way of dealing with this situation, but it's a start.

Commit Details:

Full Hash: 34eaf62536ff5de318cc4e10f30c457c196f4655
Parent Commit: b4b02eb
Lines Changed: +144, -64

1 Modified Path:

/source/blender/blenkernel/intern/attribute_access.cc (+144, -64) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021