508 lines
18 KiB
Python
508 lines
18 KiB
Python
"""Build the Condor (Heavy Quad-Thruster Assault VTOL) chassis GLB, manifest.json, and preview."""
|
|
from __future__ import annotations
|
|
|
|
import math
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import bmesh
|
|
from mathutils import Matrix
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
import vehicle_common as vc # noqa: E402
|
|
|
|
|
|
def _build_jet_nacelle(
|
|
name: str,
|
|
joint_id: str,
|
|
rotor_id: str,
|
|
side: float,
|
|
location: tuple[float, float, float],
|
|
scale: float,
|
|
tilt_deg: float,
|
|
parent,
|
|
joints_manifest: list[dict],
|
|
) -> None:
|
|
"""Build a pivoting vectored-thrust armored jet nacelle with copper exhaust skirt and spinning turbine."""
|
|
nacelle_pivot = vc.make_empty(
|
|
joint_id,
|
|
parent=parent,
|
|
location=location,
|
|
rotation_deg=(tilt_deg, 0.0, 0.0),
|
|
)
|
|
vc.tag_joint(nacelle_pivot, joint_id, [1.0, 0.0, 0.0], -45.0, 75.0)
|
|
joints_manifest.append({"id": joint_id, "axis": [1.0, 0.0, 0.0], "min": -45.0, "max": 75.0})
|
|
|
|
r_in = 0.31 * scale
|
|
r_out = 0.43 * scale
|
|
# Armored olive intake shroud + jet housing
|
|
shroud_prof = [
|
|
[r_in, -0.18 * scale],
|
|
[r_out * 0.96, -0.18 * scale],
|
|
[r_out * 1.05, 0.02 * scale],
|
|
[r_out * 1.05, 0.34 * scale],
|
|
[r_out * 0.92, 0.44 * scale],
|
|
[r_in * 1.02, 0.44 * scale],
|
|
[r_in * 0.96, 0.26 * scale],
|
|
[r_in, -0.18 * scale],
|
|
]
|
|
vc.make_lathe_part(
|
|
f"{name}_shroud",
|
|
shroud_prof[:-1],
|
|
segments=20,
|
|
loop=True,
|
|
smooth=True,
|
|
mat_name="olive_armor",
|
|
parent=nacelle_pivot,
|
|
)
|
|
# Vectored copper thermal exhaust nozzle petals
|
|
nozzle_prof = [
|
|
[r_in * 0.92, -0.44 * scale],
|
|
[r_out * 0.86, -0.44 * scale],
|
|
[r_out * 0.96, -0.18 * scale],
|
|
[r_in, -0.18 * scale],
|
|
]
|
|
vc.make_lathe_part(
|
|
f"{name}_nozzle",
|
|
nozzle_prof,
|
|
segments=20,
|
|
loop=True,
|
|
smooth=True,
|
|
mat_name="copper_rad",
|
|
parent=nacelle_pivot,
|
|
)
|
|
# Inner gunmetal stator vanes + outer hinge trunnion lug
|
|
for ang_deg in (0.0, 90.0):
|
|
vc.make_box(
|
|
f"{name}_stator_{int(ang_deg)}",
|
|
(r_in * 1.92, 0.04 * scale, 0.06 * scale),
|
|
"gunmetal",
|
|
parent=nacelle_pivot,
|
|
location=(0.0, 0.0, -0.16 * scale),
|
|
rotation_deg=(0.0, 0.0, ang_deg),
|
|
bevel=0.004,
|
|
)
|
|
vc.make_box(
|
|
f"{name}_trunnion_lug",
|
|
(0.18 * scale, 0.28 * scale, 0.20 * scale),
|
|
"gunmetal",
|
|
parent=nacelle_pivot,
|
|
location=(-side * (r_out * 0.98), 0.0, 0.12 * scale),
|
|
bevel=0.008,
|
|
)
|
|
|
|
# Spinning axial turbine rotor
|
|
rotor_pivot = vc.make_empty(rotor_id, parent=nacelle_pivot, location=(0.0, 0.0, 0.14 * scale))
|
|
vc.tag_joint(rotor_pivot, rotor_id, [0.0, 1.0, 0.0], -360.0, 360.0)
|
|
joints_manifest.append({"id": rotor_id, "axis": [0.0, 1.0, 0.0], "min": -360.0, "max": 360.0})
|
|
|
|
spinner_prof = [
|
|
[0.0, -0.06 * scale],
|
|
[0.11 * scale, -0.06 * scale],
|
|
[0.11 * scale, 0.08 * scale],
|
|
[0.06 * scale, 0.22 * scale],
|
|
[0.0, 0.30 * scale],
|
|
]
|
|
vc.make_lathe_part(f"{name}_spinner", spinner_prof, segments=12, loop=False, smooth=True, mat_name="gunmetal", parent=rotor_pivot)
|
|
|
|
def build_blades(bm: bmesh.types.BMesh) -> None:
|
|
for i in range(6):
|
|
a = i * math.pi / 3.0
|
|
m = (
|
|
Matrix.Rotation(a, 4, "Z")
|
|
@ Matrix.Translation((0.19 * scale, 0.0, 0.02 * scale))
|
|
@ Matrix.Rotation(math.radians(26.0), 4, "X")
|
|
@ Matrix.Diagonal((0.20 * scale, 0.072 * scale, 0.014 * scale, 1.0))
|
|
)
|
|
bmesh.ops.create_cube(bm, size=1.0, matrix=m)
|
|
|
|
vc.make_bmesh_object(f"{name}_blades", build_blades, "gunmetal", parent=rotor_pivot)
|
|
|
|
|
|
def build_condor() -> dict:
|
|
vc.reset_scene()
|
|
vc.ensure_materials()
|
|
|
|
root = vc.make_empty("CondorRoot")
|
|
chassis = vc.make_empty("Chassis", parent=root)
|
|
|
|
# --- 1. 4 Stubby Hydraulic Landing Legs (grounded at Z = 0) ---
|
|
# Front twin nose/cheek wheel-legs at y = -1.56, x = +/- 0.42
|
|
for side in (-1.0, 1.0):
|
|
tag = "L" if side > 0 else "R"
|
|
vc.make_ram_span(
|
|
f"gear_front_strut_{tag}",
|
|
[side * 0.34, -1.52, 0.64],
|
|
[side * 0.44, -1.60, 0.16],
|
|
body_r=0.052,
|
|
rod_r=0.030,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="copper_rad",
|
|
)
|
|
vc.make_ram_span(
|
|
f"gear_front_drag_{tag}",
|
|
[side * 0.30, -1.16, 0.58],
|
|
[side * 0.44, -1.58, 0.18],
|
|
body_r=0.030,
|
|
rod_r=0.018,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="gunmetal",
|
|
)
|
|
vc.make_knobby_wheel(
|
|
f"gear_front_wheel_{tag}",
|
|
radius=0.16,
|
|
width=0.14,
|
|
parent=chassis,
|
|
location=(side * 0.46, -1.60, 0.16),
|
|
tread_lugs=10,
|
|
rim_segments=12,
|
|
side_sign=int(side),
|
|
)
|
|
# Rear splayed outrigger hydraulic legs with armored ski-pads at y = +1.08
|
|
vc.make_box(f"gear_rear_sponson_{tag}", (0.26, 0.46, 0.24), "olive_armor", parent=chassis, location=(side * 0.78, 1.06, 0.68), bevel=0.01)
|
|
vc.make_ram_span(
|
|
f"gear_rear_strut_{tag}",
|
|
[side * 0.78, 1.06, 0.64],
|
|
[side * 1.04, 1.08, 0.08],
|
|
body_r=0.058,
|
|
rod_r=0.032,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="copper_rad",
|
|
)
|
|
vc.make_ram_span(
|
|
f"gear_rear_brace_{tag}",
|
|
[side * 0.62, 0.68, 0.56],
|
|
[side * 1.02, 1.06, 0.10],
|
|
body_r=0.032,
|
|
rod_r=0.020,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="gunmetal",
|
|
)
|
|
# Articulated ski-pad foot + small bogie wheel grounded at Z = 0
|
|
vc.make_box(f"gear_rear_ski_{tag}", (0.26, 0.66, 0.055), "gunmetal", parent=chassis, location=(side * 1.04, 1.08, 0.028), bevel=0.008)
|
|
vc.make_box(f"gear_rear_ski_tip_{tag}", (0.26, 0.16, 0.055), "gunmetal", parent=chassis, location=(side * 1.04, 0.72, 0.065), rotation_deg=(28.0, 0.0, 0.0), bevel=0.006)
|
|
|
|
# --- 2. Brutalist Angular Bolted Fuselage & Canopy (Brokkr plate.v0) ---
|
|
hull_pts = [
|
|
# Nose prow (y = -2.78)
|
|
[-0.38, -2.78, 0.84], [0.38, -2.78, 0.84],
|
|
[-0.44, -2.72, 1.06], [0.44, -2.72, 1.06],
|
|
# Forward cabin shoulder (y = -1.54)
|
|
[-0.78, -1.54, 0.56], [0.78, -1.54, 0.56],
|
|
[-0.86, -1.42, 1.24], [0.86, -1.42, 1.24],
|
|
[-0.58, -1.24, 1.62], [0.58, -1.24, 1.62],
|
|
# Mid troop bay (y = +1.12)
|
|
[-0.78, 1.12, 0.56], [0.78, 1.12, 0.56],
|
|
[-0.88, 1.12, 1.28], [0.88, 1.12, 1.28],
|
|
[-0.64, 1.12, 1.66], [0.64, 1.12, 1.66],
|
|
# Tapered rear tail boom (y = +2.78)
|
|
[-0.36, 2.78, 1.08], [0.36, 2.78, 1.08],
|
|
[-0.38, 2.78, 1.48], [0.38, 2.78, 1.48],
|
|
]
|
|
canopy_pts = [
|
|
[-0.42, -2.42, 1.06], [0.42, -2.42, 1.06],
|
|
[-0.56, -1.36, 1.26], [0.56, -1.36, 1.26],
|
|
[-0.48, -1.20, 1.66], [0.48, -1.20, 1.66],
|
|
[-0.40, -1.86, 1.62], [0.40, -1.86, 1.62],
|
|
]
|
|
plates_doc = {
|
|
"schema": "brokkr.plates.v0",
|
|
"plates": [
|
|
{
|
|
"name": "condor_fuselage",
|
|
"mat": "olive_armor",
|
|
"bevel": 0.016,
|
|
"sides": "one",
|
|
"mirror": False,
|
|
"points": hull_pts,
|
|
},
|
|
{
|
|
"name": "condor_canopy",
|
|
"mat": "smoked_glass",
|
|
"bevel": 0.008,
|
|
"sides": "one",
|
|
"mirror": False,
|
|
"points": canopy_pts,
|
|
},
|
|
# Bolted side troop-bay armor plates + crew doors
|
|
{
|
|
"name": "condor_flank_armor",
|
|
"mat": "olive_armor",
|
|
"bevel": 0.010,
|
|
"sides": "both",
|
|
"mirror": False,
|
|
"slab": {
|
|
"at": [0.86, -0.14, 0.94],
|
|
"normal": [0.98, 0.0, -0.18],
|
|
"up": [0.18, 0.0, 0.98],
|
|
"right": [0.0, -1.0, 0.0],
|
|
"outline": [[-1.18, -0.32], [1.18, -0.32], [1.08, 0.34], [-1.08, 0.34]],
|
|
"thick": 0.05,
|
|
"taper": 0.014,
|
|
"back": 0.92,
|
|
},
|
|
"clad": {
|
|
"mat": "olive_armor",
|
|
"facets": "outer",
|
|
"min_area": 0.14,
|
|
"lifts": [0.008, 0.014],
|
|
"inset": 0.05,
|
|
"gap": 0.016,
|
|
"split": 0.72,
|
|
"seed": 1001,
|
|
"bolt_r": 0.013,
|
|
"bolt_mat": "gunmetal",
|
|
"bevel": 0.004,
|
|
},
|
|
"fits": [
|
|
{"kind": "bolts", "inset": 0.025, "spacing": 0.34, "mat": "gunmetal", "params": "r=0.013"},
|
|
{"kind": "part", "part": "handle", "at": [0.32, 0.02], "roll": 0.0, "mat": "gunmetal", "params": "length=0.22;lift=0.045;r=0.012"},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
vc.make_plates(plates_doc, parent=chassis)
|
|
|
|
# Canopy structural armor ribs + dorsal radiator spine housing + rear APU jet nozzle + V-tail stabilizers
|
|
vc.make_swept_tube(
|
|
"canopy_spine",
|
|
[[0.0, -2.44, 1.06], [0.0, -1.86, 1.64], [0.0, -1.18, 1.68]],
|
|
0.028, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04,
|
|
)
|
|
for side in (-1.0, 1.0):
|
|
tag = "L" if side > 0 else "R"
|
|
vc.make_swept_tube(
|
|
f"canopy_rib_{tag}",
|
|
[[side * 0.40, -2.40, 1.06], [side * 0.42, -1.84, 1.62], [side * 0.48, -1.20, 1.66]],
|
|
0.022, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04,
|
|
)
|
|
# Side weapon sponson boxes on forward cheek flanks
|
|
vc.make_box(f"weapon_sponson_box_{tag}", (0.24, 0.76, 0.36), "olive_armor", parent=chassis, location=(side * 0.92, -1.16, 0.96), bevel=0.01)
|
|
# Fore nacelle shoulder sponsons (y = -0.86)
|
|
vc.make_box(f"fore_wing_{tag}", (0.64, 0.44, 0.22), "olive_armor", parent=chassis, location=(side * 0.86, -0.86, 1.48), rotation_deg=(0.0, side * -6.0, 0.0), bevel=0.012)
|
|
# Aft main high-mounted swept wings (y = +0.74)
|
|
vc.make_box(f"aft_wing_{tag}", (1.06, 0.72, 0.22), "olive_armor", parent=chassis, location=(side * 1.18, 0.74, 1.60), rotation_deg=(0.0, side * -5.0, side * -8.0), bevel=0.014)
|
|
# Tilt actuator rams for fore & aft nacelles
|
|
vc.make_ram_span(
|
|
f"tilt_ram_f_{tag}",
|
|
[side * 0.68, -1.04, 1.54],
|
|
[side * 1.06, -0.86, 1.50],
|
|
body_r=0.032,
|
|
rod_r=0.018,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="copper_rad",
|
|
)
|
|
vc.make_ram_span(
|
|
f"tilt_ram_r_{tag}",
|
|
[side * 1.18, 0.50, 1.68],
|
|
[side * 1.56, 0.74, 1.66],
|
|
body_r=0.038,
|
|
rod_r=0.020,
|
|
parent=chassis,
|
|
mat_barrel="gunmetal",
|
|
mat_rod="copper_rad",
|
|
)
|
|
# Canted twin tail stabilizers + ventral strakes
|
|
vc.make_box(
|
|
f"tail_fin_{tag}",
|
|
(0.06, 0.66, 0.94),
|
|
"olive_armor",
|
|
parent=chassis,
|
|
location=(side * 0.56, 2.58, 1.72),
|
|
rotation_deg=(24.0, side * -32.0, 0.0),
|
|
bevel=0.01,
|
|
)
|
|
vc.make_box(
|
|
f"tail_horiz_{tag}",
|
|
(0.46, 0.54, 0.07),
|
|
"olive_armor",
|
|
parent=chassis,
|
|
location=(side * 0.44, 2.54, 1.34),
|
|
rotation_deg=(0.0, side * 10.0, side * -12.0),
|
|
bevel=0.008,
|
|
)
|
|
|
|
# Dorsal radiator spine ridge (runs behind canopy to tail root)
|
|
vc.make_box("dorsal_spine_core", (0.78, 2.48, 0.26), "olive_armor", parent=chassis, location=(0.0, 0.28, 1.70), bevel=0.014)
|
|
vc.make_box("dorsal_spine_cap", (0.48, 2.38, 0.14), "gunmetal", parent=chassis, location=(0.0, 0.28, 1.84), bevel=0.01)
|
|
|
|
# Rear tail APU / main jet exhaust cone
|
|
rear_nozzle_prof = [
|
|
[0.18, 0.0],
|
|
[0.27, 0.0],
|
|
[0.29, 0.18],
|
|
[0.24, 0.36],
|
|
[0.16, 0.36],
|
|
[0.18, 0.0],
|
|
]
|
|
vc.make_lathe_part(
|
|
"rear_jet_nozzle",
|
|
rear_nozzle_prof[:-1],
|
|
segments=18,
|
|
loop=True,
|
|
smooth=True,
|
|
mat_name="copper_rad",
|
|
parent=chassis,
|
|
location=(0.0, 2.74, 1.28),
|
|
rotation_deg=(-90.0, 0.0, 0.0),
|
|
)
|
|
|
|
# --- 3. 4 Pivoting Vectored-Thrust Jet Nacelles (joint.nacelle_fl/fr/rl/rr) ---
|
|
joints_manifest: list[dict] = []
|
|
# Fore nacelles
|
|
for side, j_tag in ((1.0, "fl"), (-1.0, "fr")):
|
|
_build_jet_nacelle(
|
|
f"nacelle_{j_tag}",
|
|
f"joint.nacelle_{j_tag}",
|
|
f"joint.rotor_{j_tag}",
|
|
side,
|
|
location=(side * 1.42, -0.86, 1.48),
|
|
scale=0.82,
|
|
tilt_deg=-16.0,
|
|
parent=chassis,
|
|
joints_manifest=joints_manifest,
|
|
)
|
|
# Aft main nacelles (larger vectored jet pods)
|
|
for side, j_tag in ((1.0, "rl"), (-1.0, "rr")):
|
|
_build_jet_nacelle(
|
|
f"nacelle_{j_tag}",
|
|
f"joint.nacelle_{j_tag}",
|
|
f"joint.rotor_{j_tag}",
|
|
side,
|
|
location=(side * 1.88, 0.74, 1.62),
|
|
scale=1.06,
|
|
tilt_deg=-14.0,
|
|
parent=chassis,
|
|
joints_manifest=joints_manifest,
|
|
)
|
|
|
|
# --- 4. Heavy Nose Chin Turret (joint.turret_yaw) ---
|
|
turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, -2.26, 0.74))
|
|
vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0)
|
|
joints_manifest.append({"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0})
|
|
|
|
vc.make_tube_part("chin_turret_ring", 0.28, 0.30, 0.10, segments=16, mat_name="gunmetal", parent=turret_pivot, location=(0.0, 0.0, -0.04))
|
|
vc.make_box("chin_turret_housing", (0.44, 0.48, 0.22), "olive_armor", parent=turret_pivot, location=(0.0, 0.0, -0.14), bevel=0.012)
|
|
vc.make_box("chin_optics", (0.20, 0.10, 0.10), "smoked_glass", parent=turret_pivot, location=(0.0, -0.24, -0.10), bevel=0.005)
|
|
|
|
# --- 5. Visible Exterior Hardpoints (5x6 Masked Dorsal Grid) ---
|
|
# 1) hp.weapon.nose (1,0, 2x1) under chin turret
|
|
vc.add_hardpoint_slot(
|
|
"hp.weapon.nose",
|
|
"weapon",
|
|
parent=turret_pivot,
|
|
location=(0.0, 0.0, -0.25),
|
|
rotation_deg=(0.0, 180.0, 0.0),
|
|
size=(0.46, 0.46, 0.08),
|
|
)
|
|
# 2) hp.armor.hull (3,0, 1x1) on sloped upper nose glacis in front of canopy
|
|
vc.add_hardpoint_slot(
|
|
"hp.armor.hull",
|
|
"armor",
|
|
parent=chassis,
|
|
location=(0.0, -2.56, 1.13),
|
|
rotation_deg=(69.0, 0.0, 0.0),
|
|
size=(0.64, 0.26, 0.09),
|
|
plinth_depth=0.04,
|
|
)
|
|
# 3 & 4) hp.weapon.sponson_l (0,1, 1x2) & hp.weapon.sponson_r (4,1, 1x2) on cheek weapon sponsons
|
|
vc.add_hardpoint_slot(
|
|
"hp.weapon.sponson_l",
|
|
"weapon",
|
|
parent=chassis,
|
|
location=(1.04, -1.16, 0.96),
|
|
rotation_deg=(0.0, 90.0, 0.0),
|
|
size=(0.44, 0.44, 0.08),
|
|
)
|
|
vc.add_hardpoint_slot(
|
|
"hp.weapon.sponson_r",
|
|
"weapon",
|
|
parent=chassis,
|
|
location=(-1.04, -1.16, 0.96),
|
|
rotation_deg=(0.0, -90.0, 0.0),
|
|
size=(0.44, 0.44, 0.08),
|
|
)
|
|
# 5) hp.weapon.dorsal (2,1, 1x1) on forward dorsal spine behind cockpit
|
|
vc.add_hardpoint_slot(
|
|
"hp.weapon.dorsal",
|
|
"weapon",
|
|
parent=chassis,
|
|
location=(0.0, -0.78, 1.91),
|
|
rotation_deg=(0.0, 0.0, 0.0),
|
|
size=(0.54, 0.54, 0.09),
|
|
)
|
|
# 6) hp.engine.core (1,2, 3x2) central dorsal turbine bay (dorsal_spine_core width 0.78, cap top at z=1.91)
|
|
vc.add_hardpoint_slot(
|
|
"hp.engine.core",
|
|
"engine",
|
|
parent=chassis,
|
|
location=(0.0, 0.36, 1.89),
|
|
rotation_deg=(0.0, 0.0, 0.0),
|
|
size=(0.74, 1.14, 0.14),
|
|
plinth_depth=0.05,
|
|
)
|
|
# 7 & 8) hp.radiator.spine_l (0,3, 1x2) & hp.radiator.spine_r (4,3, 1x2) along canted dorsal spine flanks
|
|
vc.add_hardpoint_slot(
|
|
"hp.radiator.spine_l",
|
|
"radiator",
|
|
parent=chassis,
|
|
location=(0.56, 1.02, 1.68),
|
|
rotation_deg=(0.0, 56.0, 0.0),
|
|
size=(0.40, 1.04, 0.11),
|
|
)
|
|
vc.add_hardpoint_slot(
|
|
"hp.radiator.spine_r",
|
|
"radiator",
|
|
parent=chassis,
|
|
location=(-0.56, 1.02, 1.68),
|
|
rotation_deg=(0.0, -56.0, 0.0),
|
|
size=(0.40, 1.04, 0.11),
|
|
)
|
|
|
|
# --- 6. Export GLB, Manifest & Preview ---
|
|
glb_path = vc.ASSETS_VEHICLES_DIR / "condor" / "condor.glb"
|
|
manifest_path = vc.ASSETS_VEHICLES_DIR / "condor" / "manifest.json"
|
|
preview_path = vc.PREVIEWS_DIR / "condor_preview.png"
|
|
|
|
tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root)
|
|
vc.write_manifest(
|
|
manifest_path,
|
|
vehicle_id="condor",
|
|
name="Condor",
|
|
vehicle_class="Heavy Quad-Thruster Assault VTOL",
|
|
grid_width=5,
|
|
grid_height=6,
|
|
mask=[
|
|
".###.",
|
|
"#####",
|
|
"#####",
|
|
"#####",
|
|
"#####",
|
|
"..#..",
|
|
],
|
|
hardpoints=[
|
|
{"id": "hp.weapon.nose", "kind": "weapon", "x": 1, "y": 0, "w": 2, "h": 1, "modelNodeId": "hp.weapon.nose"},
|
|
{"id": "hp.armor.hull", "kind": "armor", "x": 3, "y": 0, "w": 1, "h": 1, "modelNodeId": "hp.armor.hull"},
|
|
{"id": "hp.weapon.sponson_l", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_l"},
|
|
{"id": "hp.weapon.dorsal", "kind": "weapon", "x": 2, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.weapon.dorsal"},
|
|
{"id": "hp.weapon.sponson_r", "kind": "weapon", "x": 4, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_r"},
|
|
{"id": "hp.engine.core", "kind": "engine", "x": 1, "y": 2, "w": 3, "h": 2, "modelNodeId": "hp.engine.core"},
|
|
{"id": "hp.radiator.spine_l", "kind": "radiator", "x": 0, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.spine_l"},
|
|
{"id": "hp.radiator.spine_r", "kind": "radiator", "x": 4, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.spine_r"},
|
|
],
|
|
joints=joints_manifest,
|
|
bounds=bounds,
|
|
tri_count=tri_count,
|
|
)
|
|
vc.render_four_panel_preview(preview_path)
|
|
print(f"[condor] tris={tri_count} bounds={bounds} glb={glb_path}")
|
|
return {"id": "condor", "tris": tri_count, "bounds": bounds}
|
|
|
|
|
|
if __name__ == "__main__":
|
|
build_condor()
|