feat: stage simulation garden first read
This commit is contained in:
@@ -25,8 +25,10 @@ func _run() -> void:
|
||||
|
||||
root.add_child(main_scene)
|
||||
await process_frame
|
||||
_apply_capture_camera(main_scene)
|
||||
for _frame in WARMUP_FRAMES:
|
||||
await process_frame
|
||||
_apply_capture_camera(main_scene)
|
||||
|
||||
var active_npcs := main_scene.get_node("ActiveNPCs")
|
||||
var demo_controller := main_scene.get_node("DemoController")
|
||||
@@ -104,3 +106,14 @@ func _analyze_image(image: Image) -> Dictionary:
|
||||
"average_luma": total_luma / samples,
|
||||
"range": max_luma - min_luma,
|
||||
}
|
||||
|
||||
|
||||
func _apply_capture_camera(main_scene: Node) -> void:
|
||||
var camera_rig := main_scene.get_node("CameraRig")
|
||||
if camera_rig.has_method("apply_presentation_preset"):
|
||||
camera_rig.pitch_degrees = -42.0
|
||||
camera_rig.apply_presentation_preset(Vector3(-2.0, 1.2, -0.5), 128.0, 0.95)
|
||||
camera_rig.set_physics_process(false)
|
||||
|
||||
var camera := main_scene.get_node("CameraRig/Camera3D") as Camera3D
|
||||
camera.fov = 62.0
|
||||
|
||||
Reference in New Issue
Block a user