Copying objects along a curve produces a strange spin

   2358   3   1
User Avatar
Member
14 posts
Joined: Dec. 2018
Offline
Good morning !

I'm trying to reproduce the suspension bridge shown in this video.


I have defined my curve and aligned the normals with the tangents. When I copy a box onto the points of this curve, the bridge is twisted.

Could someone explain to me why?

Thank you and have a nice day,

Attachments:
A.jpg (79.4 KB)
B.jpg (24.5 KB)
bridge.hipnc (156.0 KB)

Nikos Priniotakis
Heritage, visualisation and 3D modeling
Cergy Paris University
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
If you only have a N (normal) vector, copy to points SOP will auto calculate up vector to get a orient.
The up vector and final orient may not meet your requirement.

There are many ways to correct the orient:
  1. try to set v@up = {0, 1, 0}
  2. try the orientation along curve SOP in Houdini 18 to create orient but not use poly frame SOP
  3. try the copy to curves SOP in Houdini 18
  4. try my HDA : Point Orient [vimeo.com] to get orient (or qLib :: orient, also can see in my link)



The Official Doc [www.sidefx.com] says : Up vector of the copy (+Y axis of the copy, if no orient)…
But it doesn't seem to be the case here.
Edited by zengchen - March 20, 2020 06:01:50
My Youtube Channel [www.youtube.com]
User Avatar
Member
14 posts
Joined: Dec. 2018
Offline
真的是太棒了!谢谢你!
Thanks you so much ! I'll try these solutions and post the result as soon as I get it to work.
Nikos Priniotakis
Heritage, visualisation and 3D modeling
Cergy Paris University
User Avatar
Member
14 posts
Joined: Dec. 2018
Offline
It works perfectly and instantly ! Thanks again.
Here's the final result in case newbies like me are interested (the HIP is zipped with the texture file)

Cheers,

Attachments:
C.jpg (45.8 KB)
bridge.zip (1.6 MB)

Nikos Priniotakis
Heritage, visualisation and 3D modeling
Cergy Paris University
  • Quick Links