Game Tools | Maps Baker
34753 63 8-
- Houseo_of_Secrets
- Member
- 6 posts
- Joined: Nov. 2015
- Offline
-
- Houseo_of_Secrets
- Member
- 6 posts
- Joined: Nov. 2015
- Offline
I think I found the problem.
When you are using a cage input, the baker reverses the ray direction in the "cage_calculation" vertex wrangle.

In the "intersect" snippet in the copsnetwork it sets the starting point of the ray to the cage mesh and then adds the ray direction.

This way it seems to trace the model from the inside to the outside.
I changed the cage_calculation wrangle to this:

And the intersect code to this:

I still don't know if this is the best solution, but it seems to work now.
When you are using a cage input, the baker reverses the ray direction in the "cage_calculation" vertex wrangle.
In the "intersect" snippet in the copsnetwork it sets the starting point of the ray to the cage mesh and then adds the ray direction.
This way it seems to trace the model from the inside to the outside.
I changed the cage_calculation wrangle to this:
And the intersect code to this:
I still don't know if this is the best solution, but it seems to work now.
Edited by Houseo_of_Secrets - Feb. 17, 2022 10:32:32
-
- dizlin
- Member
- 2 posts
- Joined: July 2022
- Offline
-
- forted.exe
- Member
- 13 posts
- Joined: Feb. 2020
- Offline
-
- Quick Links