Skip to content

_compute_vertices_from_planes() floating-point error. #99

Description

@StikerSD

I've been messing around with some legacy .VMF files from Vampire the Masquerade: Bloodlines and I noticed a lot of these legacy maps will have dirty brushes with high-precision floating points on the side coordinates that will often times be wrongly flagged as corrupted due to the very low intersection tolerance. I suspect this is due to the conversion from a .VMF to a .BSP and then back.

From my brief testing, increasing it to 0.01 will remove the false-positives while properly flagging the invalid brushes.

##vmf_solid.gd

var valid := true;
for s in sides:
	if s.plane.distance_to(vertex) > 0.001:
		valid = false;
		break;
if not valid: continue;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions