-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcube.obj
More file actions
47 lines (43 loc) · 1.13 KB
/
cube.obj
File metadata and controls
47 lines (43 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This is a sample cube.obj file
# A simple cube with vertex positions, normals, UVs, and faces
# List of vertex positions (v)
v -1.000000 -1.000000 1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 1.000000 1.000000
v 1.000000 1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v -1.000000 1.000000 -1.000000
v 1.000000 1.000000 -1.000000
# List of texture coordinates (vt)
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 1.000000
# List of vertex normals (vn)
vn -0.57735 -0.57735 0.57735
vn 0.57735 -0.57735 0.57735
vn -0.57735 0.57735 0.57735
vn 0.57735 0.57735 0.57735
vn -0.57735 -0.57735 -0.57735
vn 0.57735 -0.57735 -0.57735
vn -0.57735 0.57735 -0.57735
vn 0.57735 0.57735 -0.57735
# List of faces (f) - each line references vertex/uv/normal
# format is v/vt/vn
f 1/1/1 3/3/3 4/4/4
f 1/1/1 4/4/4 2/2/2
f 5/5/5 6/6/6 8/8/8
f 5/5/5 8/8/8 7/7/7
f 5/6/5 7/7/7 3/3/3
f 5/6/5 3/3/3 1/1/1
f 2/2/2 4/4/4 8/8/8
f 2/2/2 8/8/8 6/6/6
f 3/3/3 7/7/7 8/8/8
f 3/3/3 8/8/8 4/4/4
f 5/5/5 1/1/1 2/2/2
f 5/5/5 2/2/2 6/6/6