Jump to content

How to use an SDF volume for POP Collision Detect DOP?


magneto

Recommended Posts

Hi,

I am trying to figure out how to use an SDF volume for POP Collision Detect DOP, but I can't get it to work. SOP collision is easy but I want to use an SDF volume. I set the Collision Target to DOP Objects and referenced my new obj0 (Empty Object) with a SOP Scalar Field DOP that points to my SDF volume but it doesn't work.

Either I am using the wrong syntax in the DOP Objects field or this option doesn't support an SDF. If it doesn't support SDF, then what's the right way to do this for particles?

Thanks :)

Link to comment
Share on other sites

just create RBD or just Static RBD and use your SDF as a Proxy Volume for volume based collisions and mode to Volume sample, no need for specifying geometry for object itself or resolution for SDF as it will not be recomputed therefore SDF from sops will be used as is

look at the file

apart from that note that any RBD with Volume based collisions will use volume representation with POP collisions

EDIT:and you can as well just use Collide Relationship as your collision target instead of specifying DOP object directly

sdf_rbd_collision_detect.hip

Edited by anim
  • Like 1
Link to comment
Share on other sites

correct, to attach SDF as dop data you can just use SOP Scalar Field DOP and then you are able to do whatever you want with that so any microsolver that uses volume/SDF field will be able to access/modify it correctly for your own calculations

other option is to access it directly from SOPs from within various solvers like Gas Field VOP, Geometry VOP, ...

however, if you want to use it as a collision volume which gets recognized directly by RBDs and some other solvers like in the example, you need to use it in similar fashion as inside RBD object so as a SDF Representation DOP node (data named Volume) attached to Geometry data and with optional SOP Geometry attached to it which can feed SDF from sops directly, but it's much simpler to just place RBD Static Object as in the example so you get this setup for free

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