euv_core/game/engine3d/world/enum.rs
1/// Supported physically based 3D camera controller modes for `World3D`.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum CameraMode3D {
4 /// Dynamic third-person chase camera trailing behind the player vehicle.
5 #[default]
6 Chase,
7 /// Close low bumper and hood racing perspective mounted over the front axle.
8 Hood,
9 /// Continuous 360-degree cinematic side orbital camera around the active vehicle.
10 Orbit,
11 /// High-altitude overhead helicopter tracking camera above the player vehicle.
12 Aerial,
13 /// Unrestricted 6-DOF free-fly camera controlled directly by user input.
14 FreeFly,
15 /// Smooth cinematic dolly camera gliding along a sinusoidal showcase arc.
16 CinematicDolly,
17 /// First-person driver cockpit camera mounted over the steering column looking through the windshield.
18 Cockpit,
19 /// Elevated wide city skyline panorama overlooking the downtown towers and coastal bay.
20 CitySkylinePanorama,
21 /// Scenic riverfront and waterfront bridge overlook framing the shoreline promenade and traffic.
22 CityRiverfrontBridge,
23 /// Street-level downtown boulevard intersection angle watching supercars and traffic pass by.
24 CityDowntownIntersection,
25 /// Sweeping high-altitude aerial drone orbit circling the entire coastal metropolis.
26 CityAerialDroneOrbit,
27}
28
29/// Selectable physical time-of-day lighting presets cycled via the `T` shortcut in `World3D`.
30#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
31pub enum TimeOfDayPreset3D {
32 /// Low warm eastern sunrise sun with rose-gold horizon and soft morning shadows.
33 MorningSunrise,
34 /// High brilliant midday sun with vivid azure sky and crisp overhead lighting.
35 BrightNoon,
36 /// Rich amber-coral golden sunset over Vice Boulevard with warm specular highlights.
37 #[default]
38 GoldenSunset,
39 /// Deep neon midnight with silvery moonlight, boosted streetlamps, and blazing car headlights.
40 NeonMidnight,
41}
42
43/// Selectable dynamic atmospheric weather presets cycled via the `Y` shortcut in `World3D`.
44#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
45pub enum WeatherPreset3D {
46 /// Crisp clear sky with minimal atmospheric haze and dry asphalt grip appearance.
47 #[default]
48 ClearSunny,
49 /// Soft diffused cloud-filtered sunlight with subtle warm-cool horizon haze.
50 PartlyCloudy,
51 /// Dense atmospheric mist reducing visibility distance with damp road sheen.
52 MistyFog,
53 /// Overcast storm sky with wet specular asphalt, diagonal wind-driven rain streaks, and tire spray.
54 Rainstorm,
55}
56
57/// Selectable sculpted hero supercar bodywork and livery archetype for `World3D`.
58#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
59pub enum HeroVehicleStyle {
60 /// Lamborghini Aventador SVJ V12 stealth-fighter angular wedge supercar.
61 #[default]
62 AventadorV12,
63 /// Ford Mustang Shelby GT500 Cobra fastback muscle supercar with twin Le Mans stripes.
64 ShelbyCobra,
65}
66
67/// Real-time incremental scene mutation received from Blender Live-Link without resetting camera or rebuilding unrelated meshes.
68#[derive(Clone, Debug, PartialEq)]
69pub enum BlenderLiveDelta3D {
70 /// Updates a named scene-graph node's local TRS transform (optionally converting from Blender Z-up).
71 NodeTransform {
72 /// Target scene-graph node name.
73 node_name: String,
74 /// Local translation `[x, y, z]`.
75 translation: [f32; 3],
76 /// Local rotation quaternion `[x, y, z, w]`.
77 rotation: [f32; 4],
78 /// Local non-uniform scale `[sx, sy, sz]`.
79 scale: [f32; 3],
80 /// Whether inputs are in Blender Z-up space requiring basis conversion to Engine Y-up.
81 blender_z_up: bool,
82 },
83 /// Updates Principled BSDF parameters on a named material in place.
84 MaterialParams {
85 /// Target material name inside `World3D::principled_materials`.
86 material_name: String,
87 /// Optional linear base color RGBA override.
88 base_color_factor: Option<[f32; 4]>,
89 /// Optional metallic scalar override.
90 metallic_factor: Option<f32>,
91 /// Optional roughness scalar override.
92 roughness_factor: Option<f32>,
93 /// Optional clearcoat intensity override.
94 clearcoat_factor: Option<f32>,
95 /// Optional clearcoat roughness override.
96 clearcoat_roughness_factor: Option<f32>,
97 /// Optional microfiber sheen RGB tint override.
98 sheen_color_factor: Option<[f32; 3]>,
99 /// Optional microfiber sheen roughness override.
100 sheen_roughness_factor: Option<f32>,
101 /// Optional linear emissive RGB override.
102 emissive_factor: Option<[f32; 3]>,
103 /// Optional HDR emissive luminance strength override.
104 emissive_strength: Option<f32>,
105 /// Optional optical transmission factor override.
106 transmission_factor: Option<f32>,
107 /// Optional dielectric index of refraction override.
108 ior: Option<f32>,
109 },
110 /// Updates shape-key morph weights for a named scene-graph node in place.
111 MorphWeights {
112 /// Target scene-graph node name.
113 node_name: String,
114 /// Replacement per-shape-key weights.
115 weights: Vec<f32>,
116 },
117 /// Updates parameters on an existing point, spot, or area light by index.
118 LightUpdate {
119 /// Target light index.
120 light_index: usize,
121 /// Optional linear RGB emission color.
122 color: Option<[f32; 3]>,
123 /// Optional luminous intensity.
124 intensity: Option<f32>,
125 /// Optional world position.
126 position: Option<[f32; 3]>,
127 /// Optional world emitting direction.
128 direction: Option<[f32; 3]>,
129 },
130 /// Updates the primary viewport camera pose and vertical field of view.
131 CameraUpdate {
132 /// World-space camera position.
133 position: [f32; 3],
134 /// Horizontal yaw in radians.
135 yaw: f32,
136 /// Vertical pitch in radians.
137 pitch: f32,
138 /// Vertical field of view in degrees.
139 fov_deg: f32,
140 },
141 /// Toggles viewport visibility for a named Blender Collection.
142 CollectionVisibility {
143 /// Target collection name inside `SceneGraph3D::collections`.
144 collection_name: String,
145 /// Desired viewport visibility state.
146 visible: bool,
147 },
148 /// Updates IBL environment Y-rotation and global radiance intensity.
149 EnvironmentUpdate {
150 /// World environment rotation around Y axis in radians.
151 rotation_y_rad: f32,
152 /// Global IBL intensity multiplier.
153 intensity: f32,
154 },
155}