Friday, March 25, 2011

Wavefront .OBJ file format

요약 :
The OBJ file format is a simple data-format that represents 3D geometry alone — namely, the position of each vertex, the UV position of each texture coordinate vertex, normals, and the faces that make each polygon defined as a list of vertices, and texture vertices.

설명 :

# List of Vertices, with (x,y,z[,w]) coordinates, w is optional.
v 0.123 0.234 0.345 1.0
v ...
...

# Texture coordinates, in (u,v[,w]) coordinates, w is optional.
vt 0.500 -1.352 [0.234]
vt ...
...

# Normals in (x,y,z) form; normals might not be unit.
vn 0.707 0.000 0.707
vn ...
...

# Face Definitions (see below) ... vertex/texture/normal indices
f 1 2 3
f 3/1 4/2 5/3
f 6/4/1 3/5/3 7/6/5
f ...
...

출처 : http://en.wikipedia.org/wiki/Wavefront_.obj_file

No comments:

Post a Comment