Integrate painted Meshy succubus, fix arm skinning and add grounded idle
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
extends SceneTree
|
||||
# Manual visual regression capture against the active game scene.
|
||||
func _initialize():
|
||||
call_deferred("run")
|
||||
|
||||
func run():
|
||||
AudioServer.set_bus_mute(0,true)
|
||||
var g=load("res://main.tscn").instantiate()
|
||||
root.add_child(g)
|
||||
await process_frame
|
||||
g.test_mode=true;g.capture_mode=true;g.start_game();g.set_process(false)
|
||||
g.avatar.set_process(false);g.hud.hide()
|
||||
g.player.position=Vector3(-1,0,-1)
|
||||
for imp in g.life.imps:imp.root.hide();g.avatar.rotation=Vector3.ZERO;g.avatar.reset_gait()
|
||||
var folder=ProjectSettings.globalize_path("res://captures/meshy-review")
|
||||
DirAccess.make_dir_recursive_absolute(folder)
|
||||
for i in range(3):
|
||||
for frame in range(30):g.avatar._process(1.0/24)
|
||||
await snap(g,folder+"/idle-%d.png"%i)
|
||||
for i in range(3):
|
||||
for frame in range(8):
|
||||
g.player.position+=Vector3.BACK*2.5/24;g.avatar._process(1.0/24)
|
||||
await snap(g,folder+"/walk-%d.png"%i)
|
||||
g.avatar.strike(.7)
|
||||
for i in range(3):
|
||||
for frame in range(5):g.avatar._process(1.0/24)
|
||||
await snap(g,folder+"/whip-%d.png"%i)
|
||||
print("MESHY REVIEW CAPTURE COMPLETE")
|
||||
quit()
|
||||
|
||||
func snap(g,path):
|
||||
var target=g.player.position+Vector3(0,1.35,0)
|
||||
g.camera.size=3.4;g.camera.position=target+Vector3(.15,.15,2.8);g.camera.look_at(target)
|
||||
await RenderingServer.frame_post_draw
|
||||
assert(g.get_viewport().get_texture().get_image().save_png(path)==OK)
|
||||
Reference in New Issue
Block a user