Working on morph targets
This commit is contained in:
BIN
assets/blender/edited-normal-female.blend
(Stored with Git LFS)
BIN
assets/blender/edited-normal-female.blend
(Stored with Git LFS)
Binary file not shown.
BIN
assets/blender/edited-normal-male.blend
(Stored with Git LFS)
BIN
assets/blender/edited-normal-male.blend
(Stored with Git LFS)
Binary file not shown.
BIN
assets/blender/edited-shape-test-male.blend
(Stored with Git LFS)
Normal file
BIN
assets/blender/edited-shape-test-male.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -9,7 +9,7 @@ from mathutils import Vector, Matrix
|
||||
from math import radians, pi
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from settings import ExportMappingFemale, ExportMappingMale, ExportMappingMaleBabyShape, ExportMappingMaleEdited, ExportMappingFemaleEdited
|
||||
from settings import ExportMappingFemale, ExportMappingMale, ExportMappingMaleBabyShape, ExportMappingMaleEdited, ExportMappingFemaleEdited, ExportMappingMaleTestShapeEdited
|
||||
|
||||
basepath = os.getcwd()
|
||||
def check_bone(bname):
|
||||
@@ -179,7 +179,7 @@ def extra_linear(angle, offset):
|
||||
ret += offt
|
||||
return ret
|
||||
|
||||
for mapping in [ExportMappingFemale(), ExportMappingMale(), ExportMappingMaleBabyShape(), ExportMappingMaleEdited(), ExportMappingFemaleEdited()]:
|
||||
for mapping in [ExportMappingFemale(), ExportMappingMale(), ExportMappingMaleBabyShape(), ExportMappingMaleEdited(), ExportMappingFemaleEdited(), ExportMappingMaleTestShapeEdited()]:
|
||||
if not os.path.exists(mapping.blend_path):
|
||||
print("Skipping mapping: " + mapping.blend_path)
|
||||
continue
|
||||
|
||||
@@ -110,3 +110,17 @@ class ExportMappingMaleBabyShape:
|
||||
for fobj in self.objs:
|
||||
self.files.append({"name": fobj})
|
||||
|
||||
class ExportMappingMaleTestShapeEdited:
|
||||
blend_path = "assets/blender/" + "edited-shape-test-male.blend"
|
||||
gltf_path = "characters/shapes/male/edited-shape-test-male.gltf"
|
||||
ogre_scene = "characters/shapes/male/chibi/vroid-normal-male-chibi.scene"
|
||||
inner_path = "Object"
|
||||
objs = ["male", "Body"]
|
||||
armature_name = "male"
|
||||
outfile = "tmp-male-chibi.blend"
|
||||
default_action = 'default'
|
||||
def __init__(self):
|
||||
self.files = []
|
||||
for fobj in self.objs:
|
||||
self.files.append({"name": fobj})
|
||||
|
||||
|
||||
BIN
assets/blender/vehicles/boat-big.blend
(Stored with Git LFS)
Normal file
BIN
assets/blender/vehicles/boat-big.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/blender/vehicles/boat.blend
(Stored with Git LFS)
BIN
assets/blender/vehicles/boat.blend
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user