Adds a node that can translate instances in global or local space.
Task T91655
Details
Details
- Reviewers
Hans Goudey (HooglyBoogly) Jacques Lucke (JacquesLucke) - Maniphest Tasks
- T91655: Translate Instances node
- Commits
- rB9d49fc2ba0ec: Geometry Nodes: Translate Instances Node
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- arcpatch-D12679 (branched from master)
- Build Status
Buildable 17779 Build 17779: arc lint + arc unit
Event Timeline
Comment Actions
Nice work!
| source/blender/nodes/geometry/nodes/node_geo_translate_instances.cc | ||
|---|---|---|
| 58–63 | How about this? It's a bit nicer looking IMO: if (local_space) {
const float4x4 loc_matrix = float4x4::from_location(translation);
instance_transform = instance_transform * loc_matrix;
}
else {
const float3 new_position = instance_transform.translation() + translation;
copy_v3_v3(instance_transform.values[3], new_position);
} | |
| source/blender/nodes/geometry/nodes/node_geo_translate_instances.cc | ||
|---|---|---|
| 51–52 | I have the same comment as the scale node here:
| |
| source/blender/nodes/geometry/nodes/node_geo_translate_instances.cc | ||
|---|---|---|
| 45–46 | extract_input | |
Comment Actions
LGTM.
@Hans Goudey (HooglyBoogly) What's the state of moving the selection input to right after the geometry?
