Game Tools | Maps Baker
37018 63 8-
- Houseo_of_Secrets
- Member
- 6 posts
- Joined: 11月 2015
- Offline
-
- Houseo_of_Secrets
- Member
- 6 posts
- Joined: 11月 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 - 2022年2月17日 10:32:32
-
- dizlin
- Member
- 2 posts
- Joined: 7月 2022
- Offline
-
- forted.exe
- Member
- 13 posts
- Joined: 2月 2020
- Offline
-
- Quick Links