Instance geometry + attr wrangle nodes: orient & scale

   3621   3   0
User Avatar
Member
196 posts
Joined: Aug. 2011
Offline
Hi,

I'm using a point cloud with proper rotation (r) and scale (s) vector3s (euler). See green in the attached screenshot.


To push those into an Instance geometry node, it seems I have to use an attribute wrangle node, to process these attributes into specific ‘scale’ and ‘orient’ attributes.

One can also see the evaluated values in the screenshot: But only the first point is processed. And an other issue: the scale is uniform at 1.132 instead of 3 different values.

Any input on this?
Thanks a lot in advance!

Attachments:
instanceGeo.png (62.6 KB)

User Avatar
Member
258 posts
Joined:
Offline
maybe try @pscale
User Avatar
Member
8041 posts
Joined: Sept. 2011
Offline
You typed orient wrong, it's vector4 type.

Edit: I didn't see you left out the @, which makes those variable declarations meaningless. @orient should work in this case because it is known.

Edit2: You also left out the type for ‘r’ and ‘s’. If you bind unknowns, they default to float. That's why they aren't working when you try to use them.

do:
v@scale = v@s;
p@orient = eulertoquaternion(v@r,0);

or leave out the scale line and use attribute rename to rename ‘s’ to ‘scale’ instead.
Edited by jsmack - Jan. 27, 2018 21:15:36
User Avatar
Member
196 posts
Joined: Aug. 2011
Offline
hi guys, thanks for the inputs.

got it working.

things I found:
- using ‘scale’ worked directly.
- I forgot to convert my degrees to radians. now it's just:

p@orient = eulertoquaternion(radians(v@r), 0);

Thanks, guys! Much appreciated!
matt
  • Quick Links