Trouble with copy orientation

   1842   3   2
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hi All,

I can't for the life of me figure out how to control the orientation of these copies.
As I change the number of points on the line they flip randomly. Also if give the points normals it seems to have no effect…



Any ideas what I might be doing wrong?
Here's a link to the scene if anyone feels like checking it out.
http://www.peterleary.com/ForumFiles/Copy%20Direction-HXqH8d9wy3.hiplc [peterleary.com]

Thanks,
Pete
Edited by peteski - July 20, 2016 08:12:33
User Avatar
Member
2531 posts
Joined: June 2008
Offline
It is the slight offset you have in the x-direction of the line. Change -0.4 to 0.0 and the flipping goes away. If you really need your line to point in that direction you may want to follow up the copy with a transform to restore the rotation direction for the result.

But overall I might consider that a minor bug.
Edited by Enivob - July 20, 2016 09:21:32
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
402 posts
Joined: June 2014
Offline
Hi Pete,

I remember wrestling with this one too. This is a great page to help sort what the copy SOP is actually doing: docs [sidefx.com]

The problem with the flipping is the polyframe SOP which is having difficulty figuring out which way the world is up (cross-product of two vectors with identical direction) . If you look in the priorities section of that page, you'll see what houdini tries to do when there aren't any ‘normal’ or ‘up’ attributes. If you take the polyFrame out of the equation everything goes stable again.

I've included a variant of your file with a wrangle node set up so you can see what effect each of the ‘normal’ ‘up’ and ‘orient’ attributes have. You may not need that to get it, but it helped me when I grasped those things,

Hope that helps

Attachments:
copy_orientation.hipnc (82.8 KB)

Henry Dean
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hey thanks heaps for the help!
  • Quick Links