Here are a couple pictures demonstrating my problem


EDIT: Retro seems to always use triangle strips with well over 10 vertices per strip (some face groups reaching 80 vertices)



Code: Select all
v 1 1 1
v 2 2 2
v 3 3 3
g triangle1
f 1 2 3
v 0.5 0.5 0.5
v 0.7 0.7 0.7
v 0.2 0.2 0.2
g triangle2
f 4 5 6

Code: Select all
# Face defs
g group0
f 1429 1400 1398 1381 1382 1383 1384 1385
f 360 298 309 288 310 292 293
f 1397 1427 1396 1424 1395 1423 1394 1420 1393 1419 1392 1416 1391 1415 1390 1412 1389 1411 1388 1408 1387 1407 1386 1404 1385 1403 1384
f 503 497 351 353 288 319 292
f 293 292 297 331 381 363 404
f 1445 1401 1430 1402 1431 1405 1432 1406 1433 1409 1434 1410 1435 1413 1436 1414 1437 1417 1438 1418 1439 1421 1440 1422 1441 1425 1442 1426 1443 1428 1444 1429 1445
f 1402 1403 1405 1404 1406 1407 1409 1408 1410 1411 1413 1412 1414 1415 1417 1416 1418 1419 1421 1420 1422 1423 1425 1424 1426 1427 1428 1400 1429
f 5932 5948 5904 5933 5905 5934
f 5930 5900 5899 5885 5898 5897 5926
f 566 571 497 492 353 365 319 
Ah, but OBJ doesn't support triangle strips. Are you recalculating those into triangle lists? If not, that's your problem.antidote wrote:I've tried limiting it to three vertices per face, but I always get huge gaps in the mesh. Also with blender you can uncheck N-Gons as an option.
Also as previously stated, Retro likes to use huge triangle strips, some using up to 80 vertices.

Code: Select all
for i=1 to iArr.count - 2 do
(
fa = iArr[i]
fb = iArr[i+1]
fc = iArr[i+2]
if ((fa!=fb) and (fa!=fc) and (fc!=fb)) do
(
if mod i 2 == 0 then append fArr [fa,fb,fc]
else append fArr [fb,fa,fc]
)
)