Feat/14 movement overhaul #20
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 767 KiB |
|
Before Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 978 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 767 KiB |
|
Before Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 978 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 767 KiB |
|
Before Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 978 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 767 KiB |
|
Before Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 572 KiB |
|
Before Width: | Height: | Size: 978 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
@@ -4,14 +4,7 @@
|
|||||||
"id": "miku",
|
"id": "miku",
|
||||||
"name": "Miku",
|
"name": "Miku",
|
||||||
"description": "Hatsune Miku \u2014 Virtual Idol",
|
"description": "Hatsune Miku \u2014 Virtual Idol",
|
||||||
"model": "res://assets/characters/skins/miku_proper_anim.glb",
|
"model": "res://assets/characters/skins/miku.glb",
|
||||||
"unlocked": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "miku_test",
|
|
||||||
"name": "Miku Test",
|
|
||||||
"description": "",
|
|
||||||
"model": "res://assets/characters/skins/miku_test.glb",
|
|
||||||
"unlocked": true
|
"unlocked": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
@tool
|
|
||||||
extends EditorScript
|
|
||||||
|
|
||||||
func _run():
|
|
||||||
var source = "res://assets/characters/skins/miku_rigged_final.glb"
|
|
||||||
var dest = "res://assets/characters/skins/miku_rigged_imported.tscn"
|
|
||||||
|
|
||||||
print("Loading %s..." % source)
|
|
||||||
var glb = load(source)
|
|
||||||
if not glb:
|
|
||||||
print("ERROR: Failed to load GLB")
|
|
||||||
return
|
|
||||||
|
|
||||||
print("Instantiating...")
|
|
||||||
var scene = glb.instantiate()
|
|
||||||
if not scene:
|
|
||||||
print("ERROR: Failed to instantiate")
|
|
||||||
return
|
|
||||||
|
|
||||||
print("Scene: %s" % scene.name)
|
|
||||||
print("Children:")
|
|
||||||
for child in scene.get_children():
|
|
||||||
print(" %s (%s)" % [child.name, child.get_class()])
|
|
||||||
if child is Skeleton3D:
|
|
||||||
print(" Bones: %d" % child.get_bone_count())
|
|
||||||
if child is AnimationPlayer:
|
|
||||||
print(" Animations: %s" % child.get_animation_list())
|
|
||||||
|
|
||||||
# Save as scene
|
|
||||||
var packed = PackedScene.new()
|
|
||||||
packed.pack(scene)
|
|
||||||
ResourceSaver.save(packed, dest)
|
|
||||||
print("Saved to %s" % dest)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://cr1w53xtjptct
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
@tool
|
|
||||||
extends EditorScript
|
|
||||||
|
|
||||||
func _run():
|
|
||||||
var source = "res://assets/characters/skins/miku_rigged_final.glb"
|
|
||||||
var dest = "res://assets/characters/skins/miku_rigged.tscn"
|
|
||||||
|
|
||||||
print("Loading %s..." % source)
|
|
||||||
var glb = load(source)
|
|
||||||
if not glb:
|
|
||||||
print("ERROR: Failed to load GLB")
|
|
||||||
return
|
|
||||||
|
|
||||||
print("Instantiating...")
|
|
||||||
var scene = glb.instantiate()
|
|
||||||
if not scene:
|
|
||||||
print("ERROR: Failed to instantiate")
|
|
||||||
return
|
|
||||||
|
|
||||||
print("Scene: %s" % scene.name)
|
|
||||||
print("Children:")
|
|
||||||
for child in scene.get_children():
|
|
||||||
print(" %s (%s)" % [child.name, child.get_class()])
|
|
||||||
if child is Skeleton3D:
|
|
||||||
print(" Bones: %d" % child.get_bone_count())
|
|
||||||
for i in range(child.get_bone_count()):
|
|
||||||
var bone_name = child.get_bone_name(i)
|
|
||||||
var rest = child.get_bone_global_rest(i)
|
|
||||||
print(" %s: pos=%s" % [bone_name, rest.origin])
|
|
||||||
if child is AnimationPlayer:
|
|
||||||
print(" Animations: %s" % child.get_animation_list())
|
|
||||||
|
|
||||||
# Save as scene
|
|
||||||
var packed = PackedScene.new()
|
|
||||||
packed.pack(scene)
|
|
||||||
ResourceSaver.save(packed, dest)
|
|
||||||
print("Saved to %s" % dest)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
uid://bdes0ywhauamj
|
|
||||||