Output face animation to centered coordinates.
This commit is contained in:
parent
247d2b73d0
commit
159359540c
BIN
face_mesh.blend
BIN
face_mesh.blend
Binary file not shown.
|
@ -78,7 +78,9 @@ if __name__ == "__main__":
|
||||||
mdd.write(pack(">3f", 0.0, 0.0, 0.0))
|
mdd.write(pack(">3f", 0.0, 0.0, 0.0))
|
||||||
else:
|
else:
|
||||||
for point in mesh:
|
for point in mesh:
|
||||||
mdd.write(pack(">3f", point.x, point.y / aspect_ratio, point.z))
|
x = point.x - 0.5
|
||||||
|
y = point.y - 0.5
|
||||||
|
mdd.write(pack(">3f", x, y / aspect_ratio, point.z))
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
print("\rWrote {} frames. ".format(len(meshes)))
|
print("\rWrote {} frames. ".format(len(meshes)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user