Jump to content

Copying a line


Recommended Posts

Hi everyone! I just started learning houdini and I'm trying to copy a line and orient it along the points normals but I can't get it to work. I tried doing the same with a torus instead of a line and it worked fine using the "orient to Z" parameter. The line doesn't have the orient attrib. Any help will be appreciated. 

 

post-15604-0-70105100-1454696877_thumb.p

 

post-15604-0-11020300-1454696884_thumb.p

Link to comment
Share on other sites

I can't. I got the information from a post a few months back. But basically the polyframe allows you to change normal orientation. It is very useful before a copy, especially when you need to generate UVs along a copy that is followed up by a skin.

Edited by Atom
Link to comment
Share on other sites

Line primitive oriented along Y axis by default. Set the Direction parameter to 0 0 1. You also can pre-rotate it in Copy directly (disable "Transform Cumulative") or just by adding a Transform, rotating it by 90 degrees around X axis in both cases. There is handy Floating Gnomon on the vieport's corner. Copy does the orienting itself. It expects input geometry logically oriented along z-axis, which is common for such tools. Logical orienting is ambiguous, so, this is user's job to determine if the human heads needed to be face-forward or vertical-oriented when copying.

 

Copy builds custom spaces for each point, with axes x and y used as tangential directions and z as depth/up. And then just transform copies into that spaces. All orienting automatically computed by Copy internally for user's convenience. You may override it by providing custom N (vector direction only, arbitrary roll), up (will be used as constraint for roll, which will complete the orientation), orient (full orientation, quaternion), other common attributes (UP: full list). They are all partially or fully interchangeable. They can be computed in different ways with different results. As an example, PolyFrame uses several algorithms itself.

 

Stupid example of constraint working: if you point your hand up, you still can turn around while pointing up. Then you point your other hand on the west, and you cannot change your position anymore without breaking the rules, you are oriented. Cross product of your hands will give you the third axis. You then normalize and make orthonormal all the stuff and store resulting matrix somewhere, to rotate somebody else in that position later. This is common when building matrices and orients from directions like velocity vectors and the world's up {0, 1, 0}. Copy computes the constraint, but does it in different manner, that why the results are different. Both are correct, however, suited for different cases.

Edited by f1480187
  • Like 1
Link to comment
Share on other sites

Thanks for the links.

 

PolyFrame uses geometry features of points - edges and attributes. Help page has some descriptive images and info. It computes a usual vectors, not some special values for Copy SOP. It also helpful to compute tangential vectors in general purposes, mostly for polygon lines. You can name this vectors to special names which can be picked by Copy SOP. Or you can compute any instance attribute using them, for example orient. You can visualize everything and just play with parameters interactively. Copy SOP is not very intuitive, but Transform Pieces can be modified to be synced with true PolyFrame output.

 

post-13104-0-07359200-1454930686_thumb.p post-13104-0-00894500-1454929522_thumb.p

polyframe.hipnc

Edited by f1480187
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...