How can I get the closest points from another geo ?

   1244   2   0
User Avatar
Member
1 posts
Joined: Nov. 2021
Offline
Hi everyone,
Im trying to reproduce something I made in blender using geometry nodes because I need to implement it in unreal.
I'm at a point where I'm stuck because I can't find a way to reproduce the behaviour of a node from blender which is the Geometry Proximity node. What that node does is that it has a position input for the geometry I'm using and a geometry input for the target geometry and it computes the closest location on the target geo so I can use it to randomly add branches on walls for example.

Thanks in advance !

Here is a video of what the tool does:
Image Not Found

Attachments:
2022-09-23 17-11-00.mp4 (5.6 MB)

User Avatar
Member
4506 posts
Joined: Feb. 2012
Online
Hi,

You can use point cloud look ups for this in VEX as code or VOPs as nodes. I made a Proximity SOP long ago as a high-level node that does these without having to use point clouds directly.

https://www.dropbox.com/s/fj0fcg6jycaj6fj/Proximity_SOP_Animatrix.otl?dl=1 [www.dropbox.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
8539 posts
Joined: July 2007
Online
Higher level Ray SOP
or
Low level xyzdist() VEX function or VOP

Can both find closest location on a surface based on position
Edited by tamte - Sept. 28, 2022 00:53:56
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links