COP's displacement map from geometry intersection? HELP

   1001   2   2
User Avatar
Member
24 posts
Joined: Dec. 2019
Offline
Hello, I'm pretty new to Copernicus and had a concept in mind, which would save me a lot of time with various projects.

I have two geometry models, "MAIN" & "CUTTER".
My goal is to generate a displacement map for the Main object based on its intersections with the cutter geometry (see example scene here: DRIVE [drive.google.com]).
This displacement map would be similar to the type people create when baking fine details from a high-res model onto a low res version of a mesh.

The visual result would be basically simulating a boolean without actually using a boolean on the mesh.

Now I have looked a bit through the documentation and watched various tutorials all day, I believe in theory this should be possible - but I just can't find out how to get there exactly.
Since such a tool would be extremely useful for a lot of my use cases. I'd be extremely grateful for any help or suggestions on how to achieve the desired result.

Thanks for your help and time, I really appreciate it.
Edited by Yannik - Jan. 28, 2025 09:54:01
User Avatar
Member
102 posts
Joined: May 2013
Offline
If you make a VDB from your CUTTER geo in SOPs and rasterize the origP from your MAIN geo in COPs you can use that to lookup the value of the SOP SDF and output that as a height map. But for your particular geometry you'll probably need to work at very high resolution - depending on what you mean by 'exactly where the cutter geometry intersects it'
User Avatar
Member
102 posts
Joined: May 2013
Offline
Example file here - there are some problems with UV seams but it might give you some pointers

https://www.dropbox.com/scl/fi/bqmo4avi94s1lnwqn5985/Houdini_COPs_Displacement_edit.hiplc?rlkey=1gk8fn1iwdbygkkox3nfne4qo&dl=0 [www.dropbox.com]

I deleted most of the cutter geo as it was so heavy

PS I am still finding my way with OpenCL so anyone else looking at this feel free to make improvements
Edited by j00ey - Jan. 20, 2025 12:44:12
  • Quick Links