Slide 5
Slide 5 text
OBJ file format
◼
With texture coordinates and normal vectors
Computer Graphics Course @Waseda University
# vertex data follows
v 1.0 1.0 0.0
v 1.0 0.0 0.0
v 0.0 1.0 0.0
vt 1.0 1.0
vt 1.0 0.0
vt 0.0 1.0
vn 0.0 0.0 1.0
vn 0.0 0.0 1.0
vn 0.0 0.0 1.0
# face data follows
f 1/1/1 2/2/2 3/3/3
Position, texture coordinates, normal vectors are
identified by specifiers: v, vt, and vn, respectively.
Polygon is defined by tuples of indices,
“(pos. idx)/(texture idx)/(normal idx)”