Detail maiden interior with matching PBR metals and progressive incandescence

This commit is contained in:
JariKo
2026-10-28 23:43:56 +02:00
parent fcd67109d4
commit b9a4e40c42
13 changed files with 218 additions and 12 deletions
+16 -3
View File
@@ -16,6 +16,8 @@ func run(g):
check(d.device.get_meta("apparatus_model","")=="iron_maiden_v01","Meshy model selected")
check(d.door!=d.second_door and d.door.get_child_count()>0 and d.second_door.get_child_count()>0,"independent populated doors")
check(d.door.position.x<0 and d.second_door.position.x>0,"opposite side hinges")
check(d.door.find_child("InnerLeftDetail",true,false)!=null and d.second_door.find_child("InnerRightDetail",true,false)!=null,"interior trim follows both moving doors")
check(d.device.find_child("InnerBackDetail",true,false)!=null and d.device.find_child("InnerGrate",true,false)!=null,"reinforced back and solid grated floor")
var surfaces=d.device.find_children("*","MeshInstance3D",true,false)
var textured=0
for mesh in surfaces:
@@ -24,8 +26,13 @@ func run(g):
var mat=mesh.mesh.surface_get_material(i)
if mat is StandardMaterial3D and mat.albedo_texture!=null:textured+=1
check(mesh.material_override==null,"original surface material preserved")
check(mesh.material_overlay is ShaderMaterial,"independent heat overlay")
for i in range(mesh.mesh.get_surface_count()):
check(mesh.get_surface_override_material(i) is ShaderMaterial,"PBR-preserving incandescence material")
check(textured>0,"Meshy textures present")
var outer=d.device.find_child("Body",true,false).get_active_material(0)
var inner=d.device.find_child("BodyLining",true,false).get_active_material(0)
for map_name in ["color_map","metal_map","rough_map","normal_map"]:
check(outer.get_shader_parameter(map_name)==inner.get_shader_parameter(map_name),"inner and outer share original PBR "+map_name)
g.camera.position=Vector3(5.8,3.5,3);g.camera.look_at(d.device.position+Vector3(0,1.5,0));g.camera.size=4.5
await shot(g,"open")
for k in range(19):
@@ -37,9 +44,12 @@ func run(g):
# Exercise the actual station state machine and heat without replacing PBR.
w.unlock=3;g.uid=0;w.spawn();var s=g.souls.back();s.required=[3];s.entering=false;s.entry_time=1
g.set_soul_reveal(s.visual,1);w.attach(s,0);w.step_station(d,.9,false)
for k in range(35):w.step_station(d,.1,true)
for k in range(16):w.step_station(d,.1,true)
check(d.motion.heat>.3 and d.motion.heat<.6,"progressive red stage")
await shot(g,"warming")
for k in range(19):w.step_station(d,.1,true)
check(d.stage==1,"station advances through closure into heat")
check(d.motion.heat>0,"heat advances")
check(d.motion.heat>.94 and d.motion.heat_light.light_energy>2.8,"full incandescence with reflected light")
await shot(g,"heated")
for k in range(100):
w.step_station(d,.1,true)
@@ -47,5 +57,8 @@ func run(g):
check(d.soul<0 and g.done==1,"completion releases soul and rewards once")
for k in range(40):w.step_station(d,.1,false)
check(is_equal_approx(d.door.rotation.y,-1.8) and is_equal_approx(d.second_door.rotation.y,1.8),"doors reopen after cooldown")
for k in range(25):w.step_station(d,.1,false)
check(d.motion.heat<.01 and d.motion.heat_light.light_energy<.01,"incandescence cools back to original metal")
await shot(g,"cooled")
print("IRON MAIDEN QA ","PASSED" if failures==0 else "FAILED",": textured model, hinges, sweep, close/heat/reward/reopen")
g.get_tree().quit(1 if failures else 0)