Jump to content

point on surface position VOPS


kosimoto

Recommended Posts

Does anyone know how to get the closest location on the surface of a mesh in VOPS? Like the ray SOP but through vops. Its pretty easy to get the closet point position but getting a surface location and storing it seems to be pretty cumbersome in Houdini. In Softimage ICE they have a concept of locations. The location is a pointer to a specific point on a mesh that can be stored in an attribute and used later. I'm looking for that sort of process but in vops.

Thanks for any help

Link to comment
Share on other sites

Hey John. The "intersect" VOP is the vops version of ray. It will give you back the worldspace position and parametric UV's of the hit. I think parametric UV's are the closest thing to what you're talking about - store those on your intersected points, and you can use them later in another vopnet thorugh the "primitive attribute" vop to , for instance, reevaluate the "P" attribute for your test geometry if its transformed later in your sop network (ie - stick the intersected points to moving geometry).

Edited by mdunkley
Link to comment
Share on other sites

I requested a vops method for min distance a while back, as well as allowing the storing of attributes when using minimum distance, but nothing ever came of it.... In sops though, you can store the position before the ray (rest position), transform the points in the ray sop and then store the new pos (newpos), and then restore it afterwards to the rest position. It's kind of lame, yes, but it works. In vops, if you have an sdf of the original geometry you can use the volume gradient to at least get the direction to the surface, then use the intersect vop to get the information about the hit, etc. If you have an sdf you can also get a pretty close position (depending on how detailed the volume is) by using the gradient and volume sample together. This is actually quite common in Houdini, and can be a lot faster than using ray intersections.

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...