📄 robot.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 faces
# following are added to this group.
# usemtl <name> - Use the named material (loaded from a
# .mtl file) for the faces in this group.
# load materials
mtllib textures.mtl
g turret
usemtl texture_C
# -----------
# antenae
# -----------
v -24 40 8
v -24 40 4
v -28 40 4
v -28 40 8
v -24 88 8
v -24 88 4
v -28 88 4
v -28 88 8
# bottom/top
f -5 -6 -7 -8
f -4 -3 -2 -1
# left/right
f -5 -8 -4 -1
f -7 -6 -2 -3
# front/back
f -8 -7 -3 -4
f -6 -5 -1 -2
# -----------
# turret
# -----------
v -24 40 -8
v -24 40 8
v 72 40 8
v 72 40 -8
v -24 56 -8
v -24 56 8
v 72 56 8
v 72 56 -8
# bottom/top
f -7 -8 -5 -6
f -4 -3 -2 -1
# left/right
f -8 -4 -1 -5
f -3 -7 -6 -2
# front/back
f -8 -7 -3 -4
f -6 -5 -1 -2
g base
usemtl texture_A
# -----------
# stand
# -----------
v 4 40 -4
v 4 40 4
v -4 40 4
v -4 40 -4
v 4 8 -4
v 4 8 4
v -4 8 4
v -4 8 -4
# bottom/top
f -5 -6 -7 -8
f -4 -3 -2 -1
# left/right
f -5 -8 -4 -1
f -7 -6 -2 -3
# front/back
f -8 -7 -3 -4
f -6 -5 -1 -2
# -----------
# base
# -----------
v 16 8 16
v -16 8 16
v -16 8 -16
v 16 8 -16
v 16 0 16
v -16 0 16
v -16 0 -16
v 16 0 -16
# bottom/top
f -5 -6 -7 -8
f -4 -3 -2 -1
# left/right
f -5 -8 -4 -1
f -7 -6 -2 -3
# front/back
f -8 -7 -3 -4
f -6 -5 -1 -2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -