Soothsayer
2008年12月16日 20:41:10
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?
buki
2008年12月17日 06:01:02
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
Soothsayer
2008年12月17日 20:25:16
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?
Soothsayer
2008年12月17日 22:08:06
Oh I figured it out. An attribute transfer POP will automatically transfer and update the source object normals to the particles each frame.
buki
2008年12月18日 05:46:34
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