Setting N outward maintaining orientation

   834   2   0
User Avatar
Member
1 posts
Joined: March 2023
Offline
Hi, community! I recently added a node to my library that allows me to cover a zone with tiles. I'm making some modifications to it so that it can work on a three-dimensional figure (currently, the node only works on a plane axis).
The problem I'm facing is setting the N outward from the geometry while maintaining the orientation of the tiles. To orient the tiles, it uses a normalized vector with the neighboring points and I would like to use a combination of the N of the original subdivided cube with it.
Feel free to dive into the HIP file—maybe I haven’t explained it correctly, or there’s something I’m missing.



Image Not Found

Attachments:
Hip.hipnc (285.8 KB)
Enter_a_filename.png (721.1 KB)
Enter_a_filename.png (725.4 KB)

User Avatar
Member
1177 posts
Joined: April 2017
Offline
You might want to also use v@up. @N alone can't fully tell Houdini how to rotate the tiles. You can see more info in the documentation:

https://www.sidefx.com/docs/houdini/copy/instanceattrs [www.sidefx.com]
User Avatar
Member
5100 posts
Joined: Feb. 2012
Online
Hi,

You need to use up and N to get precise alignment like Olivier said:

Attachments:
normals.png (600.6 KB)

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
  • Quick Links