Solitude Posted April 6, 2010 Share Posted April 6, 2010 So, lets say I have a polygonal mesh (mesh A), and have another mesh / helper (mesh that I always want to point to the closest point on mesh A, I can get the closest distance, and the UV coord of that closest point via the xyzdist expression, but I can't figure out how to turn the info from that into a world coordinate position that I can use elsewhere. Even the ray sop can't technically give me what I want, because it requires normals to work in the first place... so if anybody can help, thanks in advance! P.S. I know it can be done (kind of) with an sdf and volume gradient / volume sample vops, but for fun, lets just pretend those aren't an option. Quote Link to comment Share on other sites More sharing options...
sam.h Posted April 6, 2010 Share Posted April 6, 2010 So, lets say I have a polygonal mesh (mesh A), and have another mesh / helper (mesh that I always want to point to the closest point on mesh A, I can get the closest distance, and the UV coord of that closest point via the xyzdist expression, but I can't figure out how to turn the info from that into a world coordinate position that I can use elsewhere. Even the ray sop can't technically give me what I want, because it requires normals to work in the first place... so if anybody can help, thanks in advance! P.S. I know it can be done (kind of) with an sdf and volume gradient / volume sample vops, but for fun, lets just pretend those aren't an option. Use the ray SOP set to 'minimum distance' use that as info for a vop sop or whatever ... an SDF is probably faster though if your mesh is super dense. Quote Link to comment Share on other sites More sharing options...
Solitude Posted April 6, 2010 Author Share Posted April 6, 2010 (edited) Use the ray SOP set to 'minimum distance' use that as info for a vop sop or whatever ... an SDF is probably faster though if your mesh is super dense. ahhhhh... funny how easy it is to overlook stuff. Thanks! Ok, new question which is related: is there a way to use this functionality from within a VopPop? The intersect vop doesn't have minimum distance as an option. Edited April 6, 2010 by Solitude Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted April 8, 2010 Share Posted April 8, 2010 ahhhhh... funny how easy it is to overlook stuff. Thanks! Ok, new question which is related: is there a way to use this functionality from within a VopPop? The intersect vop doesn't have minimum distance as an option. Intersect will use the length of your normal as your hit distance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.