Closed meszaros-lajos-gyorgy closed 6 months ago
It also happens when noclipping:
Making all polygons double sided solves this issue, but that wasn't a requirement for the original level file
That polygon on the stairway is actually a twisted quad:
Maybe the issue is that polygon.norm
and polygon.norm2
are not preserved:
left one is the original, while the right one is the generated
This might be the cause of the issue: https://github.com/arx-tools/arx-level-generator/blob/main/src/Polygon.ts#L162
Yes, that fixed it. I will leave generating the normals to another ticket, preserving them when loading existing levels was the bigger issue.
Commit that fixes this: https://github.com/arx-tools/arx-level-generator/commit/9a80023ab7efb23a55964e1b2d66fde528fc566f
Importing an existing level and exporting it without any changes will result in a lot of pointy triangles not always visible. A good example are with the stairs close to Gary's shop at level 11: