따..딱히 공부하려고 포스팅하는 건 아니니까..!
Obj 파일 parser 제작 가이드라인 본문
Starting character / word | Meaning |
# | Comment line |
v | Defines vertex points in 3D space, with coordinates of( x, y,z,w), w is optional |
vt | Define texture coordinates (u,v,w) where w is optional |
vn | Defines normals (x,y,z) |
f | Defines a face, composed of index of vertex/texture/normal. Note that texture and normal is optional. If both texture and normal are absent f 1 2 3 If texture exists, but normal absent f 1/3 2/2 3/4 If texture is absent, but normal exists f 1//3 2//2 3//4 if all them exist f 1/2/3 2/3/2 3/2/4 each face can contains more than 3 elements |
mtllib | Materials that describe the visual aspects of the polygons are stored in external .mtl files. The .mtl file may contain one or more named material definitions. |
o | Object name |
g | group name |
usemtl | Defines a material to use, this material will continue to be used until another usemtl line (corresponding material is saved in .mtl file) |
s | Smooth shading |
mtllib | Point to an external .mtl file that saves the object materials |
출처 : http://web.cse.ohio-state.edu/~hwshen/581/Site/Lab3_files/Labhelp_Obj_parser.htm
'그래픽스' 카테고리의 다른 글
Tearing 현상과 수직동기화 (0) | 2017.01.07 |
---|---|
[SlideShare] 다양한 3D 애니메이션 기술 (0) | 2016.06.03 |
3D model 포맷들 (0) | 2016.04.21 |
Windows8/8.1/10 vs2013에서 OpenGL 라이브러리 환경 셋팅하기 (0) | 2016.03.06 |
유니티 2D 이미지가 깨질때 (0) | 2016.02.25 |