📄 bot2.obj
字号:
# OBJ - Wavefront object file
# the javagamebook loader only understands these commands:
# mtllib <filename> - load materials from an external .mtl file
# v <x> <y> <z> - define a vertex with floating-point coords (x,y,z)
# f <v1> <v2> <v3> ... - define a new face. a face is a flat, convex polygon
# with vertices in counter-clockwise order.
# positive numbers indicate the index of the vertex that
# is defined in the file. negative numbers indicate the
# vertex defined relative to last vertex read. for
# example, 1 indicates the first vertex in the file,
# -1 means the last vertex read, and -2 is the vertex
# before that.
# g <name> - define a new group by name. the following faces are
# added to the group.
# usemtl <name> - use the named material (loaded from a .mtl file)
# for the faces in this group.
# same as bot1, but with a different texture for the turret
# load materials
mtllib textures.mtl
# base
v -32 0 -32
v -32 0 32
v 32 0 32
v 32 0 -32
v -32 2 -32
v -32 2 32
v 32 2 32
v 32 2 -32
v -8 32 -8
v -8 32 8
v 8 32 8
v 8 32 -8
g base
usemtl texture_A
f 1 2 6 5
f 2 3 7 6
f 3 4 8 7
f 4 1 5 8
f 5 6 10 9
f 6 7 11 10
f 7 9 12 11
f 8 5 9 12
f 9 10 11 12
# turretArm
v -4 0 -4
v -4 0 4
v 4 0 4
v 4 0 -4
v 4 32 4
v 4 32 12
v 12 32 12
v 12 32 4
g turretArm
usemtl texture_B
f -8 -7 -3 -4
f -7 -6 -2 -3
f -6 -5 -1 -2
f -5 -8 -4 -1
f -1 -2 -3 -4
# turret
v -4 -4 8
v -4 4 8
v 4 4 8
v 4 -4 8
v -4 -4 -48
v -4 4 -48
v 4 4 -48
v 4 -4 -48
g turret
usemtl texture_D
f -8 -7 -3 -4
f -7 -6 -2 -3
f -6 -5 -1 -2
f -5 -8 -4 -1
f -1 -2 -3 -4
f -5 -6 -7 -8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -