Seeking assistance with this COPS occlusion problem

   118   2   1
User Avatar
Member
81 posts
Joined: April 2019
Online
Hi,

I've been trying to find a method to generate an occlusion mask in COPs.

Specifically I'm wanting to generate a mask on a characters body where it is occluded by some clothing.

I've been using this posted example as a starting point: Copernicus compute ambient occulision of Geometry [www.sidefx.com]

It's mostly working the way I want however for some reason the intersect function doesn't seem to generate hits for some parts of the body (around the crotch area) and I don't understand why this is happening or how to correct it.



I'm hoping that someone might know why this is happening and how to correct it.

Example file attached.

Thanks.
Peter
Edited by mrpdean - yesterday 06:47:02

Attachments:
occlusion.jpg (378.5 KB)
occlusion.hiplc (6.0 MB)

User Avatar
Member
2173 posts
Joined: Sept. 2015
Offline
I haven't looked at your scene file;

But for your intersection function did you check to make sure the geometry you are running over isn't including the position you are searching from too?

You may need to use the intersect_all function and take the second item in the returned list.
Edited by BabaJ - yesterday 09:14:09
User Avatar
Member
9453 posts
Joined: July 2007
Offline
you can also try using Bake Geometry Textures COP to get Alpha or AO from hits rather than writing your own
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links