@bendyline/molen-client 0.0.12 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/aircraft.d.mts +16 -6
- package/dist/aircraft.mjs +627 -20
- package/dist/camera-track.d.mts +1 -1
- package/dist/glass.mjs +2 -1
- package/dist/index.d.mts +31 -3
- package/dist/index.mjs +578 -105
- package/dist/{input-BliZYUY1.mjs → input-CzlS1f2N.mjs} +5 -3
- package/dist/instance-batch-CO4YD6rd.d.mts +69 -0
- package/dist/instance-batch-Ds-oKQW4.mjs +222 -0
- package/dist/instancing.d.mts +2 -0
- package/dist/instancing.mjs +2 -0
- package/dist/navigation.d.mts +12 -3
- package/dist/navigation.mjs +25 -7
- package/dist/{renderer-DAk7C8jH.d.mts → renderer-4kSVioiH.d.mts} +95 -3
- package/dist/snow-cover-Bh0woabf.mjs +218 -0
- package/dist/snow-cover-tEG1uO98.d.mts +67 -0
- package/dist/snow.d.mts +2 -0
- package/dist/snow.mjs +2 -0
- package/dist/{vehicle-interior-CeyzF5El.mjs → vehicle-interior-CNLLi38s.mjs} +22 -1
- package/dist/vehicle-interior-XC2tAySI.d.mts +232 -0
- package/dist/vehicles.d.mts +43 -3
- package/dist/vehicles.mjs +595 -5
- package/dist/{webgpu-clouds-H03g7ID1.mjs → webgpu-clouds-DwSBoV8A.mjs} +15 -11
- package/dist/{webgpu-driver-BQnmPRqs.mjs → webgpu-driver-YWVTLOY7.mjs} +103 -4
- package/dist/webgpu-snow-cover-CiqYhvPq.mjs +55 -0
- package/package.json +11 -3
- package/dist/vehicle-interior-B8TpzTAx.d.mts +0 -56
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ probe — a pinned backend is what makes a captured frame reproducible.
|
|
|
67
67
|
| `./vite` | `molenScripts()` — a Vite plugin that type-strips `*.ts?raw` scene scripts so the browser never sees TypeScript |
|
|
68
68
|
| `./vehicles` | `createVehicleVisual`, `createParkedVehicleBatch`, `vehicleCameraPose` — car visuals and cockpit/chase views, the render half of `@bendyline/molen-kernel/vehicles` |
|
|
69
69
|
| `./glass` | `createGlassVisual` — retained laminate cracks, released sheets and bounded glass fragments |
|
|
70
|
-
| `./aircraft` | `createAircraftVisual`, `aircraftCameraPose` — animated airframe and
|
|
70
|
+
| `./aircraft` | `createAircraftVisual`, `aircraftCameraPose`, `PilotMotion` — animated airframe, instrumented cockpit and the pilot's body under g, the render half of `@bendyline/molen-kernel/aircraft` |
|
|
71
71
|
| `./instruments` | Named signal expressions and reusable wiring for calibrated dials, altimeters, attitude indicators, annunciators and seven-segment readouts; geometry stays in each model |
|
|
72
72
|
| `./navigation` | `OrbitController`, `FlyController`, `WalkController` + `WalkCollision`, `FollowController`, `NavigationInputSource` (keys, gamepad, pointer gestures) and `createTouchJoystick` — camera navigation for `createViewer` hosts |
|
|
73
73
|
| `./markers` | `createMarkerLayer`, `composeMarkerImage`, `projectWorldToScreen` — screen-sized, ground-snapped, pickable world markers such as photo pins |
|
package/dist/aircraft.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as VehicleCameraPose, c as
|
|
1
|
+
import { _ as AircraftObstacleScene, a as VehicleCameraPose, c as PilotMotion, d as PilotMotionOverrides, f as PilotMotionPose, g as pilotMotionTuning, h as pilotMotionSample, i as VehicleCameraOptions, l as PilotMotionAxisTuning, m as PilotMotionTuning, n as VehicleInteriorVisual, p as PilotMotionSample, s as DEFAULT_PILOT_MOTION, u as PilotMotionHeadTuning, v as aircraftObstacleContacts } from "./vehicle-interior-XC2tAySI.mjs";
|
|
2
2
|
import { n as ModelSignals, t as ModelSignalVisual } from "./model-signals-BpeXhsim.mjs";
|
|
3
3
|
import { AircraftInputData, AircraftSpec, AircraftStateData, LiveryData } from "@bendyline/molen-schema";
|
|
4
4
|
import * as THREE from "three";
|
|
@@ -89,12 +89,22 @@ interface AircraftVisual {
|
|
|
89
89
|
animation?: ModelSignalVisual;
|
|
90
90
|
update(state: AircraftStateData, input: AircraftInputData, altitude: number, signals?: ModelSignals, timeSeconds?: number): void;
|
|
91
91
|
/**
|
|
92
|
-
* The camera, in the coordinates of `object.position`. Cabin nodes (the spec's interior
|
|
93
|
-
* drawn only near it: from farther away a cockpit is a few pixels
|
|
94
|
-
* most of an aircraft's draw calls, and as many again in the
|
|
95
|
-
* views are always near enough
|
|
92
|
+
* The camera, in the coordinates of `object.position`. Cabin nodes (the spec's interior and the
|
|
93
|
+
* generated flight controls) are drawn only near it: from farther away a cockpit is a few pixels
|
|
94
|
+
* behind the canopy, yet it held most of an aircraft's draw calls, and as many again in the
|
|
95
|
+
* shadow pass. Boarded and chase views are always near enough, but within the cabin a part too
|
|
96
|
+
* small to see from the camera (CABIN_DETAIL_ANGLE) leaves the frame through its render layers,
|
|
97
|
+
* so a binding's or damage's own `visible` is never overridden.
|
|
96
98
|
*/
|
|
97
99
|
updateView(camera: readonly [number, number, number]): void;
|
|
100
|
+
/**
|
|
101
|
+
* The sun shadow map's texel size in meters (`Renderer.shadowTexelSize`) for the aircraft a view
|
|
102
|
+
* is built around: the one flown or followed. Hosts pass `undefined` for every other aircraft.
|
|
103
|
+
* While texels are too coarse to resolve the aircraft's own parts (over 0.15 m), it casts no
|
|
104
|
+
* sun shadow until they are 0.12 m or finer. Its shadows on itself and on the ground below go,
|
|
105
|
+
* and it still receives shadows from terrain, buildings and clouds.
|
|
106
|
+
*/
|
|
107
|
+
updateShadows(texel: number | undefined): void;
|
|
98
108
|
dispose(): void;
|
|
99
109
|
}
|
|
100
110
|
/**
|
|
@@ -112,4 +122,4 @@ declare function aircraftCameraPose(transform: {
|
|
|
112
122
|
rot: [number, number, number, number];
|
|
113
123
|
}, spec: AircraftSpec, options: VehicleCameraOptions): AircraftCameraPose;
|
|
114
124
|
//#endregion
|
|
115
|
-
export { AircraftCameraPose, AircraftCockpit, AircraftCockpitControl, AircraftCockpitPointer, AircraftCockpitPointerOptions, AircraftCockpitSession, AircraftControlAction, AircraftControlChange, AircraftControlNode, AircraftObstacleScene, AircraftPointerAxes, AircraftVisual, aircraftCameraPose, aircraftControlValue, aircraftObstacleContacts, applyAircraftControl, bindAircraftCockpitPointer, createAircraftCockpit, createAircraftVisual };
|
|
125
|
+
export { AircraftCameraPose, AircraftCockpit, AircraftCockpitControl, AircraftCockpitPointer, AircraftCockpitPointerOptions, AircraftCockpitSession, AircraftControlAction, AircraftControlChange, AircraftControlNode, AircraftObstacleScene, AircraftPointerAxes, AircraftVisual, DEFAULT_PILOT_MOTION, PilotMotion, PilotMotionAxisTuning, PilotMotionHeadTuning, PilotMotionOverrides, PilotMotionPose, PilotMotionSample, PilotMotionTuning, aircraftCameraPose, aircraftControlValue, aircraftObstacleContacts, applyAircraftControl, bindAircraftCockpitPointer, createAircraftCockpit, createAircraftVisual, pilotMotionSample, pilotMotionTuning };
|