## Capture scenario for the generated barge and sea chests (A5): the barge from outside, ## in the air above the sea, with a row of chests on a plank stand, shut and opened. extends Node3D func _ready() -> void: var world: WorldEnvironment = WorldEnvironment.new() world.environment = Look.environment() add_child(world) add_child(Look.sun(200.0)) var barge: MeshInstance3D = MeshInstance3D.new() barge.mesh = VesselModels.barge() barge.position = Vector3(0.0, 0.0, 0.0) barge.rotation.y = 0.5 add_child(barge) var multimesh: MultiMesh = MultiMesh.new() multimesh.transform_format = MultiMesh.TRANSFORM_3D multimesh.use_colors = true multimesh.mesh = VesselModels.chest() multimesh.instance_count = 3 for index: int in 3: var at: Vector3 = Vector3(-1.4 + index * 1.4, 0.0, 0.0) multimesh.set_instance_transform(index, Transform3D(Basis.IDENTITY, at)) multimesh.set_instance_color(index, EntityView.CHEST_OPEN if index == 2 else EntityView.CHEST_SHUT) var chests: MultiMeshInstance3D = MultiMeshInstance3D.new() chests.multimesh = multimesh chests.position = Vector3(9.0, 0.0, 6.0) add_child(chests) var camera: Camera3D = Camera3D.new() camera.fov = 60.0 camera.position = Vector3(16.0, 6.0, 20.0) add_child(camera) camera.look_at(Vector3(2.0, 5.0, 0.0)) camera.make_current() Look.add_print_pass(camera)