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
Event Timeline
Comment Actions
Nice work!
| source/blender/nodes/geometry/nodes/node_geo_translate_instances.cc | ||
|---|---|---|
| 57–62 | 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 | ||
|---|---|---|
| 50–51 | I have the same comment as the scale node here:
| |
| source/blender/nodes/geometry/nodes/node_geo_translate_instances.cc | ||
|---|---|---|
| 44–45 | extract_input | |
Comment Actions
LGTM.
@Hans Goudey (HooglyBoogly) What's the state of moving the selection input to right after the geometry?
