How to use the Align Attribute SOP ?

   7669   4   0
User Avatar
Member
875 posts
Joined: 10月 2008
オフライン
How do I align objects with a surface?

I did a very simple example scene:

Points scattered on a torus emit particles to which boxes are copied. I want those boxes to align with the surface of the torus.

I think the attribute reorient SOP does what I want but I can't get it to work. Perhaps it won't because there's no surface anymore after the scatter SOP?

Attachments:
align.jpg (106.3 KB)
align.hipnc (50.1 KB)

--
Jobless
User Avatar
Member
1773 posts
Joined: 12月 2006
オフライン
hi!

first: put normals on the torus for example with the facet sop (post compute normals)
second: rotate the cube in X 90 degrees, since the copy aligns the copies to the Z axe
daniel bukovec | senior fx td | weta digital
qLib -- http://qlab.github.io/qLib/ [qlab.github.io]
User Avatar
Member
875 posts
Joined: 10月 2008
オフライン
Thanks Buki! So easy, yet so not-obvious. I don't know why, but I was under the impression there's always normals…

I stuck the particles to the surface with a creep POP. When I animate the surface the cubes align but go all funny at some point. Do you happen to know an easy surface align that works with animated, defomed surfaces as well?
--
Jobless
User Avatar
Member
875 posts
Joined: 10月 2008
オフライン
Oh I figured it out. An attribute transfer POP will automatically transfer and update the source object normals to the particles each frame.
--
Jobless
User Avatar
Member
1773 posts
Joined: 12月 2006
オフライン
Yes it's strange that after other programs You don't have Uv's/normals on a geometry, but houdini is all about control, so You get used to it
daniel bukovec | senior fx td | weta digital
qLib -- http://qlab.github.io/qLib/ [qlab.github.io]
  • Quick Links