Closed UnrealKaraulov closed 6 months ago
de_dust2_with_gign.zip Full sample (model gign.mdl added to de_dust2 via 'map->mdl to bsp(wip)' feature from newbspguy)
I got bad decompile result with latest release ( https://github.com/twhl-community/HalfLife.UnifiedSdk.MapDecompiler/releases/tag/V1.0.0.0 )
Another map example, why Tree decompiler can't decompile this map?
@SamVanheer face-to-brush produces an incredible amount of extra vertices. But for one face, one vertex is quite enough. Also your face-to-brush decompiler cant detect true face side.
Possible need to invert dist for planeside with normal.
if (face->nPlaneSide)
{
BSPPLANE backplane = bsp->planes[face->iPlane];
backplane.fDist = -backplane.fDist;
backplane.vNormal = backplane.vNormal.invert();
return backplane;
}
else
{
return bsp->planes[face->iPlane];
}
gign.zip