diff --git a/cars/diehatsu_facade/car.glb b/cars/diehatsu_facade/car.glb new file mode 100644 index 0000000..43b8503 Binary files /dev/null and b/cars/diehatsu_facade/car.glb differ diff --git a/cars/diehatsu_facade/car.glb.import b/cars/diehatsu_facade/car.glb.import new file mode 100644 index 0000000..afe6e6c --- /dev/null +++ b/cars/diehatsu_facade/car.glb.import @@ -0,0 +1,45 @@ +[remap] + +importer="scene" +importer_version=1 +type="PackedScene" +uid="uid://dmrmwe8ggn88c" +path="res://.godot/imported/car.glb-9c6806388943ece1f560df61ec5c21e9.scn" + +[deps] + +source_file="res://cars/diehatsu_facade/car.glb" +dest_files=["res://.godot/imported/car.glb-9c6806388943ece1f560df61ec5c21e9.scn"] + +[params] + +nodes/root_type="" +nodes/root_name="" +nodes/root_script=null +mesh_library/use_node_names_as_mesh_names=false +array_mesh/deduplicate_surfaces=true +nodes/apply_root_scale=true +nodes/root_scale=1.0 +nodes/import_as_skeleton_bones=false +nodes/use_name_suffixes=true +nodes/use_node_type_suffixes=true +meshes/ensure_tangents=true +meshes/generate_lods=true +meshes/create_shadow_meshes=true +meshes/light_baking=1 +meshes/lightmap_texel_size=0.2 +meshes/force_disable_compression=false +skins/use_named_skins=true +animation/import=true +animation/fps=30 +animation/trimming=false +animation/remove_immutable_tracks=true +animation/import_rest_as_RESET=false +import_script/path="" +materials/extract=0 +materials/extract_format=0 +materials/extract_path="" +_subresources={} +gltf/naming_version=2 +gltf/embedded_image_handling=1 +gltf/texture_map_mode=1 diff --git a/cars/diehatsu_facade/stats.tres b/cars/diehatsu_facade/stats.tres new file mode 100644 index 0000000..b7c9a97 --- /dev/null +++ b/cars/diehatsu_facade/stats.tres @@ -0,0 +1,13 @@ +[gd_resource type="Resource" script_class="CarStats" load_steps=2 format=3] + +[ext_resource type="Script" path="res://src/car_stats.gd" id="1"] + +[resource] +script = ExtResource("1") +display_name = "DIEHATSU FACADE 1.0" +model_path = "res://cars/diehatsu_facade/car.glb" +engine_power = 20.8 +mass = 680.0 +grip = 8.0 +length = 3.55 +width = 1.55 diff --git a/tools/build_cars.py b/tools/build_cars.py index 164a8b1..5686534 100644 --- a/tools/build_cars.py +++ b/tools/build_cars.py @@ -120,6 +120,14 @@ CARS = { ohang_f=0.52, ohang_r=0.50, wheel=0.22, paint=(0.55, 0.75, 0.88, 1), chrome_bumpers=True, hatch=True, indicators=True), + # Exhibit A: 1984 G11 Charade 5-door. 650 kg, a one-litre THREE-cylinder, + # rear louvres on the good ones. Gutless beyond parody IRL -> elite here. + "diehatsu_facade": dict(L=3.55, W=1.55, nose=0.60, belt=0.78, tail=0.92, + bonnet=0.85, boot=0.30, roof=1.36, roof_rear=0.62, + ohang_f=0.62, ohang_r=0.60, wheel=0.24, + paint=(0.78, 0.10, 0.10, 1), chrome_bumpers=False, hatch=True, + black_bumpers=True, louvres=True, indicators=True, + side_strip=True, wide_grille=True), # mokes use the open-tub builder: style="moke" "mini_merk": dict(style="moke", L=3.05, W=1.42, nose=0.60, tub=0.66, canopy=1.38, bonnet=0.85, ohang_f=0.55, ohang_r=0.55, wheel=0.26, @@ -287,7 +295,8 @@ def build(car_id, s): tyre = material("tyre", TYRE, rough=0.9) chrome = material("chrome", CHROME, metallic=1.0, rough=0.25) dark = material("dark", DARK, rough=0.8) - bumper_mat = chrome if s["chrome_bumpers"] else paint_dk + # chrome > true black plastic > body-tone dark; 80s econoboxes are black + bumper_mat = chrome if s["chrome_bumpers"] else (dark if s.get("black_bumpers") else paint_dk) L, W = s["L"], s["W"] f, r, hw = L / 2, -L / 2, W / 2