Repository navigation
First Light: triangulate concave OBJ faces (ASSET-417) - #5111
whattheflop wants to merge 1 commit into
Conversation
Reuse the GLB face triangulator after loading all positions. Keep corner-based vertex numbering and the existing fan for faces that do not need ear clipping. Claim: ItsNotRexed#5032 (comment) AI-assisted.
|
Native Windows Radeon A/B at upstream
Ryzen 7 9800X3D Radeon iGPU, AMD Windows Vulkan driver 25.10.30.02, MSVC, glslang 16.6.0, Khronos validation 1.4.363. Khronos loaded explicitly, with zero validation warnings or errors in all four runs. Synthetic inputs only. |
kacper-serewis
left a comment
There was a problem hiding this comment.
Windows CPU comparison at 9f9f749 vs 3faac55: First Light read_obj returned identical ordered position/UV vertices and triangle indices for all 11,624 distinct cached model exports (14,631 paths, 78,634,922 faces). Every cached export face was triangular. An independent asymmetric concave five-corner fixture distinguished the implementations: head preserved winding, polygon area and per-corner UV assignments. Head's two focused suites passed 29 tests with four skips. No GPU or archive access. AI-assisted.
|
Tested
|
|
Independent Windows CPU verification on
|
Claimed in the coordination issue as ASSET-417. Claim · Coordinator confirmation
What and why
First Light emitted a first-corner fan for every polygon, which could draw across the notch of a concave OBJ face. Use the GLB exporter's existing triangulator for larger faces. Keep the original fan when it already fits, preserve vertex numbering and UV seams, and resolve positive forward references after reading the OBJ as before.
Tested
On Windows, uv CPython 3.12.13, CPU only. The synthetic notch test failed on upstream in both windings: the fan covered the notch and emitted 2.75 units of triangle area for a polygon of area 1.75. After the fix both windings leave the notch clear with area 1.75. The forward-reference, UV seam and valid triangle/quad/pentagon fan control matched upstream.
git diff --checkpassed.AI-assisted: yes.
Checklist