Jump to content

Docs on Rest


Recommended Posts

You can read something about the rest node (which generates the rest attribute) here:
https://www.sidefx.com/docs/houdini/nodes/sop/rest.html
 

But if you are wondering what it is. It is basically the same attribute than @P but renamed to be @rest. It's useful when you want to apply noises to moving geometry so that your geometry doesn't look like it is swimming in the world space noise. The way to use it is if you are going to apply a geometry noise in a VOP, Instead of connecting your noise to the position (@P). you would bind import your @rest attribute and connect it to that instead.

The @rest attribute has to be generated on a still or non time dependent frame, otherwise it will change every frame to your current position and it won't really be at rest. If the geometry is already moving and you would like to create a @rest, you could drop a time shift  node with any frame, create the rest with the rest node, or writing v@rest = @P; in a point wrangle. And then you copy it back to your moving geometry with an attribute copy. Bear in mind though, the point count has to be the same.

Link to comment
Share on other sites

Correct, @rest is not by default in the globals inside a VOP, how ever if you open the geometry spreadsheet you will see that it has been created. And to use it inside the VOP you would need to import it via "get attribute" or "bind".

  • Like 1
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...