Working on morph targets

This commit is contained in:
2025-10-07 23:14:15 +03:00
parent 19a1275a8a
commit 3645557520
14 changed files with 731 additions and 85 deletions

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)

Binary file not shown.

BIN
assets/blender/edited-shape-test-male.blend (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -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

View File

@@ -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

Binary file not shown.

BIN
assets/blender/vehicles/boat.blend (Stored with Git LFS)

Binary file not shown.