Direct3D 11 question about loading .OBJ models

Started by
2 comments, last by GlenDC 11 years, 7 months ago
I'm trying to load a .obj file and render the model on the screen. I am seeing lines in the .obj that look like this:



f 44557/26434 44561/26438 44559/26436
f 44561/26438 44557/26434 44563/26440
f 44563/26440 44555/26432 44566/26443
f 44573/26451 44570/26447 44571/26448 44572/26450
f 44575/26454 44573/26451 44572/26450 44574/26453
f 44576/26455 44577/26456 44578/26457
f 44579/26458 44576/26455 44580/26459
f 44577/26456 44576/26455 44579/26458
f 44581/26460 44579/26458 44580/26459
f 44570/26447 44581/26460 44571/26448
f 44579/26458 44581/26460 44570/26447

[/quote]

What do the faces with four vertices represent?
J.W.
Advertisement
According to this http://en.wikipedia....front_.obj_file they are quadrilaterals instead of triangles.
faces are polygons in the obj format, there can be any number of points listed. Standard approach is to split them like a triangle fan when converting to triangles.
A few days ago i received a url via the GameDev IRC channel. It's a kind of manual which explains everything you can find in an .obj file.
You can find the manual here.

This topic is closed to new replies.

Advertisement