@bendyline/molen-client 0.0.13 → 0.0.16
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 +10 -2
- package/dist/aircraft.mjs +570 -9
- package/dist/camera-track.d.mts +1 -1
- package/dist/index.d.mts +40 -3
- package/dist/index.mjs +850 -116
- package/dist/{input-BliZYUY1.mjs → input-CzlS1f2N.mjs} +5 -3
- package/dist/instance-batch-Ds-oKQW4.mjs +222 -0
- package/dist/instancing.d.mts +2 -0
- package/dist/instancing.mjs +3 -0
- package/dist/markers.d.mts +8 -0
- package/dist/markers.mjs +9 -2
- package/dist/navigation.d.mts +12 -3
- package/dist/navigation.mjs +25 -7
- package/dist/render-bounds-B4yQoiYR.d.mts +126 -0
- package/dist/render-bounds-uRp_yPp6.mjs +151 -0
- package/dist/{renderer-DAk7C8jH.d.mts → renderer-Scr1Mz0g.d.mts} +187 -7
- 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-DJ4cXTsQ.mjs → vehicle-interior-CNLLi38s.mjs} +9 -1
- package/dist/vehicle-interior-XC2tAySI.d.mts +232 -0
- package/dist/vehicles.d.mts +43 -3
- package/dist/vehicles.mjs +594 -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";
|
|
@@ -97,6 +97,14 @@ interface AircraftVisual {
|
|
|
97
97
|
* so a binding's or damage's own `visible` is never overridden.
|
|
98
98
|
*/
|
|
99
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;
|
|
100
108
|
dispose(): void;
|
|
101
109
|
}
|
|
102
110
|
/**
|
|
@@ -114,4 +122,4 @@ declare function aircraftCameraPose(transform: {
|
|
|
114
122
|
rot: [number, number, number, number];
|
|
115
123
|
}, spec: AircraftSpec, options: VehicleCameraOptions): AircraftCameraPose;
|
|
116
124
|
//#endregion
|
|
117
|
-
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 };
|