- PoiMesher dresses every point of interest from its parts: lapped tarred weatherboards, plank boards, stone in a running bond with lichen, tiled roofs with a ridge cap, salt-white trim on paint, crusted salt pans, and a tarred frame round the lighthouse's glowing glass. One mesh per POI. - Huts get a shuttered window in each side wall (non-solid parts, no rng). - Build pieces show their state: building in quarter steps, worn (a third of health gone) and battered (two thirds gone, strips knocked out). StructureView rebuilds a piece's mesh only when its state changes. - VesselModels builds the barge (lofted hull, curved rails, mooring lines, gored envelope) and the sea chests in code; the primitive stand-ins are gone. - Terrain: tussocks, wind-dried patches, shingle on sand, lichen on rock. - test_world_art (9) fails on any primitive stand-in mesh or placeholder resource under src/ or assets/, and covers POI bounds and determinism, windows, the lamp surface, wear and build stages, view rebuilds and the vessel models. - make poi-captures and make build-captures (state card, vessels). Closes #45 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.3 KiB
GDScript
36 lines
1.3 KiB
GDScript
## 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)
|