Initial Unity project import

This commit is contained in:
Netherwarlord
2026-11-20 10:52:58 -05:00
commit 136065772b
254 changed files with 54630 additions and 0 deletions
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cdbb4eacadce327e1876754e5e9fbda3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 93f9e05de7cf3bd26aff582720434779
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,253 @@
# Chauvet Professional Legend 230SR Beam: The Pressure Chamber fixture type
This is a reusable, DMX-ready fixture type for the venue's fixture library. Nothing has been placed in the venue. `Assets/PressureChamber/**` and the venue scene were not opened or modified while building it.
| Item | Path (relative to the project root) |
|---|---|
| Editable Blender source | `Assets/Fixtures/Chauvet_Legend_230SR_Beam/Models/Source~/Chauvet_Legend_230SR_Beam.blend` |
| Procedural build script (also embedded in the .blend as a Text block) | `.../Models/Source~/build_chauvet_legend_230sr_beam.py` |
| FBX for Unity | `.../Models/Chauvet_Legend_230SR_Beam.fbx` |
| Prefab | `.../Prefabs/Chauvet_Legend_230SR_Beam.prefab` |
| Art-Net package profiles | `.../Profiles/L230SR_FixtureType.asset` (+ ColorWheel, GoboWheel, Prism, Frost, Focus) |
| URP materials | `.../Materials/M_L230SR_*.mat` |
| Gobo textures (apertures + placeholders) | `.../Textures/Gobos/` |
| Isolated test scene | `.../Scenes/L230SR_FixtureTest.unity` |
| Editor tooling | `.../Editor/Legend230SRSetup.cs`, `.../Editor/Legend230SRVerify.cs` |
| End-to-end Art-Net test | `.../Tests/PlayMode/Legend230SRArtNetPlayModeTests.cs` |
| Validation evidence | `.../Documentation/Validation/`, `.../Documentation/Previews/` |
> **Why `Source~`?** Unity ignores folders whose name ends in `~`. If the `.blend` sat in a normal folder, Unity would try to import it by launching Blender, creating a second model asset that duplicates the FBX. Open the `.blend` directly in Blender, which is version 5.3 on this machine.
---
## 1. Sources
All of these were retrieved on 2026-11-19. Chauvet no longer hosts a product page for this discontinued fixture: `chauvetprofessional.com/product/legend-230sr-beam/` returns a 404. The manuals below are Chauvet-authored PDFs on dealer mirrors. SHA-256 hashes identify the exact files used.
| # | Source | Used for |
|---|---|---|
| S1 | **Legend 230SR Beam User Manual Rev. 5** (Chauvet, Apr 2015). <https://img1.wsimg.com/blobby/go/d8a74729-c8df-498d-9047-2d9a86b7edc4/downloads/Legend_230SR_Beam_UM_Rev5_WO1.pdf> (sha256 `68744ea3…a941b6583`); text mirror <https://shopwl.com/content/Legend%20230SR%20Beam%20-%20Manual.pdf> | Product dimensions drawing (4 views), product overview, DMX value tables for both modes, colour/gobo wheel diagrams, technical specifications, menu (Pan/Tilt Inverse) |
| S2 | **Legend 230SR Beam Quick Reference Guide Rev. 3** (Chauvet). <https://avmat.ch/upload/rama/Legend_230SR_Beam_QRG_Rev_3_ML_WO.pdf> (sha256 `85582118…`) | Cross-check: 15/18-channel personalities |
| S3 | **Legend 230SR Beam cut sheet** (Chauvet). <https://avmat.ch/upload/rama/Legend-230-SR-Beam-cutsheet.pdf> (sha256 `f8f1faa0…`) | 343.4 × 415 × 497.5 mm, 540°/270°, 2.25°, 96,000 lx @ 15 m; product photo |
| S4 | **Legend 230SR Beam User Manual Rev. 1** (Chauvet, 2012). <https://avmat.ch/upload/rama/Legend_230SR_Beam_UM_Rev1_WO.pdf> | Cross-check against Rev. 5 |
| S5 | Chauvet Professional press photo. <https://chauvetprofessional.com/wp-content/uploads/2014/01/legend230sr-P-1L.jpg> | Yoke V-opening, head/bezel and base appearance |
| S6 | PLSN road test. <https://plsn.com/articles/road-tests/chauvet-professional-legend-230sr-beam-1/> | Independent confirmation of 540°/270°, 16-bit pan/tilt, and that only the whole gobo wheel rotates, not individual gobos |
| S7 | B&H specification listing. <https://www.bhphotovideo.com/c/product/928058-REG/chauvet_legend230srbeam_legend_230sr_beam.html> | Strobe rate 0–20 Hz (the manual gives no Hz values) |
| S8 | Chauvet blog: "Steve Lieberman, ULTRA 2015, and the Legend 230SR Beam". <https://chauvetprofessional.com/steve-lieberman-ultra-2015-and-the-legend-230sr-beam/> | Context: the fixture appears in the Ultra 2015 rig |
The manufacturer PDFs and images are **not** copied into the project. Chauvet's manual restricts redistribution. Reference copies and the drawing-overlay comparison images are kept outside the project, in the Hermes scratch area.
## 2. Verified fixture facts
| Fact | Value | Source |
|---|---|---|
| Overall L × W × H | 343.4 × 415 × 497.5 mm (13.52 × 16.34 × 19.59 in). L = base depth, W = across the handles, H = head pointing straight up | S1 tech specs and drawing; S3 |
| Other printed drawing dimensions | Yoke width 366.8; head face 229; head body 221.4; head depth 205.9; head length 284.5; yoke arm depth 124; top of yoke arms 435.3; base 122; top of base/turntable 135.2; floor to head underside with head horizontal 271; overall height with head horizontal 476.2–476.6 mm | S1 "Product Dimensions" |
| Weight | 18.73 kg | S1, S3 |
| Pan / tilt | 540° / 270°, 16-bit (coarse + fine) | S1, S3, S6 |
| DMX modes | Mode 1 = 15 ch, Mode 2 = 18 ch | S1, S2 |
| Optics | 2.25° beam angle, 96,000 lx @ 15 m, Osram Sirius 230 W lamp | S1, S3 |
| Effects | 14 colours + open (split / continuous, rotation); 17 static gobos + open (wheel rotation, shake); rotating 8-facet prism with prism zoom; motorised focus; variable frost; mechanical dimmer; shutter/strobe | S1 |
| Visible parts | Front glass lens; quarter-turn cover fasteners; control panel on the base front; handles on both base sides; rubber feet; mounting base with omega-bracket points; power cable at the rear; ventilation on the base sides and head | S1 "Product Overview" and drawing |
The manual does **not** state the pan/tilt home angles, the direction of rotation for increasing DMX values, absolute wheel or strobe speeds for most ranges, the colour filter names or transmission, or the reset hold times. These values are treated as assumptions; see §6.
## 3. Model
### Hierarchy and pivots
In Blender units are metres, +Z is up, the fixture front (control panel) faces −Y, and +X is the fixture's right-hand side.
```
Base origin (0, 0, 0) floor-contact plane, centre of the base footprint
└─ Yoke origin (0, 0, 0.1352) PAN axis = local +Z through the base centre (yoke bottom = 135.2 mm)
└─ Head origin (0, 0, 0.3735) TILT axis = local +X through y = 0, z = 0.3735
└─ Lens origin (0, 0, 0.4855) centre of the front glass; optical axis = local +Z
```
- **Rest pose = DMX centre** (pan 50 %, tilt 50 %). The yoke arms sit on ±X. The head points straight up, so the beam leaves along +Z, away from the base.
- **Tilt-axis height.** 0.3735 m is derived from two printed values that agree: 497.5 − 124 (lens front to axis) and 271 + 205.9/2. The arm top, 435.3 mm, is the 62 mm arm radius above the axis. The head extends 124 mm in front of the tilt axis and 160.5 mm behind it, giving the 284.5 mm head length.
- All objects have identity rotation and unit scale. The pivots are real object origins; there are no offset empties.
- No lights, cameras or empties are in the file. The build validation records `lights_in_file: []`.
### In Unity
The model uses the same FBX recipe as the venue: export Z-up/Y-forward without baked space transform, and import with `bakeAxisConversion = true`. The mapping is Blender (x, y, z) → Unity (x, z, y), with no mirroring:
| | Unity local position | Rotation axis |
|---|---|---|
| Yoke | (0, 0.1352, 0) in Base | pan = local **Y** |
| Head | (0, 0.2383, 0) in Yoke | tilt = local **X** (component set to −X, see below) |
| Lens | (0, 0.112, 0) in Head | optical axis = local +Y |
The fixture front (control panel) faces **−Z** in Unity. The rear cable boot faces +Z.
`DmxFixtureComponent` turns 16-bit pan/tilt into `angle = (value/65535 − 0.5) × range`, applied as `baseRotation * AngleAxis(angle, axis)`. The prefab therefore uses:
- **Pan:** axis Y, 540°. DMX 0 % = −270°, 50 % = 0°, 100 % = +270°. Increasing pan turns the yoke **clockwise when seen from above**, for a floor-standing fixture.
- **Tilt:** axis −X, 270°. DMX 0 % = −135°, 50 % = straight up, 100 % = +135°. Increasing tilt tips the beam **toward the base front** (the control-panel side).
The real fixture's directions are not documented; it offers Pan Inverse and Tilt Inverse menu options. Use `panInvert`, `tiltInvert`, `panOffsetDeg` and `tiltOffsetDeg` on the component to match a physical rig or a console profile.
### Actual numbers
| | Value |
|---|---|
| Size without the cable boot | **0.4150 × 0.3434 × 0.4975 m** (W × L × H), matching 415 × 343.4 × 497.5 mm |
| Size including the 19 mm rear cable boot | 0.4150 × 0.3624 × 0.4975 m |
| Triangles | **5,498** in Blender (Base 1,628, Yoke 2,120, Head 1,496, Lens 254); 5,426 after Unity import |
| Materials | **4**: `M_L230SR_Housing_Black`, `M_L230SR_Trim_DarkMetal`, `M_L230SR_Display`, `M_L230SR_Lens` |
The lens material is neutral grey glass with zero emission; no light colour is baked into it. In Unity it is a copy of the package's DMX lens ShaderGraph material, so `_DmxColor` and `_DmxDimmer` drive it at runtime. The package's `GoboLensSurface_URP` is added as a second material slot to show the gobo on the lens face.
### Modelled details and deliberate simplifications
- **Modelled:** chamfered base with a raised turntable tier and ring; four rubber feet; a centre mounting plate; the front control panel with LCD, LEDs, four buttons and corner screws; brick-pattern vents on both base sides; arched side handles; the rear cable boot (the coiled cable is omitted); the yoke arms, whose round tops are concentric with the tilt axis, with raised cover plates and vent-slot rows; the yoke's V-opening and pan block with screw plates; the head body with a chamfered 229 mm face frame and corner brackets; the round bezel, lens lip and domed front lens; the rear tapered lamp housing with cooling fins; the louvred vent, label plate and screws on the head's −Y face; quarter-turn fasteners; and tilt hub covers.
- **No logos or trademark artwork** are modelled. The raised plate on each yoke arm is left blank.
- **Yoke V depth deviates from the drawing.** The drawing's V reaches 271 mm at the arms and 200 mm at the pan block. With this simplified box-like head, that V would intersect the head at some tilt angles. The build script therefore computes the head's swept envelope over ±135° tilt and lowers the V to that envelope minus 5 mm of clearance: 245.6 mm at the arms and 190.5 mm at the block. The result is collision-free across the full 270° tilt range. On the real fixture the head's corners are presumably shaped to clear the deeper V; those details are not in the documentation.
- The yoke arms' outer faces are flat; the drawing shows a slight outward curve of about 5 mm or less. Internal parts are not modelled.
- Values scaled from the raster drawing rather than printed: base housing width (~305.6 mm), lens glass Ø (~133 mm), bezel Ø (~178 mm), handle height and arch, and the position of panel, vents and screws. These are estimates within a few mm.
## 4. DMX profile (Art-Net DMX Lighting for Unity v0.5.0)
The package's `FixtureType` uses its GDTF-like **Channel Elements**. `L230SR_FixtureType.asset` contains both modes; the prefab defaults to **Mode 2 (18 ch)**, `mode` index 1.
| Ch (M1) | Ch (M2) | Function | Package mapping | Status |
|---|---|---|---|---|
| 1 / 2 | 1 / 2 | Pan / fine pan | Pan · Position · Coarse/Fine (16-bit) | **Native**, tested |
| 3 / 4 | 3 / 4 | Tilt / fine tilt | Tilt · Position · Coarse/Fine (16-bit) | **Native**, tested |
| 5 | 5 | Pan/tilt speed | NoFeature | **Not modelled.** The manual gives only "0–100 %" with no direction or deg/s, so it is left unmapped rather than guessed. The component's smoothing is used instead. |
| 6 | 6 / 7 | Dimmer (M2: 16-bit) | Dimmer · Value (Single, or Coarse/Fine) | **Native**, tested (8-bit and 16-bit) |
| 7 | 8 | Shutter | Strobe · Value with ranges: 0–7 NoFunction, 8–15 Open, 16–131 RegularStrobe 1→20 Hz, 132–167 PulseOpen, 168–203 PulseClose, 204–239 Pulse, 240–247 RandomStrobe, 248–255 Open | **Native gate behaviour; speeds approximated.** 20 Hz maximum is from S7. The minimum speed, pulse and random rates and the duty cycle are estimates. Real behaviour at 0–7 ("No function" in the manual) is unverified. |
| 8 | 9 | Colour wheel | ColorWheel · SelectMode + `L230SR_ColorWheel` | Slots 1–14 **native**. Colours are sampled from the manual's printed wheel diagram, not measured filter data. 61–127 index/split is approximated as continuous blends Open→C1→…→C14→Open; the package renders a split as one blended colour. CW 128–189 (fast→slow), stop 190–193 and CCW 194–255 (slow→fast) are native spin; speeds are estimates. |
| 9 | 10 | Gobo wheel | GoboWheel · SelectMode + `L230SR_GoboWheel` | Select 1–17 **native**, tested. Shake ranges 60–127 are native, with estimated speed and amplitude. **Wheel scroll (128–255) is not simulated** by the package runtime; those values show Open. Gobos 1–6 are plain apertures of increasing size, matching the wheel diagram; **gobos 7–17 are original placeholder patterns**, not the manufacturer's artwork. |
| 10 | 11 | Prism | Prism · SelectMode + `L230SR_Prism` (0–4 none, 5–255 8-facet) | **Native**, tested (8 facet lights) |
| 11 | 12 | Prism rotation | Prism · PositionOrRotation: 0–127 Indexed, 128–189 CW fast→slow, 190–193 stop, 194–255 CCW slow→fast | Native; speeds are package defaults |
| 12 | 13 | Prism zoom | NoFeature | **Not supported.** The package has no prism-spread channel. Mapping it to beam zoom would be wrong, since the Legend has a fixed 2.25° beam. |
| 13 | 14 | Focus | Focus · Value (+ default FocusProfile) | Native gobo-focus approximation; not optically calibrated |
| 14 | 15 | Frost | Frost · Value (+ default FrostProfile) | Native approximation; not calibrated |
| — | 16 / 17 | Pan/tilt macro / macro speed | NoFeature | **Not supported** (the macro movements are not documented) |
| 15 | 18 | Control | Control · Control: 140–149 and 200–209 = Reset; 130–139 LampOn; 230–239 LampOff; everything else NoFunction | Resets use the package's reset handling; real hold times are unknown. **The package ignores lamp on/off**, so the virtual lamp is always "on". Colour/gobo/frost resets and the blackout and speed settings are not simulated. |
Prism draw mode is `ProjectionAndShaderBeam`, so the prism produces visible beam fans and not only light projections.
Optics in the prefab: the spot light has a 2.25° outer and 1.2° inner angle, 40 m range and no shadows. The pseudo-beam cone is 20 m long, starting at a 0.06 m radius (lens) and widening at the 2.25° angle. Beam render mode is `PseudoBeamShader`. Intensity uses the package `GenericLightDriver` with `genericMaxIntensity` = 300; the package default of 10 is invisible beyond a few metres because URP lights fall off with 1/d². These are visual values, not photometric ones: 96,000 lx @ 15 m is not reproduced. Tune per venue.
## 5. Validation
| Test | How | Result |
|---|---|---|
| Blender build checks | `build_chauvet_legend_230sr_beam.py`, report `Documentation/blender_build_report.json` | Dimensions above; 4 materials; 0 lights; identity transforms. Pan 90° keeps the lens on the pan axis. Pan 90° + tilt 90° puts the lens at the analytic position (error < 1e-5 m). Tilt alone leaves the yoke untouched. **BVH sweep: no head/lens contact with yoke or base for tilt −135…+135° in 3° steps at pan 0/90/180/270.** |
| Visual comparison | Cycles renders (`Documentation/Previews/`; the bright lens there is a specular reflection of the preview backdrop, as the glass material has zero emission) plus matched-scale (2 px/mm) overlays of the four orthographic views on the manufacturer drawing (kept outside the project) | Silhouettes of base, handles, feet, yoke, arm tops, head and bezel line up with the drawing. The only visible deviation is the shallower yoke V described in §3. |
| FBX round-trip in Blender | `verify_fbx_roundtrip.py`, report `Documentation/blender_fbx_roundtrip_report.json` | Hierarchy, names, pivots (error 0), zero rotation and unit scale all survive. Only mesh objects are present. Articulation after re-import is correct. |
| Unity import + prefab | `Legend230SRVerify.RunBatch` (batch mode), report `Documentation/Validation/unity_import_report.json` | **23/23 pass.** Pivot positions, identity rotations, bounds 0.415 × 0.4975 × 0.3624 m, floor at y = 0, display at −Z and cable boot at +Z/−X (no mirroring), 4 URP materials remapped, Yoke→Head→Lens articulation, component wiring, spot light on the optical axis, no imported lights. |
| **End-to-end Art-Net** | PlayMode test (batch). Real ArtDMX packets (protocol 14, universe 0) are sent over UDP to `127.0.0.1:6454` → the package's `ArtNetReceiver` → `DmxRigController` → both prefab instances in the isolated test scene. Fixture A: Mode 2 at address 1. Fixture B: Mode 1 at address 21. Report and captures: `Documentation/Validation/playmode_*` | **Passed (4/4 states).** See the table below. |
**Play Mode Art-Net states.** Each state was re-sent at about 30 Hz until the motion smoothing settled, roughly 3–3.6 s per state. Every angle is measured against the formula in §3.
| State | DMX sent | Observed |
|---|---|---|
| 1 | A: pan 0xC000, tilt 0x4000, dimmer 0xFFFF, shutter 255, colour 6, gobo 14. B: pan 0x8000, tilt 0xFFFF, dimmer 0 | A yoke +135.0° / head −67.5°, **0.000° error**. A light I = 300, colour (0.851, 0.149, 0.110) = slot 1. Gobo 4 texture on the lens; gobo projected through the package focus cookie. B tilt +135.0° (0.000°), light I = 0 |
| 2 | A: pan 0, tilt 0xAAAA, colour 42, prism 128. B: pan 0xAAAA, tilt 0x3333, dimmer 255 | A −270° / +45°, B +90° / −81°, all 0.000° error. A colour (0, 0.49, 0.761) = slot 10. **8 prism facet lights + 8 prism pseudo-beam facets**; the main light hands off to the facets. B white, I = 300 |
| 3 | Both at DMX centre; A dimmer 0x8000 (16-bit), B 128 (8-bit); shutter 8 (open) | Both rest pose (0.000°). Light I = 150.0 / 150.6 out of 300 (8- and 16-bit dimmers agree) |
| 4 | Both tilt 0xC000 toward the front wall; A open white; B colour 38 + gobo 14 | +67.5° tilt (0.000°). A white, pseudo-beam active. B (0.871, 0.071, 0.478) = slot 9 with the gobo 4 lens texture |
Not tested:
- No physical Legend 230SR or lighting console was available, so rotation directions, speeds, colours and gobo artwork have not been compared against hardware.
- Pseudo-beam haze appearance has not been tuned.
- VRChat compatibility has not been evaluated. The package's runtime components are not VRChat Udon-compatible as-is.
## 6. Assumptions and open items
1. **Rest/home pose and rotation directions.** DMX 50 % is treated as the yoke aligned with the base (arms left/right of the panel, as drawn) and the head straight up. Directions are chosen as in §3. *Unverified against hardware.*
2. **Colour wheel RGB values** are printed-diagram colours. Slots 8 and 12–13 are pale and probably colour-correction filters (marketing mentions CTO), but the manual names no filters.
3. **Speeds** (colour, gobo and prism rotation; shake; strobe minimum; pulse; random) are visual estimates.
4. **Gobo artwork** for slots 7–17 is placeholder. Replace the PNGs in `Textures/Gobos/` (same filenames) with licensed artwork if exact patterns matter.
5. **Missing features to implement next, if needed:**
- Gobo-wheel scroll: a small runtime adapter that cycles the gobo slot.
- Prism zoom: an adapter driving the prism facet `spread`.
- Pan/tilt speed channel: map it once a console profile or GDTF file confirms its direction.
- Lamp on/off: gate the driver output.
- Pan/tilt macros.
6. The Mode 1 and Mode 2 tables disagree on 56–59 ("Open shaking" vs "Open"). Both are rendered as Open, which looks the same either way.
## 7. Project compatibility notes
- **Legacy Input vs the Input System. Decided: disable only the ArtNet Recorder; Active Input Handling stays *Input System Package (New)*.** The package's `ArtNet Recorder` (`ArtNetReceiverDmxRecorder.Update`) calls legacy `UnityEngine.Input.GetKeyDown` every frame, which throws `InvalidOperationException` in Play Mode under this project's input setting. In `ArtNet.prefab` the `ArtNet Recorder` GameObject holds only that recorder component. Setting that one object inactive therefore leaves `ArtNet Core` (`ArtNetReceiver` + `DmxRigController`), live fixture control, `ArtNet Timeline Playback` and `ArtNet Sender` enabled. The fixture test scene does exactly this. The venue scene has no Art-Net objects yet; when `ArtNet.prefab` is added there, apply the same override. DMX recording to AnimationClips is unavailable while the recorder is off.
- The package warns when a light driver sits on the light object rather than next to `DmxFixtureComponent`. The prefab keeps the driver on its root.
- **ProjectSettings.asset is rewritten by the Unity Test Framework** on each PlayMode run. Its timestamp changes, but the content was byte-identical between runs and `activeInputHandler` stayed `1`. There is no git history, so it cannot be byte-compared with the file as it was before this work. No project setting was changed intentionally.
- A freshly added `DmxFixtureComponent` defaults to `beamRenderMode = Normal` and `syncPseudoBeamToDmx = false`, which hides the pseudo-beam. The prefab sets `PseudoBeamShader` and enables sync. Prism auxiliary lights default to casting shadows; the prefab turns that off.
## 8. Live Art-Net test with ChamSys MagicQ (prepared, not yet run)
MagicQ is not installed yet; the plan is to install it on this PC. **No MagicQ connectivity has been verified.** The localhost tests in §5 use a synthetic sender and prove nothing about MagicQ.
### Receiver configuration (inspected)
| Setting | Value |
|---|---|
| Receiver | `ArtNet Core` → `ArtNetReceiver`: host `0.0.0.0` (all interfaces), UDP **6454**; edit-mode receive off. `DmxRigController` input mode LiveOnly |
| Interfaces on this PC | `lo` 127.0.0.1 (use this for MagicQ on the same PC). `wlp4s0` **10.21.0.205/21** on the shared "Student" Wi-Fi (DHCP; only the gateway is visible, so the network may isolate clients). `docker0` down. No Ethernet port |
| Art-Net universe | **0** (Net 0, Sub-Net 0, Universe 0 = port-address 0). The package uses the raw 15-bit port-address |
| Fixture A | `L230SR_A_Mode2_U0_Addr1`: **Mode 2 (18 ch), start address 1** (ch 1–18). MagicQ: universe 1, address 1 |
| Fixture B | `L230SR_B_Mode1_U0_Addr21`: **Mode 1 (15 ch), start address 21** (ch 21–35). MagicQ: universe 1, address 21 |
| Firewall | ufw service unit is active, but `/etc/ufw/ufw.conf` has `ENABLED=no` and loopback traffic is allowed in any case. The rule set can't be read without sudo |
### MagicQ settings for a same-PC test
1. **Setup → View DMX I/O, Universe 1:** Out Type **Art-Net**, Status **Enabled**, **Out Uni 0**. Third-party guides report that MagicQ sends universe 1 as Art-Net universe 1 by default; that would miss Unity's universe 0. The monitor reports the universe it actually receives.
2. **Setup → View Settings → Network:** select the network interface. To reach Unity on the same PC, set *Net host options* to **Normal + Loopback IP**, or unicast universe 1 to `127.0.0.1`. To avoid broadcasting Art-Net onto the shared Student Wi-Fi, prefer unicast with *Art-Net type* **V4 Unicast only**. Whether MagicQ accepts `127.0.0.1` as a unicast target still needs checking.
3. **Patch:** Chauvet Legend 230SR Beam **18-channel mode at 1-1** and **15-channel mode at 1-21**, matching fixtures A and B. Compare MagicQ's personality channel list with §4; the monitor records the raw channel values, so any mismatch shows up.
4. Make sure MagicQ's normal lighting output isn't inhibited (Pre-Vis panel modes inhibit it). Keep RDM and timecode output off for this test (see issue 1 below).
### Procedure (listen-only monitor; the Unity Editor must be closed)
```bash
M="Assets/Fixtures/Chauvet_Legend_230SR_Beam/Tests/MagicQ~/l230sr_live_monitor.sh" # from the project root
$M preflight # who owns UDP 6454, interfaces, project lock
# start MagicQ FIRST (see issue 2), then:
$M start 30 # Unity batch-mode Play Mode, test scene only, never sends Art-Net
$M status # live: sender, universe, rate, decoded channels vs fixture state
$M snap magicq_01_locate # repeat per look below
$M stop # summary JSON + test result
```
| Snapshot | MagicQ programmer (both heads selected) | Pass criteria (from the monitor) |
|---|---|---|
| `magicq_01_locate` | Locate | Sender is MagicQ; `OpDmx -> universe 0` at a steady rate; pan/tilt 0°; light white, intensity ≈ 300 |
| `magicq_02_pan` | Pan 75 % | Raw pan = MagicQ output; Yoke +135° (error < 0.1° after settling) |
| `magicq_03_tilt` | Tilt 25 % | Head −67.5° (error < 0.1°) |
| `magicq_04_dimmer50` | Dimmer 50 % | A (16-bit) and B (8-bit) intensity ≈ 150 |
| `magicq_05_strobe` | Shutter in strobe range (DMX 16–131) | Shutter range = RegularStrobe; 1 s intensity min ≈ 0 and max > 0 |
| `magicq_06_color1`, `magicq_07_color10` | Colour wheel slot 1, slot 10 | Colour range = slot; light RGB = slot RGB |
For every snapshot, `non_dmx_packets_reaching_rig` must be **0**; if not, issue 1 applies. Cross-check raw values against MagicQ's own output view (screenshot).
### Issues found while preparing (nothing changed for these)
1. **The package treats every Art-Net packet type as DMX.** `ArtNetReceiver` and `DmxRigController.OnArtNetData` never check the OpCode. Any packet of 18 bytes or more is copied into the universe numbered by its bytes 14–15. **Confirmed with the monitor self-test:** one ArtTodRequest (RDM discovery, OpCode 0x8000) was routed to universe 0. Both fixtures went dark and white, and the heads swung toward the 0 % position (25–103° off) while the controller's real DMX was unchanged. An ArtPollReply landed harmlessly in universe 6454. Art-Net RDM packets (ArtTodRequest, ArtRdm) and ArtTimeCode can hit universe 0. With MagicQ's default changes-only output (a static look is resent about once per second), the glitch can persist for up to a second. Mitigations, not applied:
- (a) in MagicQ, disable RDM and timecode output; *Art-Net type* "No poll or RDM" also stops polls;
- (b) a small project-side receiver that forwards only OpDmx (0x5000) into `DmxRigController.InjectUniverse`, replacing the package receiver in our scenes;
- (c) report upstream.
2. **Sharing UDP 6454 with MagicQ on one PC.** Unity's receiver socket allows port reuse (`SO_REUSEADDR`; tested: a second reuse-enabled bind succeeds, a plain bind fails with "Address already in use"). If MagicQ binds 6454 without reuse, whichever program starts second can't bind. If both use reuse, Linux (7.0 here) delivers **unicast** to 127.0.0.1 only to the **most recently bound** socket (tested: 5/5 to the second socket, 0/5 to the first), while broadcast reaches both. **Start MagicQ first, then Unity.** If MagicQ restarts after Unity, the monitor's `packets_received` stops rising. `preflight` shows the port owner.
3. **Shared Wi-Fi.** Art-Net to another computer over the "Student" Wi-Fi is unlikely to work (possible client isolation) and would broadcast onto a shared network. Use loopback on this PC, or a private network for a second machine.
Monitor self-test (synthetic localhost sender, **not MagicQ**): receiver bound to 6454; 240 OpDmx packets at 29.9 Hz were attributed to their sender. Decoded channels matched both patches. Pan/tilt error ≤ 0.007°; the strobe range was detected with a 1 s intensity range of 0–150.6; colour slots 1 and 9 matched. Files are `Logs/L230SR_live_*` (not in Assets).
## 9. Rebuilding
```bash
# 1. Model (Blender 5.3, headless): writes .blend, FBX and a JSON report
blender --background --factory-startup --python Models/Source~/build_chauvet_legend_230sr_beam.py -- \
--out-blend <dir>/Chauvet_Legend_230SR_Beam.blend --out-fbx <dir>/Chauvet_Legend_230SR_Beam.fbx --report <dir>/report.json
# 2. Unity assets (Editor closed), or in the Editor: Tools > Pressure Chamber > Fixtures > Legend 230SR Beam
Unity -batchmode -projectPath ~/The_Pressure_Chamber -executeMethod PressureChamber.Fixtures.Legend230SR.EditorTools.Legend230SRSetup.BuildAllBatch -logFile build.log
Unity -batchmode -projectPath ~/The_Pressure_Chamber -executeMethod PressureChamber.Fixtures.Legend230SR.EditorTools.Legend230SRVerify.RunBatch -logFile verify.log
# 3. End-to-end Art-Net test (UDP port 6454 must be free)
Unity -batchmode -projectPath ~/The_Pressure_Chamber -runTests -testPlatform PlayMode -testFilter PressureChamber.Fixtures.Legend230SR.Tests -testResults results.xml
```
The setup tool updates its own generated assets in place. It works in a temporary scene and never saves or modifies the scene you have open.
**Patching in a venue.** Drop the prefab in, then set `Universe`, `Start Address` and `Mode` on `DmxFixtureComponent`; Mode index 0 is 15 ch and index 1 is 18 ch. Each scene needs one `ArtNet.prefab`, subject to the input note in §7. For hung fixtures, rotate the prefab root; DMX motion is local to the Yoke and Head.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 702201fabb0f3c57285e460a626c4b37
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 402e20b060a6116f38ecef38f7e50438
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 814 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 1de9e4f94669272efb0db879797d9b61
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 78b7aedf8e31d5b84942a924fb6474a9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 3302fd43317be775ca38754c7e755846
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: cfd3699a2f1c2fb038f66c373f432bd3
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 46793d52d7f33b8bf91ed48f94744f45
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 402952dea001c4cc5855e9b50bf96ada
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 2bd82dc626c02b0cc8b592966021be0f
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 4beaca80fd26d285da7abfb7631f823d
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 9ec3c9ebf7a849d8fa492fb266177cfb
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e3bd6135b7b58012397c394a8535b535
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
{
"receiver_port": 6454,
"steps": [
{"state": "1_A_pan+135_tilt-67.5_full_colour1_gobo4__B_tilt+135_dimmer0", "ok": true, "detail": "1_A_pan+135_tilt-67.5_full_colour1_gobo4__B_tilt+135_dimmer0: ok=True settle=3.39s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=300, col=RGBA(0.851, 0.149, 0.110, 1.000), cookie=ArtNet Focus Cookie) B.light(I=0, col=RGBA(1.000, 1.000, 1.000, 1.000)) A_on=True B_off=True A_red=True A_cookie_present=True lens_gobo=L230SR_Gobo_04_Aperture_L"},
{"state": "2_A_pan-270_tilt+45_colour10_prism__B_pan+90_tilt-81_full_open", "ok": true, "detail": "2_A_pan-270_tilt+45_colour10_prism__B_pan+90_tilt-81_full_open: ok=True settle=3.49s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=0, col=RGBA(0.000, 0.490, 0.761, 1.000), cookie=none) B.light(I=300, col=RGBA(1.000, 1.000, 1.000, 1.000)) A_blue=True A_gobo_cleared=True B_on_white=True A_lit_lights_with_prism=8 A_prism_beam_facets=8 lens_gobo=UnityWhite"},
{"state": "3_both_dmx_centre_shutter_open_dimmer_half", "ok": true, "detail": "3_both_dmx_centre_shutter_open_dimmer_half: ok=True settle=3.62s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=150.002, col=RGBA(1.000, 1.000, 1.000, 1.000), cookie=none) B.light(I=150.588, col=RGBA(1.000, 1.000, 1.000, 1.000)) both_on_at_half=True A_I=150.002 B_I=150.588"},
{"state": "4_beam_look_both_tilt+67.5_towards_front_wall__A_open_white__B_colour9_gobo4", "ok": true, "detail": "4_beam_look_both_tilt+67.5_towards_front_wall__A_open_white__B_colour9_gobo4: ok=True settle=3.05s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=300, col=RGBA(1.000, 1.000, 1.000, 1.000), cookie=none) B.light(I=300, col=RGBA(0.871, 0.071, 0.478, 1.000)) A_white=True B_magenta=True A_pseudobeam_active=True lensB_gobo=L230SR_Gobo_04_Aperture_L"}
],
"all_ok": true
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bc62a93ed347f8cb1a040834cf238963
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: a96e6040bb45fe3cfa78d22848a45d57
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 29044d64f7e872ffb8c7bd11e55958ec
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: ccc81ba239ba629e89da3d32953ee11c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: a50cf67671589cbbb944cc500db6ef33
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 5e01a8a2e99cc9ddaa2a71ab3def77a7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<test-run id="2" testcasecount="1" result="Passed" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0" engine-version="3.5.0.0" clr-version="4.0.30319.42000" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.9438533">
<test-suite type="TestSuite" id="1011" name="The_Pressure_Chamber" fullname="The_Pressure_Chamber" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.943853" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties>
<property name="platform" value="PlayMode" />
</properties>
<test-suite type="Assembly" id="1003" name="PressureChamber.Fixtures.Legend230SR.PlayModeTests.dll" fullname="/home/christopher/The_Pressure_Chamber/Library/ScriptAssemblies/PressureChamber.Fixtures.Legend230SR.PlayModeTests.dll" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.936495" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties>
<property name="_PID" value="104391" />
<property name="_APPDOMAIN" value="Unity Child Domain" />
<property name="platform" value="PlayMode" />
<property name="EditorOnly" value="False" />
</properties>
<test-suite type="TestSuite" id="1004" name="PressureChamber" fullname="PressureChamber" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.935297" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties />
<test-suite type="TestSuite" id="1005" name="Fixtures" fullname="PressureChamber.Fixtures" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.927966" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties />
<test-suite type="TestSuite" id="1006" name="Legend230SR" fullname="PressureChamber.Fixtures.Legend230SR" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.923728" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties />
<test-suite type="TestSuite" id="1007" name="Tests" fullname="PressureChamber.Fixtures.Legend230SR.Tests" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.923172" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties />
<test-suite type="TestFixture" id="1001" name="Legend230SRArtNetPlayModeTests" fullname="PressureChamber.Fixtures.Legend230SR.Tests.Legend230SRArtNetPlayModeTests" classname="PressureChamber.Fixtures.Legend230SR.Tests.Legend230SRArtNetPlayModeTests" runstate="Runnable" testcasecount="1" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.920421" total="1" passed="1" failed="0" inconclusive="0" skipped="0" asserts="0">
<properties />
<test-case id="1002" name="ArtNet_Udp_Drives_Legend230SR_Fixtures" fullname="PressureChamber.Fixtures.Legend230SR.Tests.Legend230SRArtNetPlayModeTests.ArtNet_Udp_Drives_Legend230SR_Fixtures" methodname="ArtNet_Udp_Drives_Legend230SR_Fixtures" classname="PressureChamber.Fixtures.Legend230SR.Tests.Legend230SRArtNetPlayModeTests" runstate="Runnable" seed="406764292" result="Passed" start-time="2026-11-19 17:43:08Z" end-time="2026-11-19 17:43:23Z" duration="14.906028" asserts="0">
<properties>
<property name="_JOINTYPE" value="UnityCombinatorial" />
<property name="Timeout" value="120000" />
<property name="retryIteration" value="0" />
<property name="repeatIteration" value="0" />
</properties>
<output><![CDATA[[DMX Rig Controller] Discovered fixtures: 2 (registered: 2)
[L230SR-PLAYMODE] 1_A_pan+135_tilt-67.5_full_colour1_gobo4__B_tilt+135_dimmer0: ok=True settle=3.39s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=300, col=RGBA(0.851, 0.149, 0.110, 1.000), cookie=ArtNet Focus Cookie) B.light(I=0, col=RGBA(1.000, 1.000, 1.000, 1.000)) A_on=True B_off=True A_red=True A_cookie_present=True lens_gobo=L230SR_Gobo_04_Aperture_L
[L230SR-PLAYMODE] 2_A_pan-270_tilt+45_colour10_prism__B_pan+90_tilt-81_full_open: ok=True settle=3.49s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=0, col=RGBA(0.000, 0.490, 0.761, 1.000), cookie=none) B.light(I=300, col=RGBA(1.000, 1.000, 1.000, 1.000)) A_blue=True A_gobo_cleared=True B_on_white=True A_lit_lights_with_prism=8 A_prism_beam_facets=8 lens_gobo=UnityWhite
[L230SR-PLAYMODE] 3_both_dmx_centre_shutter_open_dimmer_half: ok=True settle=3.62s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=150.002, col=RGBA(1.000, 1.000, 1.000, 1.000), cookie=none) B.light(I=150.588, col=RGBA(1.000, 1.000, 1.000, 1.000)) both_on_at_half=True A_I=150.002 B_I=150.588
[L230SR-PLAYMODE] 4_beam_look_both_tilt+67.5_towards_front_wall__A_open_white__B_colour9_gobo4: ok=True settle=3.05s errA(yoke,head)=(0.000,0.000)deg errB=(0.000,0.000)deg A.light(I=300, col=RGBA(1.000, 1.000, 1.000, 1.000), cookie=none) B.light(I=300, col=RGBA(0.871, 0.071, 0.478, 1.000)) A_white=True B_magenta=True A_pseudobeam_active=True lensB_gobo=L230SR_Gobo_04_Aperture_L
<b><color=#2EA3FF>MCP-FOR-UNITY</color></b>: [TestRunnerNoThrottle] Restored Interaction Mode after test run.
Saving results to: /home/christopher/.config/unity3d/DefaultCompany/The_Pressure_Chamber/TestResults.xml
]]></output>
</test-case>
</test-suite>
</test-suite>
</test-suite>
</test-suite>
</test-suite>
</test-suite>
</test-suite>
</test-run>
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 044c00007ed2beb328adeec3aea3aa9f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,30 @@
{
"generated": "2026-11-19T12:42:41",
"unity": "6000.3.28f1",
"checks": [
{"name": "importer: bakeAxisConversion + file scale + no lights/cameras", "ok": true, "detail": "bake=True useFileScale=True globalScale=1 fileScale=1"},
{"name": "hierarchy Base>Yoke>Head>Lens", "ok": true, "detail": "root=Chauvet_Legend_230SR_Beam base.parent=Chauvet_Legend_230SR_Beam"},
{"name": "Yoke local position = pan bearing (0, 0.1352, 0)", "ok": true, "detail": "(0.0000, 0.1352, 0.0000)"},
{"name": "Head local position = tilt axis offset (0, 0.2383, 0)", "ok": true, "detail": "(0.0000, 0.2383, 0.0000)"},
{"name": "Lens local position (0, 0.112, 0)", "ok": true, "detail": "(0.0000, 0.1120, 0.0000)"},
{"name": "tilt axis world height 0.3735 m", "ok": true, "detail": "(0.0000, 0.3735, 0.0000)"},
{"name": "all pivots: identity local rotation and unit scale", "ok": true, "detail": "Base rot=(0.0000, 0.0000, 0.0000) scl=(1.0000, 1.0000, 1.0000); Yoke rot=(0.0000, 0.0000, 0.0000) scl=(1.0000, 1.0000, 1.0000); Head rot=(0.0000, 0.0000, 0.0000) scl=(1.0000, 1.0000, 1.0000); Lens rot=(0.0000, 0.0000, 0.0000) scl=(1.0000, 1.0000, 1.0000)"},
{"name": "bounds W x H (415 x 497.5 mm, handles / head up)", "ok": true, "detail": "size=(0.4150, 0.4975, 0.3624)"},
{"name": "bounds depth incl. 19 mm rear cable boot (343.4 + 19 mm)", "ok": true, "detail": "size.z=0.3624"},
{"name": "min Y = 0 (base sits on the floor)", "ok": true, "detail": "min=(-0.2075, 0.0000, -0.1735)"},
{"name": "control-panel display faces -Z (front)", "ok": true, "detail": "display centroid=(-0.0280, 0.0680, -0.1714)"},
{"name": "cable boot at rear (+Z) on the fixture's left (-X): not mirrored", "ok": true, "detail": "boot centroid=(-0.1000, 0.0557, 0.1890)"},
{"name": "triangle count (imported)", "ok": true, "detail": "5426"},
{"name": "materials remapped to project URP materials (4)", "ok": true, "detail": "M_L230SR_Display, M_L230SR_Housing_Black, M_L230SR_Lens, M_L230SR_Trim_DarkMetal"},
{"name": "pan 90 then tilt 90: Lens carried by Yoke and Head", "ok": true, "detail": "lens=(-0.1120, 0.3735, 0.0000) expected=(-0.1120, 0.3735, 0.0000) axis=(-1.0000, 0.0000, 0.0000)"},
{"name": "prefab exists", "ok": true, "detail": "Assets/Fixtures/Chauvet_Legend_230SR_Beam/Prefabs/Chauvet_Legend_230SR_Beam.prefab"},
{"name": "DmxFixtureComponent on prefab root", "ok": true, "detail": ""},
{"name": "pan transform = Yoke, tilt transform = Head", "ok": true, "detail": "pan=Yoke tilt=Head"},
{"name": "axes: pan Y / tilt -X, ranges 540 / 270", "ok": true, "detail": "panAxis=Y tiltAxis=Minus X"},
{"name": "fixture type + lens renderer + light + beam wired", "ok": true, "detail": "fixture=L230SR_FixtureType lens=Lens light=Spot Light beam=PseudoBeam"},
{"name": "fixture type modes 15ch + 18ch", "ok": true, "detail": "Mode 1 (15ch):15, Mode 2 (18ch):18"},
{"name": "spot light aligned with the optical axis (head +Y)", "ok": true, "detail": "fwd=(0.0000, 1.0000, 0.0000)"},
{"name": "no Light inside the imported model (Blender lights not used)", "ok": true, "detail": "only BeamOrigin/Spot Light added by the prefab"}
],
"all_ok": true
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9e0ce941111e8aa71891016b29de3115
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,181 @@
{
"bbox_min": [
-0.20749999582767487,
-0.17345000803470612,
0.0
],
"bbox_max": [
0.20749999582767487,
0.18895000219345093,
0.4975000023841858
],
"size_xyz_m": [
0.41499999165534973,
0.36239999532699585,
0.4975000023841858
],
"base_y_extent_without_cable_boot_m": [
-0.17345000803470612,
0.1699499934911728
],
"size_xyz_without_cable_boot_m": [
0.41499999165534973,
0.3434000015258789,
0.4975000023841858
],
"triangles": {
"Base": 1628,
"Yoke": 2120,
"Head": 1496,
"Lens": 254
},
"triangles_total": 5498,
"materials": [
"M_L230SR_Display",
"M_L230SR_Housing_Black",
"M_L230SR_Lens",
"M_L230SR_Trim_DarkMetal"
],
"material_count": 4,
"material_slots": {
"Base": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal",
"M_L230SR_Display"
],
"Yoke": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal"
],
"Head": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal"
],
"Lens": [
"M_L230SR_Lens"
]
},
"hierarchy": {
"Base": null,
"Yoke": "Base",
"Head": "Yoke",
"Lens": "Head"
},
"origins_world": {
"Base": [
0.0,
0.0,
0.0
],
"Yoke": [
0.0,
0.0,
0.13519999384880066
],
"Head": [
0.0,
0.0,
0.3734999895095825
],
"Lens": [
0.0,
0.0,
0.4855000078678131
]
},
"local_rot_scale_identity": {
"Base": true,
"Yoke": true,
"Head": true,
"Lens": true
},
"lights_in_file": [],
"yoke_web": {
"block_top": 0.19052714993290065,
"v_top_at_arm": 0.24555235504397582,
"drawn_v_top_at_arm": 0.271,
"drawn_block_top": 0.2
},
"articulation_tests": [
{
"name": "pan +90 only: lens stays on the pan axis, head origin stays on pan axis",
"lens_pos": [
0.0,
0.0,
0.4855000078678131
],
"head_pos": [
0.0,
0.0,
0.3734999895095825
],
"ok": true
},
{
"name": "pan +90 then tilt +90: lens carried by yoke and head",
"lens_pos": [
0.11200001835823059,
4.895676308791508e-09,
0.3734999895095825
],
"expected": [
0.1120000034570694,
-8.455764977099989e-09,
0.3734999895095825
],
"lens_axis": [
1.0,
4.371138828673793e-08,
-4.371138828673793e-08
],
"expected_axis": [
1.0,
-7.549790126404332e-08,
7.549790126404332e-08
],
"ok": true
},
{
"name": "tilt -135 alone: yoke and base unaffected",
"yoke_rot": [
0.0,
-0.0,
0.0
],
"lens_pos": [
0.0,
0.07919596880674362,
0.2943040132522583
],
"ok": true
},
{
"name": "no head/lens intersection with yoke or base over tilt -135..+135 (3 deg steps) at pan 0/90/180/270",
"collisions": [],
"ok": true
}
],
"all_tests_ok": true,
"dimensions_source": {
"overall_height_head_up": 0.4975,
"overall_width_handles": 0.415,
"overall_length": 0.3434,
"yoke_width": 0.3668,
"head_face_width": 0.229,
"head_body_width": 0.2214,
"head_depth": 0.2059,
"head_length": 0.2845,
"yoke_arm_depth": 0.124,
"yoke_top": 0.4353,
"base_height": 0.122,
"yoke_bottom": 0.1352,
"head_underside_horizontal": 0.271,
"tilt_axis_z": 0.3735,
"head_front_from_axis": 0.124,
"base_width": 0.3056,
"lens_glass_diameter": 0.133,
"bezel_outer_diameter": 0.178
},
"fbx": "/home/christopher/.hermes/cache/scratch/legend230/out/Chauvet_Legend_230SR_Beam.fbx",
"blend": "/home/christopher/.hermes/cache/scratch/legend230/out/Chauvet_Legend_230SR_Beam.blend"
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2868226343cd0c4858d73e9df16910fe
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,127 @@
{
"objects": {
"Base": {
"type": "MESH",
"parent": null,
"world_origin": [
0.0,
0.0,
0.0
],
"world_rot_deg": [
0.0,
-0.0,
0.0
],
"world_scale": [
1.0,
1.0,
1.0
],
"origin_error_m": 0.0,
"ok": true,
"materials": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal",
"M_L230SR_Display"
]
},
"Yoke": {
"type": "MESH",
"parent": "Base",
"world_origin": [
0.0,
0.0,
0.13519999384880066
],
"world_rot_deg": [
0.0,
-0.0,
0.0
],
"world_scale": [
1.0,
1.0,
1.0
],
"origin_error_m": 0.0,
"ok": true,
"materials": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal"
]
},
"Head": {
"type": "MESH",
"parent": "Yoke",
"world_origin": [
0.0,
0.0,
0.3734999895095825
],
"world_rot_deg": [
0.0,
-0.0,
0.0
],
"world_scale": [
1.0,
1.0,
1.0
],
"origin_error_m": 0.0,
"ok": true,
"materials": [
"M_L230SR_Housing_Black",
"M_L230SR_Trim_DarkMetal"
]
},
"Lens": {
"type": "MESH",
"parent": "Head",
"world_origin": [
0.0,
0.0,
0.4855000078678131
],
"world_rot_deg": [
0.0,
-0.0,
0.0
],
"world_scale": [
1.0,
1.0,
1.0
],
"origin_error_m": 0.0,
"ok": true,
"materials": [
"M_L230SR_Lens"
]
}
},
"ok": true,
"bbox_size_m": [
0.41499999165534973,
0.36240001022815704,
0.4975000023841858
],
"bbox_min": [
-0.20749999582767487,
-0.17345000803470612,
0.0
],
"bbox_max": [
0.20749999582767487,
0.18895000219345093,
0.4975000023841858
],
"non_mesh_objects": [],
"lens_after_pan90_tilt90": [
0.11200001835823059,
4.895676308791508e-09,
0.3734999895095825
],
"lens_after_ok": true
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: beb053dc50f469f47a81f5d8d76dd0e6
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 30963e0e210cd09c0b463e67b476b22f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,681 @@
// Chauvet Professional Legend 230SR Beam - generated-asset builder for The Pressure Chamber.
// Menu: Tools > Pressure Chamber > Fixtures > Legend 230SR Beam > Rebuild Generated Assets
// Batch: Unity -batchmode -projectPath <proj> -executeMethod PressureChamber.Fixtures.Legend230SR.EditorTools.Legend230SRSetup.BuildAllBatch -quit
//
// Everything this script writes lives under Assets/Fixtures/Chauvet_Legend_230SR_Beam/.
// It never opens, edits or saves the venue scene.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ArtNet.Runtime;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
namespace PressureChamber.Fixtures.Legend230SR.EditorTools
{
public static class Legend230SRSetup
{
public const string Root = "Assets/Fixtures/Chauvet_Legend_230SR_Beam";
public const string FbxPath = Root + "/Models/Chauvet_Legend_230SR_Beam.fbx";
public const string PrefabPath = Root + "/Prefabs/Chauvet_Legend_230SR_Beam.prefab";
public const string ScenePath = Root + "/Scenes/L230SR_FixtureTest.unity";
public const string FixtureTypePath = Root + "/Profiles/L230SR_FixtureType.asset";
const string ColorWheelPath = Root + "/Profiles/L230SR_ColorWheel.asset";
const string GoboWheelPath = Root + "/Profiles/L230SR_GoboWheel.asset";
const string PrismPath = Root + "/Profiles/L230SR_Prism.asset";
const string FrostPath = Root + "/Profiles/L230SR_Frost.asset";
const string FocusPath = Root + "/Profiles/L230SR_Focus.asset";
const string Pkg = "Packages/jp.oshino.art-net-dmx-lighting-for-unity";
const string PkgLensMat = Pkg + "/Runtime/LightAsset/Lens Shader/MovingLight_SG_LensFakeDepth_URP.mat";
const string PkgGoboLensMat = Pkg + "/Runtime/ArtNet/Runtime/Resources/ArtNet/GoboLensSurface_URP.mat";
const string PkgE3Prefab = Pkg + "/Runtime/LightAsset/yamakara Light_やまかライト/Prefab/URP/MovingLight_withGobo(E3 Spot)_URP.prefab";
const string PkgArtNetPrefab = Pkg + "/Runtime/ArtNet/Prefabs/ArtNet.prefab";
// Unity-side pivots (metres) after the Z-up FBX + bakeAxisConversion import: Blender (x,y,z) -> Unity (x,z,y)
public const float YokeY = 0.1352f, TiltY = 0.3735f, LensFromTilt = 0.112f, BeamOriginFromTilt = 0.125f;
static readonly List<string> Warnings = new();
[MenuItem("Tools/Pressure Chamber/Fixtures/Legend 230SR Beam/Rebuild Generated Assets")]
public static void BuildAll()
{
Warnings.Clear();
var mats = BuildMaterials();
ConfigureModelImporter(mats);
var gobos = BuildGoboTextures();
var color = BuildColorWheel();
var gobo = BuildGoboWheel(gobos);
var prism = BuildPrism();
var frost = LoadOrCreate<FrostProfile>(FrostPath);
var focus = LoadOrCreate<FocusProfile>(FocusPath);
var ft = BuildFixtureType(color, gobo, prism, frost, focus);
AssetDatabase.SaveAssets();
Debug.Log("[L230SR] step: profiles saved");
// Work in temporary additive scenes so the user's open scene (e.g. the venue) is never modified.
var previous = SceneManager.GetActiveScene();
var temp = OpenTempScene(out bool additive);
Debug.Log($"[L230SR] step: temp scene open (additive={additive})");
try { BuildPrefab(); }
finally { CloseTempScene(temp, previous, additive); }
Debug.Log("[L230SR] step: prefab saved");
BuildTestScene();
Debug.Log("[L230SR] step: test scene saved");
AssetDatabase.SaveAssets();
foreach (var w in Warnings) Debug.LogWarning("[L230SR] " + w);
Debug.Log("[L230SR] Build complete. Warnings: " + Warnings.Count);
}
public static void BuildAllBatch()
{
try { BuildAll(); EditorApplication.Exit(Warnings.Count == 0 ? 0 : 2); }
catch (Exception e) { Debug.LogException(e); EditorApplication.Exit(1); }
}
// ------------------------------------------------------------------ materials
static Dictionary<string, Material> BuildMaterials()
{
var lit = Shader.Find("Universal Render Pipeline/Lit");
if (lit == null) throw new Exception("URP Lit shader not found - is URP the active pipeline?");
var m = new Dictionary<string, Material>
{
["M_L230SR_Housing_Black"] = LitMat("M_L230SR_Housing_Black", lit, new Color(0.035f, 0.035f, 0.038f), 0f, 0.32f),
["M_L230SR_Trim_DarkMetal"] = LitMat("M_L230SR_Trim_DarkMetal", lit, new Color(0.085f, 0.087f, 0.095f), 0.6f, 0.55f),
["M_L230SR_Display"] = LitMat("M_L230SR_Display", lit, new Color(0.02f, 0.04f, 0.10f), 0f, 0.8f),
};
var disp = m["M_L230SR_Display"];
disp.EnableKeyword("_EMISSION");
disp.SetColor("_EmissionColor", new Color(0.05f, 0.14f, 0.45f) * 1.2f);
disp.globalIlluminationFlags = MaterialGlobalIlluminationFlags.None;
EditorUtility.SetDirty(disp);
// Lens: copy of the package's DMX lens ShaderGraph material so _DmxColor/_DmxDimmer are driven at runtime.
string lensPath = Root + "/Materials/M_L230SR_Lens.mat";
var lens = AssetDatabase.LoadAssetAtPath<Material>(lensPath);
var src = AssetDatabase.LoadAssetAtPath<Material>(PkgLensMat);
if (lens == null)
{
if (src != null) { lens = new Material(src) { name = "M_L230SR_Lens" }; }
else { Warnings.Add("Package lens material not found; lens falls back to URP Lit (no DMX lens colour)."); lens = new Material(lit) { name = "M_L230SR_Lens" }; }
AssetDatabase.CreateAsset(lens, lensPath);
}
m["M_L230SR_Lens"] = lens;
AssetDatabase.SaveAssets();
return m;
}
static Material LitMat(string name, Shader lit, Color c, float metallic, float smooth)
{
string path = Root + "/Materials/" + name + ".mat";
var mat = AssetDatabase.LoadAssetAtPath<Material>(path);
if (mat == null) { mat = new Material(lit) { name = name }; AssetDatabase.CreateAsset(mat, path); }
mat.shader = lit;
mat.SetColor("_BaseColor", c);
mat.SetFloat("_Metallic", metallic);
mat.SetFloat("_Smoothness", smooth);
mat.enableInstancing = true;
EditorUtility.SetDirty(mat);
return mat;
}
// ------------------------------------------------------------------ model import
static void ConfigureModelImporter(Dictionary<string, Material> mats)
{
var mi = AssetImporter.GetAtPath(FbxPath) as ModelImporter;
if (mi == null) throw new Exception("FBX not found: " + FbxPath);
mi.globalScale = 1f;
mi.useFileScale = true;
mi.bakeAxisConversion = true; // Z-up file -> Y-up Unity baked into meshes; pivots keep identity rotation
mi.preserveHierarchy = true; // keep 'Base' as a real child (no root collapse/rename)
mi.importCameras = false;
mi.importLights = false;
mi.importVisibility = false;
mi.importBlendShapes = false;
mi.importAnimation = false;
mi.animationType = ModelImporterAnimationType.None;
mi.isReadable = false;
mi.meshCompression = ModelImporterMeshCompression.Off;
mi.importNormals = ModelImporterNormals.Import;
mi.importTangents = ModelImporterTangents.CalculateMikk;
mi.addCollider = false;
mi.materialImportMode = ModelImporterMaterialImportMode.ImportStandard;
mi.materialLocation = ModelImporterMaterialLocation.InPrefab;
foreach (var kv in mats)
mi.AddRemap(new AssetImporter.SourceAssetIdentifier(typeof(Material), kv.Key), kv.Value);
mi.SaveAndReimport();
}
// ------------------------------------------------------------------ gobo placeholders
// Slots 1-6 are plain circular apertures of increasing size (beam reducers, as drawn on the wheel diagram).
// Slots 7-17 are ORIGINAL generic placeholder patterns - not reproductions of the manufacturer's gobo artwork.
static readonly string[] GoboNames =
{
"01_Aperture_XS", "02_Aperture_S", "03_Aperture_M", "04_Aperture_L", "05_Aperture_XL", "06_Aperture_XXL",
"07_Placeholder_Spokes8", "08_Placeholder_Fan4", "09_Placeholder_Star12", "10_Placeholder_Triangle",
"11_Placeholder_Splash", "12_Placeholder_Cross4", "13_Placeholder_DotGrid", "14_Placeholder_Breakup",
"15_Placeholder_DotRing", "16_Placeholder_Sunburst", "17_Placeholder_Bar"
};
static Texture2D[] BuildGoboTextures()
{
var result = new Texture2D[GoboNames.Length];
for (int i = 0; i < GoboNames.Length; i++)
{
string path = $"{Root}/Textures/Gobos/L230SR_Gobo_{GoboNames[i]}.png";
if (!File.Exists(path))
{
var tex = new Texture2D(256, 256, TextureFormat.RGBA32, false);
var px = new Color32[256 * 256];
for (int y = 0; y < 256; y++)
for (int x = 0; x < 256; x++)
{
float u = (x + 0.5f) / 128f - 1f, v = (y + 0.5f) / 128f - 1f;
byte w = (byte)(GoboMask(i + 1, u, v) ? 255 : 0);
px[y * 256 + x] = new Color32(w, w, w, 255);
}
tex.SetPixels32(px);
File.WriteAllBytes(path, tex.EncodeToPNG());
UnityEngine.Object.DestroyImmediate(tex);
AssetDatabase.ImportAsset(path);
}
var ti = (TextureImporter)AssetImporter.GetAtPath(path);
ti.textureType = TextureImporterType.Default;
ti.sRGBTexture = true;
ti.wrapMode = TextureWrapMode.Clamp;
ti.mipmapEnabled = true;
ti.alphaSource = TextureImporterAlphaSource.FromGrayScale;
ti.maxTextureSize = 256;
ti.SaveAndReimport();
result[i] = AssetDatabase.LoadAssetAtPath<Texture2D>(path);
}
return result;
}
static bool GoboMask(int n, float u, float v)
{
float r = Mathf.Sqrt(u * u + v * v), a = Mathf.Atan2(v, u);
if (r > 0.94f) return false; // gobo carrier edge
switch (n)
{
case 1: return r < 0.14f; case 2: return r < 0.22f; case 3: return r < 0.32f;
case 4: return r < 0.44f; case 5: return r < 0.58f; case 6: return r < 0.74f;
case 7: return r < 0.8f && Mathf.Abs(Mathf.Sin(a * 4f)) < 0.22f;
case 8: return r < 0.8f && r > 0.08f && Mathf.Repeat(a + 0.3f, Mathf.PI / 2f) < 0.6f;
case 9: return r < 0.25f + 0.55f * Mathf.Pow(Mathf.Abs(Mathf.Cos(a * 6f)), 6f);
case 10: return v > -0.45f && v < 0.55f - 1.6f * Mathf.Abs(u);
case 11: return r < 0.35f + 0.25f * Mathf.Sin(a * 7f + 1.3f) * Mathf.Sin(a * 3f);
case 12: return (Mathf.Abs(u) < 0.08f || Mathf.Abs(v) < 0.08f) && r < 0.8f || r < 0.18f;
case 13:
{
float fx = Frac(u * 3.5f + 0.5f) - 0.5f, fy = Frac(v * 3.5f + 0.5f) - 0.5f;
return r < 0.8f && fx * fx + fy * fy < 0.06f;
}
case 14: return r < 0.82f && Mathf.PerlinNoise(u * 4f + 11.3f, v * 4f + 7.1f) > 0.55f;
case 15: return Mathf.Abs(r - 0.55f) < 0.13f && Mathf.Repeat(a, Mathf.PI / 6f) < 0.32f || r < 0.16f;
case 16: return r < 0.82f && (Mathf.Abs(Mathf.Sin(a * 9f)) < 0.18f || r < 0.12f);
case 17: return Mathf.Abs(u) < 0.11f && Mathf.Abs(v) < 0.75f;
}
return true;
}
static float Frac(float x) => x - Mathf.Floor(x);
// ------------------------------------------------------------------ DMX profiles
// Colours: sampled from the colour-wheel diagram in the User Manual Rev. 5 (printed swatches, NOT measured
// filter transmission). Neutral transmission is unknown and left at 1.
static readonly Color[] WheelColors =
{
new(0.851f, 0.149f, 0.110f), new(0.910f, 0.471f, 0.102f), new(0.231f, 0.702f, 0.761f),
new(0.000f, 0.569f, 0.251f), new(0.729f, 0.859f, 0.490f), new(0.561f, 0.522f, 0.722f),
new(0.922f, 0.471f, 0.651f), new(1.000f, 0.988f, 0.788f), new(0.871f, 0.071f, 0.478f),
new(0.000f, 0.490f, 0.761f), new(1.000f, 0.980f, 0.451f), new(1.000f, 0.980f, 0.620f),
new(0.851f, 0.929f, 0.878f), new(0.322f, 0.102f, 0.451f)
};
static ColorWheelProfile BuildColorWheel()
{
var p = LoadOrCreate<ColorWheelProfile>(ColorWheelPath);
p.use16BitRanges = false;
p.ranges = new List<ColorWheelRange>
{
new() { name = "Open", dmxMin = 0, dmxMax = 4, type = ColorWheelRangeType.Open, colorA = Color.white, colorB = Color.white }
};
for (int i = 0; i < 14; i++)
p.ranges.Add(new ColorWheelRange { name = $"Color {i + 1}", dmxMin = 5 + 4 * i, dmxMax = 8 + 4 * i, type = ColorWheelRangeType.Slot, colorA = WheelColors[i], colorB = WheelColors[i] });
// 061-127 "Index/split color": approximated as continuous travel Open->C1->...->C14->Open (single blended colour).
var seq = new List<Color> { Color.white };
seq.AddRange(WheelColors);
seq.Add(Color.white);
int lo = 61, span = 127 - 61 + 1, steps = seq.Count - 1;
for (int s = 0; s < steps; s++)
{
int a = lo + s * span / steps, b = lo + (s + 1) * span / steps - 1;
p.ranges.Add(new ColorWheelRange { name = $"Index/split {s}-{s + 1} (approx.)", dmxMin = a, dmxMax = b, type = ColorWheelRangeType.Continuous, colorA = seq[s], colorB = seq[s + 1], includeInSpin = false });
}
// Rotation speeds are not published by the manufacturer: visual estimates.
p.ranges.Add(new ColorWheelRange { name = "CW rotation fast->slow (speed est.)", dmxMin = 128, dmxMax = 189, type = ColorWheelRangeType.SpinCW, cyclesPerSecondAtMin = 1.5f, cyclesPerSecondAtMax = 0.08f, includeInSpin = false });
p.ranges.Add(new ColorWheelRange { name = "Stop", dmxMin = 190, dmxMax = 193, type = ColorWheelRangeType.Stop, includeInSpin = false });
p.ranges.Add(new ColorWheelRange { name = "CCW rotation slow->fast (speed est.)", dmxMin = 194, dmxMax = 255, type = ColorWheelRangeType.SpinCCW, cyclesPerSecondAtMin = 0.08f, cyclesPerSecondAtMax = 1.5f, includeInSpin = false });
EditorUtility.SetDirty(p);
return p;
}
static GoboWheelProfile BuildGoboWheel(Texture2D[] tex)
{
var p = LoadOrCreate<GoboWheelProfile>(GoboWheelPath);
var open = new GoboSlot { name = "Open", dmxMin = 0, dmxMax = 3, isOpen = true, additionalRanges = new List<GoboSlotRange>
{
// Mode 1 table: "Open shaking"; Mode 2 table: "Open". Shaking an open aperture is not visible -> Open.
new() { name = "Open / open shaking", dmxMin = 56, dmxMax = 59, type = GoboRangeType.Open },
// Gobo-wheel scroll (128-189 CCW fast->slow, 190-193 stop, 194-255 CW slow->fast) is NOT simulated by the
// package runtime (GoboRangeType.WheelScroll is unused); these values deterministically show Open.
new() { name = "Wheel scroll CCW fast->slow (NOT simulated)", dmxMin = 128, dmxMax = 189, type = GoboRangeType.WheelScroll },
new() { name = "Wheel scroll stop (NOT simulated)", dmxMin = 190, dmxMax = 193, type = GoboRangeType.WheelScroll },
new() { name = "Wheel scroll CW slow->fast (NOT simulated)", dmxMin = 194, dmxMax = 255, type = GoboRangeType.WheelScroll },
} };
p.slots = new List<GoboSlot> { open };
for (int i = 0; i < 17; i++)
{
int min = 4 + 3 * i, max = i == 16 ? 55 : 6 + 3 * i;
int smin = 60 + 4 * i, smax = 63 + 4 * i;
p.slots.Add(new GoboSlot
{
name = $"Gobo {i + 1}",
dmxMin = min, dmxMax = max, texture = tex[i],
additionalRanges = new List<GoboSlotRange>
{
new() { name = $"Gobo {i + 1} shaking (speed est.)", dmxMin = smin, dmxMax = smax, type = GoboRangeType.Shake,
shake = new GoboShakeProfile { speedMinHz = 1f, speedMaxHz = 6f, amplitudeMinDeg = 20f, amplitudeMaxDeg = 60f } }
}
});
}
EditorUtility.SetDirty(p);
return p;
}
static PrismProfile BuildPrism()
{
var p = LoadOrCreate<PrismProfile>(PrismPath);
p.slots = new List<PrismSlot>
{
new() { name = "No prism", dmxMin = 0, dmxMax = 4, isOpen = true, facetCount = 1 },
new() { name = "8-facet rotating prism", dmxMin = 5, dmxMax = 255, facetCount = 8, spread = 0.25f, facetScale = 0.55f },
};
EditorUtility.SetDirty(p);
return p;
}
static FixtureType BuildFixtureType(ColorWheelProfile color, GoboWheelProfile gobo, PrismProfile prism, FrostProfile frost, FocusProfile focus)
{
var ft = LoadOrCreate<FixtureType>(FixtureTypePath);
ft.manufacturer = "Chauvet Professional";
ft.model = "Legend 230SR Beam";
ft.revision = "User Manual Rev. 5 (Apr 2015)";
ft.displayName = "Chauvet Legend 230SR Beam";
ft.prismProfile = prism;
ft.frostProfile = frost;
ft.focusProfile = focus;
ft.modes = new List<FixtureMode> { BuildMode(false, color, gobo, frost), BuildMode(true, color, gobo, frost) };
EditorUtility.SetDirty(ft);
return ft;
}
static FixtureChannelElement El(FixtureAttribute a, FixtureChannelRole r = FixtureChannelRole.Value, FixtureByteRole b = FixtureByteRole.Single, List<FixtureChannelRange> ranges = null)
=> new() { attribute = a, instance = 1, role = r, byteRole = b, ranges = ranges ?? new List<FixtureChannelRange>() };
static FixtureChannelRange Rg(string n, int a, int b, FixtureRangeType t, NormalizedMappingContext ctx = NormalizedMappingContext.Generic,
NormalizedMappingPreset preset = NormalizedMappingPreset.Normal, float fromHz = 1f, float toHz = 20f, float duty = 0.5f)
=> new() { name = n, dmxMin = a, dmxMax = b, type = t, mappingContext = ctx, mappingPreset = preset,
shutterFrequencyFromHz = fromHz, shutterFrequencyToHz = toHz, shutterDutyCycle = duty };
static FixtureChannelElement NoFeature() => El(FixtureAttribute.NoFeature);
static FixtureMode BuildMode(bool mode2, ColorWheelProfile color, GoboWheelProfile gobo, FrostProfile frost)
{
var F = NormalizedMappingContext.ShutterFrequency;
var shutter = new List<FixtureChannelRange>
{
Rg("No function (per manual)", 0, 7, FixtureRangeType.NoFunction),
Rg("Open", 8, 15, FixtureRangeType.Open, preset: NormalizedMappingPreset.NotUsed),
Rg("Strobe slow->fast (1-20 Hz; max from spec)", 16, 131, FixtureRangeType.RegularStrobe, F, fromHz: 1f, toHz: 20f, duty: 0.3f),
Rg("Fast close / slow open (rate est.)", 132, 167, FixtureRangeType.PulseOpen, F, fromHz: 0.5f, toHz: 6f),
Rg("Slow close / fast open (rate est.)", 168, 203, FixtureRangeType.PulseClose, F, fromHz: 0.5f, toHz: 6f),
Rg("Pulse slow->fast (rate est.)", 204, 239, FixtureRangeType.Pulse, F, fromHz: 0.5f, toHz: 6f),
Rg("Random strobe (rate est.)", 240, 247, FixtureRangeType.RandomStrobe, F, fromHz: 4f, toHz: 12f, duty: 0.3f),
Rg("Open", 248, 255, FixtureRangeType.Open, preset: NormalizedMappingPreset.NotUsed),
};
var prismRot = new List<FixtureChannelRange>
{
Rg("Index", 0, 127, FixtureRangeType.Indexed, NormalizedMappingContext.IndexPosition),
Rg("CW rotation fast->slow", 128, 189, FixtureRangeType.RotationCW, NormalizedMappingContext.RotationSpeed, NormalizedMappingPreset.Inverted),
Rg("Stop", 190, 193, FixtureRangeType.NoFunction),
Rg("CCW rotation slow->fast", 194, 255, FixtureRangeType.RotationCCW, NormalizedMappingContext.RotationSpeed),
};
var control = new List<FixtureChannelRange>
{
Rg("No function", 0, 29, FixtureRangeType.NoFunction),
Rg("Dimmer conventional / linear mode (setting, not simulated)", 30, 49, FixtureRangeType.NoFunction),
Rg("Pan/tilt fast / normal mode (setting, not simulated)", 50, 69, FixtureRangeType.NoFunction),
Rg("Blackout-on-move / colour / gobo change settings (not simulated)", 70, 129, FixtureRangeType.NoFunction),
Rg("Lamp on", 130, 139, FixtureRangeType.LampOn),
Rg("Pan/tilt reset", 140, 149, FixtureRangeType.Reset),
Rg("Colour / gobo / shutter+prism reset (not simulated)", 150, 189, FixtureRangeType.NoFunction),
Rg("Frost/focus/zoom reset (not simulated)", 190, 199, FixtureRangeType.NoFunction),
Rg("Reset all", 200, 209, FixtureRangeType.Reset),
Rg("All movement blackout enable/disable (not simulated)", 210, 229, FixtureRangeType.NoFunction),
Rg("Lamp off", 230, 239, FixtureRangeType.LampOff),
Rg("No function", 240, 255, FixtureRangeType.NoFunction),
};
var e = new List<FixtureChannelElement>
{
El(FixtureAttribute.Pan, FixtureChannelRole.Position, FixtureByteRole.Coarse), // 1
El(FixtureAttribute.Pan, FixtureChannelRole.Position, FixtureByteRole.Fine), // 2
El(FixtureAttribute.Tilt, FixtureChannelRole.Position, FixtureByteRole.Coarse), // 3
El(FixtureAttribute.Tilt, FixtureChannelRole.Position, FixtureByteRole.Fine), // 4
NoFeature(), // 5 Pan/Tilt speed (not modelled)
};
if (mode2)
{
e.Add(El(FixtureAttribute.Dimmer, FixtureChannelRole.Value, FixtureByteRole.Coarse)); // 6
e.Add(El(FixtureAttribute.Dimmer, FixtureChannelRole.Value, FixtureByteRole.Fine)); // 7
}
else e.Add(El(FixtureAttribute.Dimmer)); // 6
e.Add(El(FixtureAttribute.Strobe, FixtureChannelRole.Value, FixtureByteRole.Single, shutter));
e.Add(El(FixtureAttribute.ColorWheel, FixtureChannelRole.SelectMode));
e.Add(El(FixtureAttribute.GoboWheel, FixtureChannelRole.SelectMode));
e.Add(El(FixtureAttribute.Prism, FixtureChannelRole.SelectMode));
e.Add(El(FixtureAttribute.Prism, FixtureChannelRole.PositionOrRotation, FixtureByteRole.Single, prismRot));
e.Add(NoFeature()); // Prism zoom (no package equivalent)
e.Add(El(FixtureAttribute.Focus, FixtureChannelRole.Value, FixtureByteRole.Single,
new List<FixtureChannelRange> { Rg("Focus 0-100%", 0, 255, FixtureRangeType.None, NormalizedMappingContext.Focus) }));
e.Add(El(FixtureAttribute.Frost, FixtureChannelRole.Value, FixtureByteRole.Single,
new List<FixtureChannelRange> { Rg("Frost 0-100%", 0, 255, FixtureRangeType.None, NormalizedMappingContext.Frost) }));
if (mode2) { e.Add(NoFeature()); e.Add(NoFeature()); } // P/T macro, macro speed
e.Add(El(FixtureAttribute.Control, FixtureChannelRole.Control, FixtureByteRole.Single, control));
int count = mode2 ? 18 : 15;
if (e.Count != count) throw new Exception($"Mode element count {e.Count} != {count}");
return new FixtureMode
{
modeName = mode2 ? "Mode 2 (18ch)" : "Mode 1 (15ch)",
channelCount = count,
channels = new List<FunctionChannel>(),
elements = e,
wheelBindings = new List<FixtureWheelBinding>
{
new() { attribute = FixtureAttribute.ColorWheel, instance = 1, colorWheel = color },
new() { attribute = FixtureAttribute.GoboWheel, instance = 1, goboWheel = gobo },
},
frostBindings = new List<FixtureFrostBinding> { new() { instance = 1, profile = frost } },
panTiltSpeedProfiles = new List<FixturePanTiltSpeedProfile>(),
};
}
// ------------------------------------------------------------------ prefab
static void BuildPrefab()
{
// Re-load everything from disk: opening a single-mode scene unloads assets that were only held by C# refs.
var mats = new Dictionary<string, Material>();
foreach (var n in new[] { "M_L230SR_Housing_Black", "M_L230SR_Trim_DarkMetal", "M_L230SR_Display", "M_L230SR_Lens" })
mats[n] = AssetDatabase.LoadAssetAtPath<Material>($"{Root}/Materials/{n}.mat");
var ft = AssetDatabase.LoadAssetAtPath<FixtureType>(FixtureTypePath);
var color = AssetDatabase.LoadAssetAtPath<ColorWheelProfile>(ColorWheelPath);
var gobo = AssetDatabase.LoadAssetAtPath<GoboWheelProfile>(GoboWheelPath);
var prism = AssetDatabase.LoadAssetAtPath<PrismProfile>(PrismPath);
if (ft == null || color == null || gobo == null || prism == null || mats.Values.Any(m => m == null))
throw new Exception("Generated profile/material assets could not be loaded for the prefab step.");
var model = AssetDatabase.LoadAssetAtPath<GameObject>(FbxPath);
var root = new GameObject("Chauvet_Legend_230SR_Beam");
try
{
var inst = (GameObject)PrefabUtility.InstantiatePrefab(model, root.transform);
inst.name = "Model";
var yoke = Find(inst.transform, "Yoke");
var head = Find(inst.transform, "Head");
var lens = Find(inst.transform, "Lens");
var lensMr = lens.GetComponent<MeshRenderer>();
var goboLens = AssetDatabase.LoadAssetAtPath<Material>(PkgGoboLensMat);
if (goboLens == null) Warnings.Add("GoboLensSurface_URP material not found; lens gobo overlay disabled.");
lensMr.sharedMaterials = goboLens != null ? new[] { mats["M_L230SR_Lens"], goboLens } : new[] { mats["M_L230SR_Lens"] };
foreach (var r in inst.GetComponentsInChildren<MeshRenderer>())
{
r.shadowCastingMode = ShadowCastingMode.On;
r.lightProbeUsage = LightProbeUsage.BlendProbes;
}
lensMr.shadowCastingMode = ShadowCastingMode.Off;
// Beam origin: on the optical axis just in front of the lens; local +Z (light forward) == head +Y.
var beam = new GameObject("BeamOrigin").transform;
beam.SetParent(head, false);
beam.localPosition = new Vector3(0f, BeamOriginFromTilt, 0f);
beam.localRotation = Quaternion.Euler(-90f, 0f, 0f);
Light light = null;
Renderer pseudoBeam = null;
var e3 = AssetDatabase.LoadAssetAtPath<GameObject>(PkgE3Prefab);
if (e3 != null)
{
foreach (var t in e3.GetComponentsInChildren<Transform>(true))
{
string n = t.name.Trim().Trim('\'').Trim();
if (n == "Spot Light" && light == null)
{
var go = UnityEngine.Object.Instantiate(t.gameObject, beam, false);
go.name = "Spot Light";
go.transform.localPosition = Vector3.zero; go.transform.localRotation = Quaternion.identity;
light = go.GetComponent<Light>();
}
else if (n == "PseudoBeam" && pseudoBeam == null)
{
var go = UnityEngine.Object.Instantiate(t.gameObject, beam, false);
go.name = "PseudoBeam";
go.transform.localPosition = Vector3.zero; go.transform.localRotation = Quaternion.identity;
pseudoBeam = go.GetComponent<Renderer>();
// Pseudo-beam cone sized to the manufacturer's 2.25 deg beam angle from the 133 mm front lens:
// end radius = start + L * tan(1.125 deg). (No zoom channel, so the base shape is always used.)
var cone = go.GetComponents<MonoBehaviour>().FirstOrDefault(c => c != null && c.GetType().Name == "PrismPseudoBeamCone");
if (cone != null)
{
const float L = 20f, r0 = 0.06f;
var cso = new SerializedObject(cone);
cso.FindProperty("length").floatValue = L;
cso.FindProperty("startRadius").floatValue = r0;
cso.FindProperty("endRadius").floatValue = r0 + L * Mathf.Tan(1.125f * Mathf.Deg2Rad);
cso.ApplyModifiedPropertiesWithoutUndo();
}
else Warnings.Add("PrismPseudoBeamCone not found on the cloned PseudoBeam.");
}
}
}
else Warnings.Add("Package E3 Spot prefab not found; creating a plain spot light without pseudo beam.");
if (light == null)
{
var go = new GameObject("Spot Light");
go.transform.SetParent(beam, false);
light = go.AddComponent<Light>();
}
light.type = LightType.Spot;
light.spotAngle = 2.25f; // manufacturer beam angle
light.innerSpotAngle = 1.2f;
light.range = 40f;
light.shadows = LightShadows.None;
// The package recommends the light driver on the same GameObject as DmxFixtureComponent (the E3 clone
// carries it on the light = legacy placement). Move it, keeping its serialized settings.
foreach (var mb in light.GetComponents<MonoBehaviour>())
{
if (mb is not ILightDriver) continue;
var moved = root.AddComponent(mb.GetType());
EditorUtility.CopySerialized(mb, moved);
UnityEngine.Object.DestroyImmediate(mb);
}
if (root.GetComponent<ILightDriver>() == null) root.AddComponent<GenericLightDriver>();
var dfc = root.AddComponent<DmxFixtureComponent>();
var so = new SerializedObject(dfc);
Set(so, "fixture", ft);
Set(so, "mode", 1); // default: Mode 2 (18ch); index 0 = Mode 1 (15ch)
Set(so, "universe", 0);
Set(so, "startAddress", 1);
Set(so, "targetLight", light);
Set(so, "panTransform", yoke);
Set(so, "tiltTransform", head);
Set(so, "panAxis", (int)DmxFixtureComponent.LocalAxis.Y);
Set(so, "tiltAxis", (int)DmxFixtureComponent.LocalAxis.MinusX);
Set(so, "panRangeDeg", 540f);
Set(so, "tiltRangeDeg", 270f);
Set(so, "lensRenderer", lensMr);
Set(so, "goboWheel", gobo);
Set(so, "colorWheel", color);
Set(so, "prismProfile", prism);
Set(so, "syncZoomToLight", false);
Set(so, "minOuterSpotAngle", 2.25f);
Set(so, "maxOuterSpotAngle", 2.25f);
Set(so, "applyImmediateInEditMode", true);
if (pseudoBeam != null)
{
Set(so, "beamRenderer", pseudoBeam);
Set(so, "beamRenderMode", (int)DmxFixtureComponent.BeamRenderMode.PseudoBeamShader); // template beam is hidden otherwise
Set(so, "syncPseudoBeamToDmx", true); // off by default on a freshly added component
}
// URP lights fall off with 1/d^2: the package default (10) is invisible at 10+ m. Visual value, not photometric.
Set(so, "genericMaxIntensity", 300f);
Set(so, "auxiliaryLightShadows", false); // 8 prism facet lights: no shadows (cost per instance)
Set(so, "prismDrawMode", (int)DmxFixtureComponent.PrismDrawMode.ProjectionAndShaderBeam); // prism fans as pseudo-beams
var binds = so.FindProperty("lensMaterialBindings");
if (binds != null && goboLens != null)
{
binds.arraySize = 1;
var b0 = binds.GetArrayElementAtIndex(0);
b0.FindPropertyRelative("renderer").objectReferenceValue = lensMr;
b0.FindPropertyRelative("materialSlot").intValue = 1;
b0.FindPropertyRelative("originalMaterial").objectReferenceValue = mats["M_L230SR_Lens"];
b0.FindPropertyRelative("goboLensMaterial").objectReferenceValue = goboLens;
}
so.ApplyModifiedPropertiesWithoutUndo();
dfc.ResolveMapping();
PrefabUtility.SaveAsPrefabAsset(root, PrefabPath, out bool ok);
if (!ok) throw new Exception("Prefab save failed");
}
finally { UnityEngine.Object.DestroyImmediate(root); }
}
static void Set(SerializedObject so, string name, object value)
{
var p = so.FindProperty(name);
if (p == null) { Warnings.Add($"DmxFixtureComponent property '{name}' not found (package API changed?)"); return; }
switch (value)
{
case UnityEngine.Object o: p.objectReferenceValue = o; break;
case int i when p.propertyType == SerializedPropertyType.Enum: p.enumValueIndex = i; break;
case int i: p.intValue = i; break;
case float f: p.floatValue = f; break;
case bool b: p.boolValue = b; break;
default: Warnings.Add($"Unsupported value for {name}"); break;
}
}
public static Transform Find(Transform t, string name)
{
if (t.name == name) return t;
foreach (Transform c in t) { var r = Find(c, name); if (r != null) return r; }
return null;
}
// ------------------------------------------------------------------ isolated test scene
static void BuildTestScene()
{
var previous = SceneManager.GetActiveScene();
var scene = OpenTempScene(out bool additive);
try { PopulateTestScene(scene); }
finally { CloseTempScene(scene, previous, additive); }
}
// A saved scene (e.g. the venue) stays loaded and untouched: work happens in an additive scene that is closed
// afterwards. Unity cannot add a scene next to an *untitled* one, so in that case (batch mode, or an empty
// editor) the untitled scene is replaced - after offering to save it if it has unsaved edits.
static Scene OpenTempScene(out bool additive)
{
var active = SceneManager.GetActiveScene();
if (string.IsNullOrEmpty(active.path))
{
if (active.isDirty && !Application.isBatchMode && !EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
throw new OperationCanceledException("Cancelled: the untitled scene has unsaved changes.");
additive = false;
return EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
}
additive = true;
var s = EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Additive);
SceneManager.SetActiveScene(s);
return s;
}
static void CloseTempScene(Scene s, Scene previous, bool additive)
{
if (!additive) return;
if (previous.IsValid()) SceneManager.SetActiveScene(previous);
EditorSceneManager.CloseScene(s, true);
}
static void PopulateTestScene(Scene scene)
{
var artnet = AssetDatabase.LoadAssetAtPath<GameObject>(PkgArtNetPrefab);
if (artnet != null)
{
var an = (GameObject)PrefabUtility.InstantiatePrefab(artnet, scene);
// Compatibility: ArtNetReceiverDmxRecorder.Update() polls legacy UnityEngine.Input, which throws every frame
// while Player Settings > Active Input Handling = "Input System Package (New)" (this project's setting).
// Recording is not needed for live receive, so the recorder object is disabled in this test scene only.
var rec = Find(an.transform, "ArtNet Recorder");
if (rec != null) rec.gameObject.SetActive(false);
else Warnings.Add("'ArtNet Recorder' not found in ArtNet.prefab instance.");
}
else Warnings.Add("ArtNet.prefab not found; test scene has no receiver.");
var floor = GameObject.CreatePrimitive(PrimitiveType.Plane);
floor.name = "TestFloor"; floor.transform.localScale = new Vector3(3f, 1f, 3f);
var wall = GameObject.CreatePrimitive(PrimitiveType.Plane);
wall.name = "TestBackWall"; wall.transform.SetPositionAndRotation(new Vector3(0f, 6f, -12f), Quaternion.Euler(90f, 0f, 0f));
wall.transform.localScale = new Vector3(3f, 1f, 1.2f);
var prefab = AssetDatabase.LoadAssetAtPath<GameObject>(PrefabPath);
var a = (GameObject)PrefabUtility.InstantiatePrefab(prefab, scene);
a.name = "L230SR_A_Mode2_U0_Addr1";
a.transform.position = new Vector3(-0.6f, 0f, 0f);
var b = (GameObject)PrefabUtility.InstantiatePrefab(prefab, scene);
b.name = "L230SR_B_Mode1_U0_Addr21";
b.transform.position = new Vector3(0.6f, 0f, 0f);
var sb = new SerializedObject(b.GetComponent<DmxFixtureComponent>());
sb.FindProperty("mode").intValue = 0;
sb.FindProperty("startAddress").intValue = 21;
sb.ApplyModifiedPropertiesWithoutUndo();
var sun = new GameObject("Dim Key Light").AddComponent<Light>();
sun.type = LightType.Directional; sun.intensity = 0.35f;
sun.transform.rotation = Quaternion.Euler(35f, -30f, 0f);
var cam = new GameObject("Test Camera").AddComponent<Camera>();
cam.transform.position = new Vector3(2.4f, 1.35f, 2.6f);
cam.transform.LookAt(new Vector3(0f, 0.9f, -1.5f));
cam.backgroundColor = new Color(0.02f, 0.02f, 0.025f);
cam.clearFlags = CameraClearFlags.SolidColor;
cam.gameObject.tag = "MainCamera";
RenderSettings.ambientMode = AmbientMode.Flat;
RenderSettings.ambientLight = new Color(0.08f, 0.08f, 0.09f);
EditorSceneManager.SaveScene(scene, ScenePath);
}
static T LoadOrCreate<T>(string path) where T : ScriptableObject
{
var a = AssetDatabase.LoadAssetAtPath<T>(path);
if (a != null) return a;
a = ScriptableObject.CreateInstance<T>();
a.name = Path.GetFileNameWithoutExtension(path);
AssetDatabase.CreateAsset(a, path);
return a;
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: c73ab79011ff1deaf98ca73c48ef2ca6
@@ -0,0 +1,150 @@
// Edit-mode verification of the imported FBX and the generated prefab.
// Batch: Unity -batchmode -projectPath <proj> -executeMethod PressureChamber.Fixtures.Legend230SR.EditorTools.Legend230SRVerify.RunBatch -quit
// Writes Assets/Fixtures/Chauvet_Legend_230SR_Beam/Documentation/Validation/unity_import_report.json
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using ArtNet.Runtime;
using UnityEditor;
using UnityEngine;
namespace PressureChamber.Fixtures.Legend230SR.EditorTools
{
public static class Legend230SRVerify
{
const string ReportPath = Legend230SRSetup.Root + "/Documentation/Validation/unity_import_report.json";
static readonly List<(string name, bool ok, string detail)> Checks = new();
[MenuItem("Tools/Pressure Chamber/Fixtures/Legend 230SR Beam/Verify Import And Prefab")]
public static bool Run()
{
Checks.Clear();
CheckModel();
CheckPrefab();
WriteReport();
bool all = Checks.All(c => c.ok);
Debug.Log($"[L230SR] Verification {(all ? "PASSED" : "FAILED")} ({Checks.Count(c => c.ok)}/{Checks.Count})");
foreach (var c in Checks) Debug.Log($"[L230SR] {(c.ok ? "PASS" : "FAIL")} {c.name} :: {c.detail}");
return all;
}
public static void RunBatch()
{
try { EditorApplication.Exit(Run() ? 0 : 3); }
catch (Exception e) { Debug.LogException(e); EditorApplication.Exit(1); }
}
static void Check(string name, bool ok, string detail) => Checks.Add((name, ok, detail));
static string V(Vector3 v) => string.Format(CultureInfo.InvariantCulture, "({0:0.0000}, {1:0.0000}, {2:0.0000})", v.x, v.y, v.z);
static void CheckModel()
{
var mi = (ModelImporter)AssetImporter.GetAtPath(Legend230SRSetup.FbxPath);
Check("importer: bakeAxisConversion + file scale + no lights/cameras",
mi.bakeAxisConversion && mi.useFileScale && Mathf.Approximately(mi.globalScale, 1f) && !mi.importLights && !mi.importCameras,
$"bake={mi.bakeAxisConversion} useFileScale={mi.useFileScale} globalScale={mi.globalScale} fileScale={mi.fileScale}");
var model = AssetDatabase.LoadAssetAtPath<GameObject>(Legend230SRSetup.FbxPath);
var go = (GameObject)PrefabUtility.InstantiatePrefab(model);
try
{
var t = go.transform;
var b = Legend230SRSetup.Find(t, "Base"); var y = Legend230SRSetup.Find(t, "Yoke");
var h = Legend230SRSetup.Find(t, "Head"); var l = Legend230SRSetup.Find(t, "Lens");
Check("hierarchy Base>Yoke>Head>Lens", b && y && h && l && y.parent == b && h.parent == y && l.parent == h,
$"root={go.name} base.parent={(b ? b.parent.name : "-")}");
if (!(b && y && h && l)) return;
Check("Yoke local position = pan bearing (0, 0.1352, 0)", (y.localPosition - new Vector3(0, 0.1352f, 0)).magnitude < 1e-4f, V(y.localPosition));
Check("Head local position = tilt axis offset (0, 0.2383, 0)", (h.localPosition - new Vector3(0, 0.2383f, 0)).magnitude < 1e-4f, V(h.localPosition));
Check("Lens local position (0, 0.112, 0)", (l.localPosition - new Vector3(0, 0.112f, 0)).magnitude < 1e-4f, V(l.localPosition));
Check("tilt axis world height 0.3735 m", Mathf.Abs(h.position.y - 0.3735f) < 1e-4f, V(h.position));
bool ident = new[] { t, b, y, h, l }.All(x => Quaternion.Angle(x.localRotation, Quaternion.identity) < 0.01f && (x.localScale - Vector3.one).magnitude < 1e-4f);
Check("all pivots: identity local rotation and unit scale", ident,
string.Join("; ", new[] { b, y, h, l }.Select(x => $"{x.name} rot={V(x.localEulerAngles)} scl={V(x.localScale)}")));
var rs = go.GetComponentsInChildren<MeshRenderer>();
var bounds = rs[0].bounds; foreach (var r in rs) bounds.Encapsulate(r.bounds);
var size = bounds.size;
Check("bounds W x H (415 x 497.5 mm, handles / head up)", Mathf.Abs(size.x - 0.415f) < 0.002f && Mathf.Abs(size.y - 0.4975f) < 0.002f, "size=" + V(size));
Check("bounds depth incl. 19 mm rear cable boot (343.4 + 19 mm)", Mathf.Abs(size.z - 0.3624f) < 0.003f, "size.z=" + size.z.ToString("0.0000", CultureInfo.InvariantCulture));
Check("min Y = 0 (base sits on the floor)", Mathf.Abs(bounds.min.y) < 1e-4f, "min=" + V(bounds.min));
// orientation: display submesh = front (-Z), cable boot = rear (+Z) -> no mirroring
var mf = b.GetComponent<MeshFilter>().sharedMesh; var mr = b.GetComponent<MeshRenderer>();
int disp = Array.FindIndex(mr.sharedMaterials, m => m && m.name == "M_L230SR_Display");
Vector3 dc = Vector3.zero; int n = 0;
if (disp >= 0) foreach (var i in mf.GetTriangles(disp)) { dc += mf.vertices[i]; n++; }
dc = n > 0 ? dc / n : dc;
Check("control-panel display faces -Z (front)", n > 0 && dc.z < -0.165f, "display centroid=" + V(dc));
var verts = mf.vertices;
var rear = verts.Where(v => v.z > 0.175f).ToArray();
Vector3 rc = rear.Length > 0 ? rear.Aggregate(Vector3.zero, (a, v) => a + v) / rear.Length : Vector3.zero;
Check("cable boot at rear (+Z) on the fixture's left (-X): not mirrored", rear.Length > 0 && rc.x < -0.08f, "boot centroid=" + V(rc));
int tris = rs.Sum(r => r.GetComponent<MeshFilter>().sharedMesh.triangles.Length / 3);
var matNames = rs.SelectMany(r => r.sharedMaterials).Where(m => m).Select(m => m.name).Distinct().OrderBy(s => s).ToArray();
Check("triangle count (imported)", tris > 0 && tris < 8000, tris.ToString());
Check("materials remapped to project URP materials (4)", matNames.Length == 4 && matNames.All(s => s.StartsWith("M_L230SR_")), string.Join(", ", matNames));
// articulation: rotating Yoke carries Head+Lens; rotating Head carries Lens; lens stays on the optical axis
var lens0 = l.position;
y.localRotation = Quaternion.AngleAxis(90f, Vector3.up);
bool panKeepsLens = (l.position - lens0).magnitude < 1e-4f;
h.localRotation = Quaternion.AngleAxis(90f, -Vector3.right);
var lensAxis = l.up;
var expAxis = Quaternion.AngleAxis(90f, Vector3.up) * (Quaternion.AngleAxis(90f, -Vector3.right) * Vector3.up);
var expPos = new Vector3(0, 0.3735f, 0) + expAxis * 0.112f;
Check("pan 90 then tilt 90: Lens carried by Yoke and Head", panKeepsLens && (l.position - expPos).magnitude < 1e-4f && Vector3.Angle(lensAxis, expAxis) < 0.01f,
$"lens={V(l.position)} expected={V(expPos)} axis={V(lensAxis)}");
}
finally { UnityEngine.Object.DestroyImmediate(go); }
}
static void CheckPrefab()
{
var prefab = AssetDatabase.LoadAssetAtPath<GameObject>(Legend230SRSetup.PrefabPath);
Check("prefab exists", prefab != null, Legend230SRSetup.PrefabPath);
if (prefab == null) return;
var dfc = prefab.GetComponent<DmxFixtureComponent>();
Check("DmxFixtureComponent on prefab root", dfc != null, "");
if (dfc == null) return;
var so = new SerializedObject(dfc);
string Obj(string n) => so.FindProperty(n)?.objectReferenceValue ? so.FindProperty(n).objectReferenceValue.name : "null";
Check("pan transform = Yoke, tilt transform = Head", Obj("panTransform") == "Yoke" && Obj("tiltTransform") == "Head", $"pan={Obj("panTransform")} tilt={Obj("tiltTransform")}");
Check("axes: pan Y / tilt -X, ranges 540 / 270",
so.FindProperty("panAxis").enumValueIndex == (int)DmxFixtureComponent.LocalAxis.Y && so.FindProperty("tiltAxis").enumValueIndex == (int)DmxFixtureComponent.LocalAxis.MinusX &&
Mathf.Approximately(so.FindProperty("panRangeDeg").floatValue, 540f) && Mathf.Approximately(so.FindProperty("tiltRangeDeg").floatValue, 270f),
$"panAxis={so.FindProperty("panAxis").enumDisplayNames[so.FindProperty("panAxis").enumValueIndex]} tiltAxis={so.FindProperty("tiltAxis").enumDisplayNames[so.FindProperty("tiltAxis").enumValueIndex]}");
Check("fixture type + lens renderer + light + beam wired", Obj("fixture") != "null" && Obj("lensRenderer") == "Lens" && Obj("targetLight") != "null" && Obj("beamRenderer") != "null",
$"fixture={Obj("fixture")} lens={Obj("lensRenderer")} light={Obj("targetLight")} beam={Obj("beamRenderer")}");
var ft = dfc.fixture;
Check("fixture type modes 15ch + 18ch", ft != null && ft.modes.Count == 2 && ft.modes[0].channelCount == 15 && ft.modes[0].elements.Count == 15 && ft.modes[1].channelCount == 18 && ft.modes[1].elements.Count == 18,
ft == null ? "null" : string.Join(", ", ft.modes.Select(m => $"{m.modeName}:{m.elements.Count}")));
var light = dfc.targetLight;
Check("spot light aligned with the optical axis (head +Y)", light != null && Vector3.Angle(light.transform.forward, Legend230SRSetup.Find(prefab.transform, "Head").up) < 0.01f,
light ? $"fwd={V(light.transform.forward)}" : "no light");
Check("no Light inside the imported model (Blender lights not used)", Legend230SRSetup.Find(prefab.transform, "Model").GetComponentsInChildren<Light>(true).All(x => x.transform.IsChildOf(Legend230SRSetup.Find(prefab.transform, "BeamOrigin"))),
"only BeamOrigin/Spot Light added by the prefab");
}
static void WriteReport()
{
var sb = new StringBuilder();
sb.Append("{\n \"generated\": \"").Append(DateTime.Now.ToString("s", CultureInfo.InvariantCulture)).Append("\",\n \"unity\": \"").Append(Application.unityVersion).Append("\",\n \"checks\": [\n");
for (int i = 0; i < Checks.Count; i++)
{
var c = Checks[i];
sb.Append(" {\"name\": \"").Append(Esc(c.name)).Append("\", \"ok\": ").Append(c.ok ? "true" : "false").Append(", \"detail\": \"").Append(Esc(c.detail)).Append("\"}").Append(i < Checks.Count - 1 ? ",\n" : "\n");
}
sb.Append(" ],\n \"all_ok\": ").Append(Checks.All(c => c.ok) ? "true" : "false").Append("\n}\n");
Directory.CreateDirectory(Path.GetDirectoryName(ReportPath));
File.WriteAllText(ReportPath, sb.ToString());
AssetDatabase.ImportAsset(ReportPath);
}
static string Esc(string s) => (s ?? "").Replace("\\", "\\\\").Replace("\"", "\\\"");
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 3e0d67ebb499e7f9b84855a8b1d7e17f
@@ -0,0 +1,18 @@
{
"name": "PressureChamber.Fixtures.Legend230SR.Editor",
"rootNamespace": "PressureChamber.Fixtures.Legend230SR.EditorTools",
"references": [
"ArtNet.Runtime"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3da57eff5a0383495bb8b62b60ec996b
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4cb2d637410858622939f58c1ed9ec0b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,137 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-1924392138079151391
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_L230SR_Display
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 0
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.8
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.02, g: 0.04, b: 0.1, a: 1}
- _Color: {r: 0.02, g: 0.04, b: 0.09999997, a: 1}
- _EmissionColor: {r: 0.060000002, g: 0.16800001, b: 0.54, a: 1.2}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b930e4cae98d0b30cbfe4a5177465fb6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,137 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-6676988192720402828
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_L230SR_Housing_Black
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.32
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.035, g: 0.035, b: 0.038, a: 1}
- _Color: {r: 0.035, g: 0.035, b: 0.038, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 013e851e97983c16ba9af46ac7393091
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,291 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_L230SR_Lens
m_Shader: {fileID: -6465566751694194690, guid: b47766a0e4510a349815be6d887c5dac, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
MotionVector: User
disabledShaderPasses:
- TransparentDepthPrepass
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AnisotropyMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BaseColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BentNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BentNormalMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _CoatMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissiveColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _HeightMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _IridescenceMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _IridescenceThicknessMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _NormalMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecularColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SubsurfaceMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TangentMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TangentMapOS:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ThicknessMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmissionMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
- _ATDistance: 1
- _AddPrecomputedVelocity: 0
- _AlbedoAffectEmissive: 0
- _AlphaCutoff: 0.5
- _AlphaCutoffEnable: 0
- _AlphaCutoffPostpass: 0.5
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaRemapMax: 1
- _AlphaRemapMin: 0
- _AlphaSrcBlend: 1
- _Anisotropy: 0
- _BlendMode: 0
- _CoatMask: 0
- _ConservativeDepthOffsetEnable: 0
- _CullMode: 2
- _CullModeForward: 2
- _Cutoff: 0.5
- _DepthOffsetEnable: 0
- _DetailAlbedoScale: 1
- _DetailNormalScale: 1
- _DetailSmoothnessScale: 1
- _DiffusionProfile: 0
- _DiffusionProfileHash: 0
- _DisplacementLockObjectScale: 1
- _DisplacementLockTilingScale: 1
- _DisplacementMode: 0
- _DmxDimmer: 0.12
- _DoubleSidedEnable: 0
- _DoubleSidedGIMode: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 0
- _DstBlend2: 0
- _EmissiveColorMode: 1
- _EmissiveExposureWeight: 1
- _EmissiveIntensity: 0
- _EmissiveIntensityUnit: 0
- _EnableBlendModePreserveSpecularLighting: 1
- _EnableFogOnTransparent: 1
- _EnableGeometricSpecularAA: 0
- _EnergyConservingSpecularColor: 1
- _ExcludeFromTUAndAA: 0
- _FresnelPower: 4
- _FresnelStrength: 0.8
- _HeightAmplitude: 0.02
- _HeightCenter: 0.5
- _HeightMapParametrization: 0
- _HeightMax: 1
- _HeightMin: -1
- _HeightOffset: 0
- _HeightPoMAmplitude: 2
- _HeightTessAmplitude: 2
- _HeightTessCenter: 0.5
- _HotspotInner: 0.12
- _HotspotOuter: 0.3
- _HotspotStrength: 2
- _InvTilingScale: 1
- _Ior: 1.5
- _IridescenceMask: 1
- _IridescenceThickness: 1
- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _MaterialTypeMask: 2
- _Metallic: 0.63
- _MetallicRemapMax: 1
- _MetallicRemapMin: 0
- _NormalMapSpace: 0
- _NormalScale: 1
- _ObjectSpaceUVMapping: 0
- _ObjectSpaceUVMappingEmissive: 0
- _OpaqueCullMode: 2
- _PPDLodThreshold: 5
- _PPDMaxSamples: 15
- _PPDMinSamples: 5
- _PPDPrimitiveLength: 1
- _PPDPrimitiveWidth: 1
- _ParallaxAmount: 0.04
- _PerPixelSorting: 0
- _QueueControl: 0
- _QueueOffset: 0
- _RayTracing: 0
- _ReceivesSSR: 0
- _ReceivesSSRTransparent: 0
- _RefractionModel: 0
- _RenderQueueType: 1
- _RequireSplitLighting: 0
- _Smoothness: 0.04
- _SmoothnessRemapMax: 1
- _SmoothnessRemapMin: 0
- _SpecularAAScreenSpaceVariance: 0.1
- _SpecularAAThreshold: 0.2
- _SpecularOcclusionMode: 1
- _SrcBlend: 1
- _StencilRef: 0
- _StencilRefDepth: 0
- _StencilRefDistortionVec: 4
- _StencilRefGBuffer: 2
- _StencilRefMV: 32
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 9
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 15
- _StencilWriteMaskMV: 41
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 0
- _TexWorldScale: 1
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransmissionMask: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0
- _TransparentDepthPrepassEnable: 0
- _TransparentSortPriority: 0
- _TransparentWritingMotionVec: 0
- _TransparentZWrite: 0
- _UVBase: 0
- _UVDetail: 0
- _UVEmissive: 0
- _UseEmissiveIntensity: 0
- _UseShadowThreshold: 0
- _ZTestDepthEqualForOpaque: 3
- _ZTestGBuffer: 4
- _ZTestTransparent: 4
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
- _DmxColor: {r: 0.025, g: 0.045, b: 0.055, a: 1}
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
- _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
- _InvPrimScale: {r: 1, g: 1, b: 0, a: 0}
- _IridescenceThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
- _TransmittanceColor: {r: 1, g: 1, b: 1, a: 1}
- _UVDetailsMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMaskEmissive: {r: 1, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &6238370466069628480
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 26976361ba24f0d66840a49e28ab6cf5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,137 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: M_L230SR_Trim_DarkMetal
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0.6
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.55
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.085, g: 0.087, b: 0.095, a: 1}
- _Color: {r: 0.08499997, g: 0.08699996, b: 0.09499996, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &1312095467031222177
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 496a6fb5c97740261afde8b2eadb290e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 733b7eaaf530860a383db9494a57e705
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,131 @@
fileFormatVersion: 2
guid: 79a0797c1cb950729a55e4d61fede3ec
ModelImporter:
serializedVersion: 24300
internalIDToNameTable: []
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: M_L230SR_Display
second: {fileID: 2100000, guid: b930e4cae98d0b30cbfe4a5177465fb6, type: 2}
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: M_L230SR_Housing_Black
second: {fileID: 2100000, guid: 013e851e97983c16ba9af46ac7393091, type: 2}
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: M_L230SR_Lens
second: {fileID: 2100000, guid: 26976361ba24f0d66840a49e28ab6cf5, type: 2}
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: M_L230SR_Trim_DarkMetal
second: {fileID: 2100000, guid: 496a6fb5c97740261afde8b2eadb290e, type: 2}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 1
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,713 @@
"""
Build script: Chauvet Professional Legend 230SR Beam (game-ready fixture model)
==========================================================================
Run headless:
blender --background --factory-startup --python build_chauvet_legend_230sr_beam.py -- \
--out-blend <path.blend> --out-fbx <path.fbx> --report <path.json>
Coordinate system (Blender): metres, +Z up, fixture FRONT (control panel) faces -Y,
+X is the fixture's right-hand side when you look at the front.
Rest pose == DMX centre (pan 50 %, tilt 50 %): yoke arms on +/-X, head pointing
straight up (+Z, beam leaves the lens along +Z).
Hierarchy and pivots (object origins sit exactly on the mechanical axes):
Base origin (0, 0, 0) floor contact plane, centre of the base footprint
Yoke origin (0, 0, 0.1352) PAN axis = Yoke local +Z through (x=0, y=0)
Head origin (0, 0, 0.3735) TILT axis = Head local +X through (y=0, z=0.3735)
Lens origin (0, 0, 0.4855) optical axis = Lens local +Z
All dimensions trace to the Legend 230SR Beam User Manual Rev. 5 "Product Dimensions"
drawing (see Documentation/Chauvet_Legend_230SR_Beam_Fixture.md). Values that were
scaled from the raster drawing rather than printed are marked "scaled" below.
"""
import bpy
import bmesh
import json
import math
import os
import sys
from mathutils import Matrix, Vector
import numpy as np
# ---------------------------------------------------------------------------
# Dimensions (metres)
# ---------------------------------------------------------------------------
D = dict(
# printed on the manufacturer drawing
overall_height_head_up=0.4975, # 19.59 in / 497.5 mm
overall_width_handles=0.415, # 16.34 in / 415 mm
overall_length=0.3434, # 13.52 in / 343.4 mm (base depth)
yoke_width=0.3668, # 14.44 in / 366.8 mm
head_face_width=0.229, # 9.02 in / 229 mm
head_body_width=0.2214, # 8.72 in / 221.4 mm
head_depth=0.2059, # 8.11 in / 205.9 mm
head_length=0.2845, # 11.20 in / 284.5 mm
yoke_arm_depth=0.124, # 4.88 in / 124 mm
yoke_top=0.4353, # 17.14 in / 435.3 mm (head up)
base_height=0.122, # 4.80 in / 122 mm
yoke_bottom=0.1352, # 5.32 in / 135.2 mm
head_underside_horizontal=0.271, # 10.67 in / 271 mm (head horizontal)
# derived / scaled from the raster drawing (documented as estimates)
tilt_axis_z=0.3735, # 497.5 - 124 (front of head from axis), cross-checked 271 + 205.9/2
head_front_from_axis=0.124, # = arm radius; scaled 123-124 mm from side view
base_width=0.3056, # scaled 305-306 mm (front view)
lens_glass_diameter=0.133, # scaled ~130-135 mm
bezel_outer_diameter=0.178, # scaled ~178 mm
)
TZ = D["tilt_axis_z"]
YB = D["yoke_bottom"]
A_FRONT = D["head_front_from_axis"] # 0.124
A_REAR = A_FRONT - D["head_length"] # -0.1605
ARM_R = D["yoke_arm_depth"] / 2.0 # 0.062
ARM_IN = 0.1175 # inner face of each arm (3 mm clearance to the 229 mm face)
ARM_OUT = D["yoke_width"] / 2.0 # 0.1834
BX = D["base_width"] / 2.0 # 0.1528
BY = D["overall_length"] / 2.0 # 0.1717 overall (front panel details included)
BY_BODY = 0.16995 # housing half-depth (339.9 mm; scaled ~338 mm in side view) so
# housing + 3.5 mm front-panel relief = 343.4 mm overall
HX = D["head_body_width"] / 2.0 # 0.1107
HFX = D["head_face_width"] / 2.0 # 0.1145
HY = D["head_depth"] / 2.0 # 0.10295
LENS_A = 0.112 # lens centre along optical axis (from tilt axis)
LENS_R = D["lens_glass_diameter"] / 2.0
BEZ_RO = D["bezel_outer_diameter"] / 2.0
BEZ_RI = 0.072
WEB_HALF_DEPTH = 0.055 # V-web / pan block half depth (Y)
TILT_RANGE_DEG = 270.0
PAN_RANGE_DEG = 540.0
CLEARANCE = 0.005
MAT_NAMES = {
"housing": "M_L230SR_Housing_Black",
"trim": "M_L230SR_Trim_DarkMetal",
"display": "M_L230SR_Display",
"lens": "M_L230SR_Lens",
}
# ---------------------------------------------------------------------------
# small mesh-building toolkit (all geometry is accumulated per object)
# ---------------------------------------------------------------------------
class Part:
"""Geometry accumulator; each part keeps its material slot index."""
def __init__(self):
self.verts = []
self.faces = [] # (tuple(vertex indices), material index)
def add(self, verts, faces, mat):
base = len(self.verts)
self.verts.extend([tuple(v) for v in verts])
self.faces.extend([(tuple(i + base for i in f), mat) for f in faces])
def add_bm(self, bm, mat):
bm.verts.index_update()
verts = [v.co.copy() for v in bm.verts]
faces = [tuple(v.index for v in f.verts) for f in bm.faces]
self.add(verts, faces, mat)
bm.free()
def bm_box(size, center, bevel=0.0, segments=1):
bm = bmesh.new()
bmesh.ops.create_cube(bm, size=1.0)
for v in bm.verts:
v.co = Vector((v.co.x * size[0], v.co.y * size[1], v.co.z * size[2])) + Vector(center)
if bevel > 0:
bmesh.ops.bevel(bm, geom=list(bm.edges), offset=bevel, offset_type='OFFSET',
segments=segments, profile=0.5, affect='EDGES', clamp_overlap=True)
return bm
def bm_cylinder(radius, depth, center, axis='Z', segments=16, radius2=None, bevel=0.0):
bm = bmesh.new()
bmesh.ops.create_cone(bm, cap_ends=True, cap_tris=False, segments=segments,
radius1=radius, radius2=radius if radius2 is None else radius2, depth=depth)
rot = {
'Z': Matrix.Identity(4),
'X': Matrix.Rotation(math.radians(90), 4, 'Y'),
'Y': Matrix.Rotation(math.radians(-90), 4, 'X'),
}[axis]
bmesh.ops.transform(bm, matrix=Matrix.Translation(Vector(center)) @ rot, verts=bm.verts)
if bevel > 0:
bmesh.ops.bevel(bm, geom=list(bm.edges), offset=bevel, offset_type='OFFSET',
segments=1, profile=0.5, affect='EDGES', clamp_overlap=True)
return bm
def bm_extrude_polygon(poly2d, plane, depth_from, depth_to, bevel=0.0):
"""poly2d: CCW list of (u,v). plane 'XZ' (extrude along Y), 'YZ' (along X), 'XY' (along Z)."""
bm = bmesh.new()
def to3(u, v, w):
if plane == 'XZ':
return Vector((u, w, v))
if plane == 'YZ':
return Vector((w, u, v))
return Vector((u, v, w))
lo = [bm.verts.new(to3(u, v, depth_from)) for (u, v) in poly2d]
hi = [bm.verts.new(to3(u, v, depth_to)) for (u, v) in poly2d]
n = len(poly2d)
bm.faces.new(list(reversed(lo)))
bm.faces.new(hi)
for i in range(n):
j = (i + 1) % n
bm.faces.new((lo[i], lo[j], hi[j], hi[i]))
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
if bevel > 0:
bmesh.ops.bevel(bm, geom=list(bm.edges), offset=bevel, offset_type='OFFSET',
segments=1, profile=0.5, affect='EDGES', clamp_overlap=True)
return bm
def bm_loft_rects(rect_a, rect_b, za, zb, bevel=0.0):
"""Frustum between two axis-aligned rectangles (half-sizes) at heights za/zb (local Z)."""
bm = bmesh.new()
(ax, ay), (bx, by) = rect_a, rect_b
ra = [bm.verts.new(Vector(p)) for p in ((-ax, -ay, za), (ax, -ay, za), (ax, ay, za), (-ax, ay, za))]
rb = [bm.verts.new(Vector(p)) for p in ((-bx, -by, zb), (bx, -by, zb), (bx, by, zb), (-bx, by, zb))]
bm.faces.new(ra)
bm.faces.new(list(reversed(rb)))
for i in range(4):
j = (i + 1) % 4
bm.faces.new((ra[i], rb[i], rb[j], ra[j]))
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
if bevel > 0:
bmesh.ops.bevel(bm, geom=list(bm.edges), offset=bevel, offset_type='OFFSET',
segments=2, profile=0.5, affect='EDGES', clamp_overlap=True)
return bm
def bm_tube(r_out, r_in, z0, z1, segments=32):
"""Hollow cylinder along local Z (open bore)."""
bm = bmesh.new()
rings = []
for (r, z) in ((r_out, z0), (r_out, z1), (r_in, z1), (r_in, z0)):
ring = []
for k in range(segments):
t = 2 * math.pi * k / segments
ring.append(bm.verts.new((r * math.cos(t), r * math.sin(t), z)))
rings.append(ring)
for a in range(4):
b = (a + 1) % 4
for k in range(segments):
k2 = (k + 1) % segments
bm.faces.new((rings[a][k], rings[a][k2], rings[b][k2], rings[b][k]))
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
return bm
def bm_lens_dome(radius, sag, z0, rings=3, segments=32):
"""Shallow spherical-cap lens with planar UVs centred at (0.5, 0.5)."""
bm = bmesh.new()
center = bm.verts.new((0, 0, z0 + sag))
prev = None
ring_list = []
for r_i in range(1, rings + 1):
rr = radius * r_i / rings
zz = z0 + sag * (1 - (rr / radius) ** 2)
ring = [bm.verts.new((rr * math.cos(2 * math.pi * k / segments),
rr * math.sin(2 * math.pi * k / segments), zz)) for k in range(segments)]
ring_list.append(ring)
for k in range(segments):
k2 = (k + 1) % segments
bm.faces.new((center, ring_list[0][k], ring_list[0][k2]))
for a in range(len(ring_list) - 1):
for k in range(segments):
k2 = (k + 1) % segments
bm.faces.new((ring_list[a][k], ring_list[a + 1][k], ring_list[a + 1][k2], ring_list[a][k2]))
# flat back so the lens is a closed, thin solid
back = [bm.verts.new((v.co.x, v.co.y, z0 - 0.003)) for v in ring_list[-1]]
for k in range(segments):
k2 = (k + 1) % segments
bm.faces.new((ring_list[-1][k], back[k], back[k2], ring_list[-1][k2]))
bm.faces.new(list(reversed(back)))
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
return bm
def bm_handle(side):
"""Side carrying handle: an arched grip bar with two stand-offs (sign = +/-X side)."""
bm = bmesh.new()
x_in, x_out = BX - 0.004, D["overall_width_handles"] / 2.0
grip_x0, grip_x1 = x_out - 0.016, x_out
y_half, n = 0.098, 10
z_c, sag, zt = 0.052, 0.010, 0.022 # grip centre height, arch, grip height (scaled)
lo, hi = [], []
for i in range(n + 1):
y = -y_half + 2 * y_half * i / n
zc = z_c + sag * (1 - (y / y_half) ** 2)
lo.append((y, zc - zt / 2))
hi.append((y, zc + zt / 2))
rows = []
for (x) in (grip_x0, grip_x1):
rows.append([bm.verts.new((x, y, z)) for (y, z) in lo] + [bm.verts.new((x, y, z)) for (y, z) in reversed(hi)])
m = len(rows[0])
bm.faces.new(rows[0])
bm.faces.new(list(reversed(rows[1])))
for k in range(m):
k2 = (k + 1) % m
bm.faces.new((rows[0][k], rows[0][k2], rows[1][k2], rows[1][k]))
bmesh.ops.recalc_face_normals(bm, faces=bm.faces)
for y in (-y_half + 0.011, y_half - 0.011):
bm_join(bm, bm_box((grip_x0 - x_in + 0.002, 0.022, zt), ((x_in + grip_x0) / 2, y, z_c + zt * 0.15), bevel=0.002))
if side < 0:
bmesh.ops.scale(bm, vec=(-1, 1, 1), verts=bm.verts)
bmesh.ops.reverse_faces(bm, faces=bm.faces)
return bm
def bm_join(dst, src):
vmap = {}
for v in src.verts:
vmap[v] = dst.verts.new(v.co)
for f in src.faces:
dst.faces.new([vmap[v] for v in f.verts])
src.free()
def make_object(name, part, materials, location, parent=None):
me = bpy.data.meshes.new(name)
me.from_pydata([Vector(v) - Vector(location) for v in part.verts], [], [f for f, _ in part.faces])
for poly, (_, m) in zip(me.polygons, part.faces): # assign before validate() can drop polygons
poly.material_index = m
me.validate(clean_customdata=False)
for mat in materials:
me.materials.append(mat)
for p in me.polygons:
p.use_smooth = True
me.set_sharp_from_angle(angle=math.radians(35.0))
me.update()
ob = bpy.data.objects.new(name, me)
bpy.context.scene.collection.objects.link(ob)
if parent is not None:
ob.parent = parent
ob.matrix_parent_inverse = Matrix.Identity(4)
ob.location = Vector(location) - parent.matrix_world.translation
else:
ob.location = Vector(location)
bpy.context.view_layer.update()
return ob
def ensure_material(key, color, metallic=0.0, roughness=0.5, specular=0.5):
mat = bpy.data.materials.new(MAT_NAMES[key])
mat.use_nodes = True
bsdf = mat.node_tree.nodes.get("Principled BSDF")
bsdf.inputs["Base Color"].default_value = (*color, 1.0)
bsdf.inputs["Metallic"].default_value = metallic
bsdf.inputs["Roughness"].default_value = roughness
if "Emission Strength" in bsdf.inputs:
bsdf.inputs["Emission Strength"].default_value = 0.0
mat.diffuse_color = (*color, 1.0)
return mat
def planar_uv(ob, axis_u=0, axis_v=1, center=(0.0, 0.0), scale=1.0):
me = ob.data
uv = me.uv_layers.new(name="UVMap")
for loop in me.loops:
co = me.vertices[loop.vertex_index].co
uv.data[loop.index].uv = (0.5 + (co[axis_u] - center[0]) * scale, 0.5 + (co[axis_v] - center[1]) * scale)
def box_uv(ob, scale=2.0):
"""Cheap world-space box projection: enough for flat/tiling materials and lightmap-free use."""
me = ob.data
uv = me.uv_layers.new(name="UVMap")
for poly in me.polygons:
n = poly.normal
ax = max(range(3), key=lambda i: abs(n[i]))
u_i, v_i = [(1, 2), (0, 2), (0, 1)][ax]
for li in poly.loop_indices:
co = me.vertices[me.loops[li].vertex_index].co
uv.data[li].uv = (co[u_i] * scale, co[v_i] * scale)
# ---------------------------------------------------------------------------
# geometry
# ---------------------------------------------------------------------------
def build_head_part():
"""Head in head-local coordinates (origin on the tilt axis, optical axis +Z)."""
p = Part()
H, T = 0, 1
# main body
p.add_bm(bm_box((2 * HX, 2 * HY, 0.170), (0, 0, -0.015), bevel=0.016, segments=2), H)
# front face plate (229 mm) with chamfered corners -> octagon extruded along the optical axis
c = 0.034
octa = [(-HFX + c, -HY), (HFX - c, -HY), (HFX, -HY + c), (HFX, HY - c),
(HFX - c, HY), (-HFX + c, HY), (-HFX, HY - c), (-HFX, -HY + c)]
p.add_bm(bm_extrude_polygon(octa, 'XY', 0.058, 0.097, bevel=0.004), H)
# corner brackets of the front frame (scaled from front view)
for sx in (-1, 1):
for sy in (-1, 1):
bm = bm_box((0.050, 0.012, 0.030), (0, 0, 0))
bmesh.ops.rotate(bm, verts=bm.verts, cent=(0, 0, 0),
matrix=Matrix.Rotation(math.radians(-45 * sx * sy), 3, 'Z'))
bmesh.ops.translate(bm, verts=bm.verts, vec=(sx * (HFX - 0.030), sy * (HY - 0.030), 0.098))
p.add_bm(bm, T)
# round lens bezel (tube) and inner lip
p.add_bm(bm_tube(BEZ_RO, BEZ_RI, 0.095, A_FRONT, segments=32), H)
p.add_bm(bm_tube(BEZ_RI + 0.0005, LENS_R - 0.001, LENS_A - 0.006, LENS_A - 0.002, segments=32), T)
# rear: tapered housing towards the lamp end, ending at the documented 284.5 mm length
p.add_bm(bm_loft_rects((HX, HY), (0.074, 0.055), -0.098, A_REAR, bevel=0.008), H)
# rear cooling fins on the +/-Y faces of the taper (approximation of the serrated edge)
for i in range(5):
a = -0.108 - i * 0.010
t = (a - (-0.098)) / (A_REAR - (-0.098))
hy = HY + (0.055 - HY) * t
hx = HX + (0.074 - HX) * t
for sy in (-1, 1):
p.add_bm(bm_box((2 * hx - 0.030, 0.006, 0.003), (0, sy * (hy + 0.001), a)), T)
# louvred vent + label plate + screws on the -Y face (as drawn in the head-up front view)
p.add_bm(bm_box((0.078, 0.004, 0.070), (0, -HY - 0.0005, -0.108)), T)
for i in range(7):
p.add_bm(bm_box((0.072, 0.004, 0.003), (0, -HY - 0.003, -0.140 + i * 0.0095)), H)
p.add_bm(bm_box((0.070, 0.003, 0.030), (0, -HY - 0.001, -0.040), bevel=0.002), T)
for (x, a) in ((-0.055, 0.042), (0.055, 0.042), (-0.068, -0.090), (0.068, -0.090)):
p.add_bm(bm_cylinder(0.006, 0.004, (x, -HY - 0.001, a), axis='Y', segments=8), T)
# quarter-turn fasteners on the +Y cover
for x in (-0.060, 0.060):
p.add_bm(bm_cylinder(0.008, 0.004, (x, HY + 0.001, -0.070), axis='Y', segments=10), T)
# tilt hub covers (rotate with the head), ending 0.5 mm short of the arm faces
for sx in (-1, 1):
p.add_bm(bm_cylinder(0.040, 0.0065, (sx * (HX + 0.0028), 0, 0), axis='X', segments=24), T)
return p
def head_sample_points(head_part, spacing=0.002, max_div=40):
"""Dense surface samples (fan-triangulated faces, barycentric grid) in head-local space."""
V = np.array(head_part.verts)
pts = [V]
for (f, _) in head_part.faces:
for i in range(1, len(f) - 1):
A, B, C = V[f[0]], V[f[i]], V[f[i + 1]]
L = max(np.linalg.norm(B - A), np.linalg.norm(C - B), np.linalg.norm(A - C))
k = int(min(max_div, max(1, math.ceil(L / spacing))))
ii, jj = np.meshgrid(np.arange(k + 1), np.arange(k + 1), indexing="ij")
m = (ii + jj) <= k
u, v = ii[m] / k, jj[m] / k
pts.append(A + np.outer(u, B - A) + np.outer(v, C - A))
return np.vstack(pts)
def swept_floor(points, x_bins, y_half, tilt_deg=TILT_RANGE_DEG / 2, step=0.5):
"""Lowest world-z reached inside |y|<=y_half by head points falling in each |x| bin."""
floor = np.full(len(x_bins) - 1, np.inf)
ax = np.abs(points[:, 0])
yv, av = points[:, 1], points[:, 2]
tol = 0.003 # each bin also sees samples within +/-3 mm in x (sample spacing <= ~2-4 mm)
members = [(ax >= x_bins[b] - tol) & (ax <= x_bins[b + 1] + tol) for b in range(len(floor))]
for th in np.radians(np.arange(-tilt_deg, tilt_deg + 1e-6, step)):
y = yv * math.cos(th) - av * math.sin(th)
z = TZ + yv * math.sin(th) + av * math.cos(th)
z = np.where(np.abs(y) <= y_half, z, np.inf)
for b in range(len(floor)):
zb = z[members[b]]
if zb.size:
floor[b] = min(floor[b], zb.min())
return floor
def build_yoke_part(head_part):
p = Part()
H, T = 0, 1
# --- V-web / pan block: drawn V (manual front view) clipped to the head's swept envelope
bins = np.linspace(0.0, ARM_IN, 48)
floor = swept_floor(head_sample_points(head_part), bins, WEB_HALF_DEPTH + 0.004, step=1.0)
allowed = floor - CLEARANCE
# make the envelope monotone outward-safe and fill empty bins conservatively
allowed = np.where(np.isfinite(allowed), allowed, 0.30)
xs = (bins[:-1] + bins[1:]) / 2
def drawn(x):
if x <= 0.0425:
return 0.200
return 0.200 + (x - 0.0425) / (ARM_IN - 0.0425) * (D["head_underside_horizontal"] - 0.200)
top = []
for i, x in enumerate(xs):
lo_i, hi_i = max(0, i - 1), min(len(xs), i + 2) # neighbours: protect bin edges
top.append(min(drawn(x), allowed[lo_i:hi_i].min()))
# CCW outline in (x, z): bottom edge, right arm overlap, V top (right->left), left arm overlap
poly = [(-(ARM_IN + 0.004), YB), (ARM_IN + 0.004, YB)] + \
[(ARM_IN + 0.004, top[-1])] + [(x, z) for x, z in zip(reversed(xs), reversed(top))] + \
[(-x, z) for x, z in zip(xs, top)] + [(-(ARM_IN + 0.004), top[-1])]
p.add_bm(bm_extrude_polygon(poly, 'XZ', -WEB_HALF_DEPTH, WEB_HALF_DEPTH, bevel=0.003), H)
web_info = dict(block_top=float(min(top[:12])), v_top_at_arm=float(top[-1]),
drawn_v_top_at_arm=D["head_underside_horizontal"], drawn_block_top=0.200)
# front/back screw plate on the pan block (photo/drawing detail)
for sy in (-1, 1):
p.add_bm(bm_box((0.080, 0.003, 0.050), (0, sy * (WEB_HALF_DEPTH + 0.0012), YB + 0.030)), T)
# pan neck (rotates with the yoke) - slightly sunk into the base turntable ring
p.add_bm(bm_cylinder(0.036, 0.022, (0, 0, YB - 0.009), segments=20), T)
# --- arms: side profile = rectangle + semicircle concentric with the tilt axis
prof = [(-ARM_R, YB), (ARM_R, YB), (ARM_R, TZ)]
for k in range(1, 12):
t = math.pi * k / 12
prof.append((ARM_R * math.cos(t), TZ + ARM_R * math.sin(t)))
prof.append((-ARM_R, TZ))
for sx in (-1, 1):
x0, x1 = sorted((sx * ARM_IN, sx * ARM_OUT))
bm = bm_extrude_polygon(prof, 'YZ', x0, x1, bevel=0.005)
# chamfer the outer-bottom corner (front view silhouette)
p.add_bm(bm, H)
# raised (logo-free) cover plate on the outer face
plate = [(-0.030, YB + 0.040), (0.030, YB + 0.040), (0.040, TZ - 0.010)]
for k in range(1, 8):
t = math.pi * k / 8
plate.append((0.040 * math.cos(t), TZ - 0.010 + 0.040 * math.sin(t)))
plate.append((-0.040, TZ - 0.010))
xo = sx * ARM_OUT
p.add_bm(bm_extrude_polygon(plate, 'YZ', min(xo, xo + sx * 0.004), max(xo, xo + sx * 0.004), bevel=0.0015), H)
# vent slot rows near the top and bottom of the arm cover
for z in (YB + 0.020, TZ + 0.040):
for k in range(5):
y = -0.040 + k * 0.020
p.add_bm(bm_box((0.003, 0.012, 0.008), (sx * (ARM_OUT + 0.0008), y, z)), T)
return p, web_info
def build_base_part():
p = Part()
H, T, DSP = 0, 1, 2
# feet + mounting plate
for sx in (-1, 1):
for sy in (-1, 1):
p.add_bm(bm_box((0.045, 0.050, 0.021), (sx * 0.112, sy * 0.132, 0.0105), bevel=0.004), T)
p.add_bm(bm_box((0.130, 0.220, 0.010), (0, 0, 0.016), bevel=0.002), T)
# main housing + top tier + turntable ring
p.add_bm(bm_box((2 * BX, 2 * BY_BODY, 0.092), (0, 0, 0.020 + 0.046), bevel=0.014, segments=2), H)
p.add_bm(bm_box((0.270, 0.300, 0.016), (0, 0, D["base_height"] - 0.008), bevel=0.006, segments=2), H)
p.add_bm(bm_cylinder(0.055, 0.008, (0, 0, D["base_height"] + 0.004), segments=24), T)
# front control panel (-Y): frame, LCD, LEDs, buttons, corner screws
fy = -BY_BODY
p.add_bm(bm_box((0.236, 0.004, 0.062), (0, fy, 0.066), bevel=0.0015), T) # front at fy-0.002
p.add_bm(bm_box((0.040, 0.002, 0.026), (-0.004, fy - 0.0015, 0.068)), DSP) # LCD
for k in range(4):
p.add_bm(bm_box((0.003, 0.002, 0.003), (-0.034, fy - 0.0015, 0.059 + k * 0.006)), DSP)
for (x, z) in ((0.030, 0.068), (0.046, 0.068), (0.038, 0.076), (0.038, 0.060)):
p.add_bm(bm_cylinder(0.0035, 0.002, (x, fy - 0.0025, z), axis='Y', segments=8), T) # front at -0.1725
for x in (-0.132, 0.132):
for z in (0.045, 0.087):
p.add_bm(bm_cylinder(0.006, 0.002, (x, fy - 0.002, z), axis='Y', segments=8), T)
# side vents (+/-X): two brick-pattern grilles per side
for sx in (-1, 1):
for gy in (-0.085, 0.085):
for row in range(4):
for col in range(2):
off = 0.009 if row % 2 else 0.0
y = gy - 0.018 + col * 0.036 + off - 0.0045
z = 0.073 + row * 0.0085
p.add_bm(bm_box((0.002, 0.030, 0.0045), (sx * (BX + 0.0006), y, z)), T)
p.add_bm(bm_handle(sx), T)
# rear power-cable boot (+Y). The cable itself is not modelled.
p.add_bm(bm_cylinder(0.011, 0.020, (-0.100, BY_BODY + 0.009, 0.056), axis='Y', segments=12), T)
return p
# ---------------------------------------------------------------------------
# build / validate / export
# ---------------------------------------------------------------------------
def clean_scene():
bpy.ops.wm.read_factory_settings(use_empty=True)
sc = bpy.context.scene
sc.name = "L230SR_Fixture"
sc.unit_settings.system = 'METRIC'
sc.unit_settings.scale_length = 1.0
sc.unit_settings.length_unit = 'METERS'
def build():
clean_scene()
mats = {
"housing": ensure_material("housing", (0.018, 0.018, 0.020), 0.0, 0.62),
"trim": ensure_material("trim", (0.045, 0.046, 0.050), 0.55, 0.42),
"display": ensure_material("display", (0.010, 0.020, 0.060), 0.0, 0.15),
"lens": ensure_material("lens", (0.30, 0.32, 0.35), 0.0, 0.04), # neutral glass grey, no emission
}
head_local = build_head_part()
yoke_world, web_info = build_yoke_part(head_local)
base_world = build_base_part()
lens = Part()
lens.add_bm(bm_lens_dome(LENS_R, 0.007, 0.0, rings=3, segments=32), 0)
base = make_object("Base", base_world, [mats["housing"], mats["trim"], mats["display"]], (0, 0, 0))
yoke = make_object("Yoke", yoke_world, [mats["housing"], mats["trim"]], (0, 0, YB), parent=base)
# head part is head-local: shift to world before make_object subtracts the origin again
head_world = Part()
head_world.verts = [(x, y, z + TZ) for (x, y, z) in head_local.verts]
head_world.faces = head_local.faces
head = make_object("Head", head_world, [mats["housing"], mats["trim"]], (0, 0, TZ), parent=yoke)
lens_world = Part()
lens_world.verts = [(x, y, z + TZ + LENS_A) for (x, y, z) in lens.verts]
lens_world.faces = lens.faces
lens_ob = make_object("Lens", lens_world, [mats["lens"]], (0, 0, TZ + LENS_A), parent=head)
for ob in (base, yoke, head):
box_uv(ob)
planar_uv(lens_ob, 0, 1, (0.0, 0.0), 1.0 / (2 * LENS_R))
# documentation as custom properties (kept in .blend; not exported to FBX)
base["fixture"] = "Chauvet Professional Legend 230SR Beam"
base["units"] = "metres, +Z up, front (control panel) faces -Y"
yoke["pan_axis"] = "Yoke local +Z through Base origin"
yoke["pan_range_deg"] = PAN_RANGE_DEG
yoke["rest_pose"] = "DMX pan 50% (centre). Arms on +/-X."
head["tilt_axis"] = "Head local +X through (0, 0, 0.3735)"
head["tilt_range_deg"] = TILT_RANGE_DEG
head["rest_pose"] = "DMX tilt 50% (centre). Beam points +Z (straight up from the base)."
lens_ob["role"] = "emitter surface; colour/dimmer are driven at runtime (no baked light colour)"
return dict(base=base, yoke=yoke, head=head, lens=lens_ob, mats=mats, web=web_info)
def eval_tris(ob):
dg = bpy.context.evaluated_depsgraph_get()
me = ob.evaluated_get(dg).to_mesh()
me.calc_loop_triangles()
n = len(me.loop_triangles)
ob.evaluated_get(dg).to_mesh_clear()
return n
def world_bbox(objs):
pts = []
for ob in objs:
pts.extend([ob.matrix_world @ v.co for v in ob.data.vertices])
a = np.array(pts)
return a.min(axis=0), a.max(axis=0)
def bvh_for(objs):
from mathutils.bvhtree import BVHTree
verts, polys = [], []
for ob in objs:
off = len(verts)
verts.extend([ob.matrix_world @ v.co for v in ob.data.vertices])
polys.extend([[i + off for i in p.vertices] for p in ob.data.polygons])
return BVHTree.FromPolygons(verts, polys)
def validate(o):
base, yoke, head, lens = o["base"], o["yoke"], o["head"], o["lens"]
allobs = [base, yoke, head, lens]
rep = {}
lo, hi = world_bbox(allobs)
lo_nc, hi_nc = world_bbox(allobs) # cable boot included; recompute below without
rep["bbox_min"], rep["bbox_max"] = lo.tolist(), hi.tolist()
rep["size_xyz_m"] = (hi - lo).tolist()
# footprint/housing without the rear cable boot
bverts = np.array([base.matrix_world @ v.co for v in base.data.vertices])
rep["base_y_extent_without_cable_boot_m"] = [float(bverts[:, 1].min()),
float(bverts[bverts[:, 1] < BY_BODY + 0.001][:, 1].max())]
allv = np.vstack([np.array([ob.matrix_world @ v.co for v in ob.data.vertices]) for ob in allobs])
nb = allv[allv[:, 1] <= BY_BODY + 0.001]
rep["size_xyz_without_cable_boot_m"] = (nb.max(axis=0) - nb.min(axis=0)).tolist()
rep["triangles"] = {ob.name: eval_tris(ob) for ob in allobs}
rep["triangles_total"] = sum(rep["triangles"].values())
rep["materials"] = sorted({m.name for ob in allobs for m in ob.data.materials})
rep["material_count"] = len(rep["materials"])
rep["material_slots"] = {ob.name: [m.name for m in ob.data.materials] for ob in allobs}
rep["hierarchy"] = {ob.name: (ob.parent.name if ob.parent else None) for ob in allobs}
rep["origins_world"] = {ob.name: list(ob.matrix_world.translation) for ob in allobs}
rep["local_rot_scale_identity"] = {ob.name: (tuple(ob.rotation_euler) == (0, 0, 0) and tuple(ob.scale) == (1, 1, 1)) for ob in allobs}
rep["lights_in_file"] = [ob.name for ob in bpy.data.objects if ob.type == 'LIGHT']
rep["yoke_web"] = o["web"]
# articulation tests -----------------------------------------------------
tests = []
lens_rest = lens.matrix_world.translation.copy()
def lens_axis():
return (lens.matrix_world.to_3x3() @ Vector((0, 0, 1))).normalized()
yoke.rotation_euler = (0, 0, math.radians(90))
bpy.context.view_layer.update()
tests.append(dict(name="pan +90 only: lens stays on the pan axis, head origin stays on pan axis",
lens_pos=list(lens.matrix_world.translation), head_pos=list(head.matrix_world.translation),
ok=(lens.matrix_world.translation - lens_rest).length < 1e-6))
head.rotation_euler = (math.radians(90), 0, 0)
bpy.context.view_layer.update()
# with pan +90 (CCW from above) and tilt +90 about head local +X, optical axis should point along world +X? compute expected
exp_axis = (Matrix.Rotation(math.radians(90), 3, 'Z') @ Matrix.Rotation(math.radians(90), 3, 'X') @ Vector((0, 0, 1)))
exp_pos = Vector((0, 0, TZ)) + exp_axis * LENS_A
tests.append(dict(name="pan +90 then tilt +90: lens carried by yoke and head",
lens_pos=list(lens.matrix_world.translation), expected=list(exp_pos),
lens_axis=list(lens_axis()), expected_axis=list(exp_axis),
ok=(lens.matrix_world.translation - exp_pos).length < 1e-5 and (lens_axis() - exp_axis).length < 1e-5))
yoke.rotation_euler = (0, 0, 0)
head.rotation_euler = (math.radians(-135), 0, 0)
bpy.context.view_layer.update()
tests.append(dict(name="tilt -135 alone: yoke and base unaffected", yoke_rot=list(yoke.matrix_world.to_euler()),
lens_pos=list(lens.matrix_world.translation),
ok=abs(yoke.matrix_world.to_euler().z) < 1e-9 and abs(lens.matrix_world.translation.z - (TZ + LENS_A * math.cos(math.radians(-135)))) < 1e-5))
head.rotation_euler = (0, 0, 0)
bpy.context.view_layer.update()
# swept-collision audit: head vs yoke + base, full tilt range at several pan angles
static = bvh_for([base])
collisions = []
for pan in (0, 90, 180, 270):
yoke.rotation_euler = (0, 0, math.radians(pan))
for tilt in range(-135, 136, 3):
head.rotation_euler = (math.radians(tilt), 0, 0)
bpy.context.view_layer.update()
hb = bvh_for([head, lens])
yb = bvh_for([yoke])
if hb.overlap(yb) or hb.overlap(static):
collisions.append((pan, tilt))
yoke.rotation_euler = (0, 0, 0)
head.rotation_euler = (0, 0, 0)
bpy.context.view_layer.update()
tests.append(dict(name="no head/lens intersection with yoke or base over tilt -135..+135 (3 deg steps) at pan 0/90/180/270",
collisions=collisions[:20], ok=not collisions))
rep["articulation_tests"] = tests
rep["all_tests_ok"] = all(t["ok"] for t in tests)
return rep
def export_fbx(o, path):
bpy.ops.object.select_all(action='DESELECT')
for k in ("base", "yoke", "head", "lens"):
o[k].select_set(True)
bpy.context.view_layer.objects.active = o["base"]
bpy.ops.export_scene.fbx(
filepath=path, use_selection=True, object_types={'MESH'},
global_scale=1.0, apply_unit_scale=True, apply_scale_options='FBX_SCALE_ALL',
axis_forward='Y', axis_up='Z', bake_space_transform=False,
use_mesh_modifiers=True, mesh_smooth_type='FACE', use_tspace=False,
use_custom_props=False, add_leaf_bones=False, bake_anim=False,
path_mode='STRIP', embed_textures=False)
def main():
argv = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else []
args = dict(zip(argv[::2], argv[1::2]))
o = build()
rep = validate(o)
rep["dimensions_source"] = D
if "--out-fbx" in args:
export_fbx(o, args["--out-fbx"])
rep["fbx"] = args["--out-fbx"]
# embed this script in the .blend so the source stays self-describing
txt = bpy.data.texts.new("build_chauvet_legend_230sr_beam.py")
txt.from_string(open(__file__, encoding="utf-8").read())
if "--out-blend" in args:
bpy.ops.wm.save_as_mainfile(filepath=args["--out-blend"], compress=True)
rep["blend"] = args["--out-blend"]
if "--report" in args:
with open(args["--report"], "w", encoding="utf-8") as fh:
json.dump(rep, fh, indent=2, default=str)
print("L230SR_REPORT", json.dumps({k: rep[k] for k in ("size_xyz_m", "triangles_total", "material_count", "all_tests_ok")}))
for t in rep["articulation_tests"]:
print("TEST", t["ok"], t["name"], {k: v for k, v in t.items() if k not in ("name", "ok")})
print("WEB", rep["yoke_web"])
if __name__ == "__main__":
main()
@@ -0,0 +1,61 @@
import bpy, math, sys, os
from mathutils import Vector
argv = sys.argv[sys.argv.index("--") + 1:]
outdir = argv[0]
os.makedirs(outdir, exist_ok=True)
sc = bpy.context.scene
sc.render.engine = 'CYCLES'
sc.cycles.device = 'CPU'
sc.cycles.samples = 48
try:
sc.cycles.use_denoising = True
except Exception:
pass
sc.render.film_transparent = False
sc.view_settings.view_transform = 'Standard'
world = bpy.data.worlds.new("PreviewWorld"); sc.world = world
world.use_nodes = True
world.node_tree.nodes["Background"].inputs[0].default_value = (0.55, 0.57, 0.60, 1)
world.node_tree.nodes["Background"].inputs[1].default_value = 0.9
def add_light(name, loc, rot, energy, kind='AREA', size=1.0):
ld = bpy.data.lights.new(name, kind); ld.energy = energy
if kind == 'AREA': ld.size = size
ob = bpy.data.objects.new(name, ld); sc.collection.objects.link(ob)
ob.location = loc; ob.rotation_euler = [math.radians(a) for a in rot]
add_light("PV_Key", (1.2, -1.4, 1.6), (55, 0, 40), 220, size=1.2)
add_light("PV_Fill", (-1.4, -0.8, 0.9), (70, 0, -60), 90, size=1.5)
add_light("PV_Rim", (0.2, 1.5, 1.4), (-60, 0, 180), 120, size=1.0)
yoke, head = bpy.data.objects["Yoke"], bpy.data.objects["Head"]
cam_d = bpy.data.cameras.new("PV_Cam"); cam = bpy.data.objects.new("PV_Cam", cam_d); sc.collection.objects.link(cam); sc.camera = cam
def look(cam, loc, target):
cam.location = loc
d = Vector(target) - Vector(loc)
cam.rotation_euler = d.to_track_quat('-Z', 'Y').to_euler()
def shot(name, loc, target, ortho=None, pan=0, tilt=0, res=(1200, 1200)):
yoke.rotation_euler = (0, 0, math.radians(pan)); head.rotation_euler = (math.radians(tilt), 0, 0)
bpy.context.view_layer.update()
if ortho:
cam_d.type = 'ORTHO'; cam_d.ortho_scale = ortho
else:
cam_d.type = 'PERSP'; cam_d.lens = 70
look(cam, loc, target)
sc.render.resolution_x, sc.render.resolution_y = res
sc.render.filepath = os.path.join(outdir, name + ".png")
bpy.ops.render.render(write_still=True)
print("RENDERED", sc.render.filepath)
C = (0, 0, 0.25)
# matched-scale orthographic views: 0.6 m across 1200 px = 2 px/mm; floor at image row 1100
sc.render.resolution_x = 1200
def ortho_center(z_floor_px=1100, res=1200, scale=0.6):
# camera centre height so that z=0 lands on row z_floor_px
return (res / 2 - (res - z_floor_px)) / (res / scale) * -1 + 0 # metres above floor of image centre
zc = (1100 - 600) / 2000.0 # image centre is 0.25 m above the floor
shot("ortho_front_head_horizontal", (0, -3, zc), (0, 0, zc), ortho=0.6, tilt=90)
shot("ortho_side_right_head_horizontal", (3, 0, zc), (0, 0, zc), ortho=0.6, tilt=90)
shot("ortho_front_head_up", (0, -3, zc), (0, 0, zc), ortho=0.6, tilt=0)
shot("ortho_side_right_head_up", (3, 0, zc), (0, 0, zc), ortho=0.6, tilt=0)
shot("ortho_top_head_up", (0, 0, 3), (0, 0.0001, 0), ortho=0.6, tilt=0)
shot("persp_three_quarter_rest", (1.25, -1.45, 0.95), C, tilt=0)
shot("persp_three_quarter_pan30_tilt60", (1.25, -1.45, 0.95), C, pan=30, tilt=60)
shot("persp_rear_low_pan-40_tilt-110", (-1.2, 1.5, 0.45), C, pan=-40, tilt=-110)
@@ -0,0 +1,41 @@
"""Round-trip check: import the exported FBX into an empty Blender scene and compare hierarchy/pivots."""
import bpy, json, math, sys
from mathutils import Vector
argv = sys.argv[sys.argv.index("--") + 1:]
fbx, out = argv[0], argv[1]
bpy.ops.wm.read_factory_settings(use_empty=True)
bpy.ops.import_scene.fbx(filepath=fbx) # importer reads the axis/unit info written in the file
bpy.context.view_layer.update()
exp = {"Base": ((0, 0, 0), None), "Yoke": ((0, 0, 0.1352), "Base"),
"Head": ((0, 0, 0.3735), "Yoke"), "Lens": ((0, 0, 0.4855), "Head")}
rep = {"objects": {}, "ok": True}
for name, (pos, parent) in exp.items():
ob = bpy.data.objects.get(name)
if ob is None:
rep["objects"][name] = "MISSING"; rep["ok"] = False; continue
w = ob.matrix_world
rot = w.to_euler()
scl = w.to_scale()
d = (w.translation - Vector(pos)).length
ok = (d < 1e-4 and (ob.parent.name if ob.parent else None) == parent
and all(abs(a) < 1e-4 for a in rot) and all(abs(s - 1) < 1e-4 for s in scl))
rep["objects"][name] = dict(type=ob.type, parent=ob.parent.name if ob.parent else None,
world_origin=list(w.translation), world_rot_deg=[math.degrees(a) for a in rot],
world_scale=list(scl), origin_error_m=d, ok=ok,
materials=[m.name for m in ob.data.materials] if ob.type == 'MESH' else [])
rep["ok"] &= ok
pts = [ob.matrix_world @ v.co for ob in bpy.data.objects if ob.type == 'MESH' for v in ob.data.vertices]
mn = [min(p[i] for p in pts) for i in range(3)]; mx = [max(p[i] for p in pts) for i in range(3)]
rep["bbox_size_m"] = [mx[i] - mn[i] for i in range(3)]
rep["bbox_min"], rep["bbox_max"] = mn, mx
rep["non_mesh_objects"] = [o.name + ":" + o.type for o in bpy.data.objects if o.type != 'MESH']
# articulation after import: pan 90 then tilt 90 must carry the lens like in the source file
y, h, l = (bpy.data.objects[n] for n in ("Yoke", "Head", "Lens"))
y.rotation_euler.rotate_axis('Z', math.radians(90)); bpy.context.view_layer.update()
h.rotation_euler.rotate_axis('X', math.radians(90)); bpy.context.view_layer.update()
rep["lens_after_pan90_tilt90"] = list(l.matrix_world.translation)
rep["lens_after_ok"] = (l.matrix_world.translation - Vector((0.112, 0, 0.3735))).length < 1e-4
rep["ok"] &= rep["lens_after_ok"]
json.dump(rep, open(out, "w"), indent=2)
print("ROUNDTRIP_OK", rep["ok"], rep["bbox_size_m"], rep["non_mesh_objects"])
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 316b281b178e25abf810ea5ad9a8f5d9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,963 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2817394863574582452
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6401496552158929748}
- component: {fileID: 8794114796863600897}
m_Layer: 0
m_Name: Spot Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6401496552158929748
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2817394863574582452}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 980316889339352353}
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!108 &8794114796863600897
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2817394863574582452}
m_Enabled: 1
serializedVersion: 12
m_Type: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 10898.832
m_Range: 40
m_SpotAngle: 2.25
m_InnerSpotAngle: 1.2
m_CookieSize2D: {x: 10, y: 10}
m_Shadows:
m_Type: 0
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 2
m_AreaSize: {x: 0.5, y: 0.5}
m_BounceIntensity: 1
m_ColorTemperature: 8670
m_UseColorTemperature: 1
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ForceVisible: 0
m_ShadowRadius: 0.025
m_ShadowAngle: 0
m_LightUnit: 0
m_LuxAtDistance: 1
m_EnableSpotReflector: 1
--- !u!1 &3190061239546235159
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6272787834378888743}
- component: {fileID: 6775296199291538674}
- component: {fileID: 9022405064161183450}
m_Layer: 0
m_Name: Chauvet_Legend_230SR_Beam
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6272787834378888743
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190061239546235159}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4566028781948511866}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6775296199291538674
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190061239546235159}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31bcab4d8bfd39442bb872a3771943e3, type: 3}
m_Name:
m_EditorClassIdentifier:
maxIntensity: 300
dimmerCurve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &9022405064161183450
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3190061239546235159}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66e1bc8cca24d3b4ca0ba7e2343eaeab, type: 3}
m_Name:
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.DmxFixtureComponent
enableLensHalo: 0
lensHaloSourceRenderer: {fileID: 0}
lensHaloMaterial: {fileID: 0}
lensHaloSize: 1.55
universe: 0
startAddress: 1
fixture: {fileID: 11400000, guid: a6104042f671d226a8ae4c4c22b9369c, type: 2}
mode: 1
targetLight: {fileID: 8794114796863600897}
targetLights: []
panTransform: {fileID: 6591497882166048021}
tiltTransform: {fileID: 1228527502188718449}
beamRenderMode: 1
syncBeamColorToDmx: 1
syncBeamDimmerToDmx: 1
syncBeamGoboToDmx: 1
syncBeamGoboRotationToDmx: 1
syncBeamPrismToDmx: 1
syncBeamZoomToDmx: 1
overrideVlbHdIntensityMultiplier: 1
vlbHdIntensityMultiplier: 0.01
overrideVlbSdIntensityMultiplier: 1
vlbSdIntensityMultiplier: 0.01
overrideVlbHdrpExposureWeight: 1
vlbHdrpExposureWeight: 0
overrideVlbHdGoboCookieContribution: 1
vlbHdGoboCookieContribution: 1
syncPseudoBeamToDmx: 1
_beamRenderModeMigrated: 1
_beamSyncSettingsMigrated: 1
_vlbPipelineDefaultsInitialized: 1
beamRenderer: {fileID: 1218754695408455533}
extraPseudoBeamRenderers: []
syncBeamNoiseVolumeToBeam: 1
beamColorProperty: _DmxColor
beamDimmerProperty: _DmxDimmer
beamPrismEnabledProperty: _DmxPrismEnabled
beamPrismFacetCountProperty: _DmxPrismFacetCount
beamPrismSpreadProperty: _DmxPrismSpread
beamPrismRotationProperty: _DmxPrismRotation
beamPrismIntensityProperty: _DmxPrismIntensity
beamLengthProperty: _BeamLength
beamStartRadiusProperty: _BeamStartRadius
beamEndRadiusProperty: _BeamEndRadius
beamNoiseVolume: {fileID: 0}
beamNoiseVolumeEnabled: 0
beamNoiseVolumeStrength: 1
beamNoiseVolumeGoboScale: 1
beamNoiseVolumePrismRotationScale: 0
beamNoiseVolumeScale: 1
beamNoiseVolumeRadialScale: 4
beamNoiseVolumeLengthScale: 12
beamNoiseVolumeSpeed: 0.1
beamNoiseVolumeContrast: 1
beamNoiseVolumeOffset: {x: 0, y: 0, z: 0}
beamNoiseVolumeScrollSpace: 0
beamNoiseVolumeScrollAxis: 2
beamNoiseVolumeScrollReverse: 0
beamNoiseVolumeProperty: _BeamNoiseVolume
beamNoiseVolumeEnabledProperty: _BeamNoiseVolumeEnabled
beamNoiseVolumeStrengthProperty: _BeamNoiseVolumeStrength
beamNoiseVolumeScaleProperty: _BeamNoiseVolumeScale
beamNoiseVolumeRadialScaleProperty: _BeamNoiseVolumeRadialScale
beamNoiseVolumeLengthScaleProperty: _BeamNoiseVolumeLengthScale
beamNoiseVolumeSpeedProperty: _BeamNoiseVolumeSpeed
beamNoiseVolumeContrastProperty: _BeamNoiseVolumeContrast
beamNoiseVolumeOffsetProperty: _BeamNoiseVolumeOffset
beamNoiseVolumeScrollDirectionProperty: _BeamNoiseVolumeScrollDirection
beamDimmerScale: 1
beamDimmerFloor: 0
beamZoomRadiusScale: 1
beamZoomMinEndRadius: 0.01
beamZoomMaxEndRadius: 25
enableBeamSoftShell: 0
beamSoftShellRadiusScale: 1.35
beamSoftShellIntensity: 0.2
beamSoftShellEdgeSoftness: 0.9
beamSoftShellNoiseStrength: 0.25
lensRenderer: {fileID: 8219726869250953833}
extraLensRenderers: []
lensMaterialBindings:
- renderer: {fileID: 8219726869250953833}
materialSlot: 1
originalMaterial: {fileID: 2100000, guid: 26976361ba24f0d66840a49e28ab6cf5, type: 2}
goboLensMaterial: {fileID: 2100000, guid: c7f6a49b270d441d97b05a4054cfa8a6, type: 2}
syncLensToDmx: 1
syncLensColorToDmx: 1
syncLensDimmerToDmx: 1
lensColorProperty: _DmxColor
lensDimmerProperty: _DmxDimmer
lensDimmerScale: 1
lensApertureFeather: 0
syncLensGoboToDmx: 1
syncLensIrisToDmx: 1
syncLensGoboZoomToDmx: 1
lensGoboTextureProperty: _GoboTexture
lensGoboRotationProperty: _GoboRotationDeg
lensGoboEnabledProperty: _GoboEnabled
lensGoboRotationDirection: 0
lensGoboShakePositionDirection: 0
lensGoboShakeRotationDirection: 0
lensPrismGoboMode: 1
legacyUseDedicatedGoboLensShader: 0
goboLensEmission: 2
goboLensScale: 1
goboLensZoomNarrowScale: 0.5
goboLensZoomWideScale: 1
goboLensBlur: 0
goboLensHorizontalOffset: 0
goboLensVerticalOffset: 0
goboLensHotspotStrength: 0.35
goboWheel: {fileID: 11400000, guid: a5bb69b508f95a067926f9061aa9ecf7, type: 2}
colorWheel: {fileID: 11400000, guid: 21160515a4abe5cfeb1073a64a79ac29, type: 2}
syncLightCookieToGobo: 1
maxGoboRotateDegPerSec: 360
enableGoboShake: 1
syncGoboRotationToCookieTransform: 1
goboCookieRollTransform: {fileID: 0}
goboCookieRollAxis: {x: 0, y: 0, z: 1}
goboCookieRollOffsetDeg: 0
beamGoboTextureProperty: _GoboTexture
beamGoboRotationProperty: _GoboRotationDeg
beamGoboEnabledProperty: _GoboEnabled
syncZoomToLight: 0
minOuterSpotAngle: 2.25
maxOuterSpotAngle: 2.25
invertZoom: 0
zoomInnerSpotPercent: 80
prismProfile: {fileID: 11400000, guid: f0b030254971ec82082d51a09a11b7a8, type: 2}
enablePrism: 1
prismDrawMode: 2
prismRenderMode: 1
projectionOnlyPrimaryIntensityScale: 0.65
disableAuxiliaryVolumetricInProjectionOnly: 1
auxiliaryCookieRotationMode: 0
maxPrismRotateDegPerSec: 360
prismCompositeCookieSize: 512
prismCompositeRotationStepDeg: 1
maxPrismCompositeFacets: 8
maxPrismAuxiliaryFacets: 8
auxiliarySpreadMultiplierDeg: 10
auxiliaryIntensityScale: 1
auxiliaryVolumetricIntensityScale: 1
prismBrightnessDistribution: 0
prismGoboSpacingMode: 0
manualPrismGoboSpacingScale: 1
prismGoboScaleVlb: 1
auxiliaryLightShadows: 0
prismCookieShader: {fileID: 0}
lightResponseMode: 0
halogenSourceRiseTime: 0.06
halogenSourceFallTime: 0.1
halogenBeamOnDelay: 0.04
halogenBeamOffDelay: 0.04
halogenBeamRiseTime: 0.06
halogenBeamFallTime: 0.08
panRangeDeg: 540
tiltRangeDeg: 270
pipelineMode: 0
driverOverride: {fileID: 0}
autoAddDriverIfMissing: 1
genericMaxIntensity: 300
hdrpMaxIntensity: 9870
overrideDriverMaxIntensity: 1
panAxis: 1
tiltAxis: 3
panInvert: 0
tiltInvert: 0
panOffsetDeg: 0
tiltOffsetDeg: 0
panTiltSmoothing: 12
enableContinuousPanTiltUpdate: 1
applyImmediateInEditMode: 1
panTiltSpeedMinDegPerSec: 30
panTiltSpeedMaxDegPerSec: 720
resetTriggerThreshold: 250
autoResolveOnValidate: 1
monitorEnabled: 1
monitorCh1: 1
monitorCh2: 2
monitorCh3: 3
monitorCh4: 4
monitorCh5: 5
monitorIncludeResolvedFunctions: 1
monitorExtraRelativeChannels:
ch1: 0
ch2: 0
ch3: 0
ch4: 0
ch5: 0
monitorItems:
- useElementSchema: 1
function: 0
label: Pan1.Position.Coarse
attribute: 19
instance: 1
role: 2
byteRole: 1
relativeCh: 1
absoluteCh: 1
value: 0
- useElementSchema: 1
function: 0
label: Pan1.Position.Fine
attribute: 19
instance: 1
role: 2
byteRole: 2
relativeCh: 2
absoluteCh: 2
value: 0
- useElementSchema: 1
function: 0
label: Tilt1.Position.Coarse
attribute: 20
instance: 1
role: 2
byteRole: 1
relativeCh: 3
absoluteCh: 3
value: 0
- useElementSchema: 1
function: 0
label: Tilt1.Position.Fine
attribute: 20
instance: 1
role: 2
byteRole: 2
relativeCh: 4
absoluteCh: 4
value: 0
- useElementSchema: 1
function: 0
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeCh: 5
absoluteCh: 5
value: 0
- useElementSchema: 1
function: 0
label: Dimmer1.Value.Coarse
attribute: 1
instance: 1
role: 0
byteRole: 1
relativeCh: 6
absoluteCh: 6
value: 0
- useElementSchema: 1
function: 0
label: Dimmer1.Value.Fine
attribute: 1
instance: 1
role: 0
byteRole: 2
relativeCh: 7
absoluteCh: 7
value: 0
- useElementSchema: 1
function: 0
label: Strobe1.Value.Single
attribute: 2
instance: 1
role: 0
byteRole: 0
relativeCh: 8
absoluteCh: 8
value: 0
- useElementSchema: 1
function: 0
label: ColorWheel1.SelectMode.Single
attribute: 11
instance: 1
role: 1
byteRole: 0
relativeCh: 9
absoluteCh: 9
value: 0
- useElementSchema: 1
function: 0
label: GoboWheel1.SelectMode.Single
attribute: 12
instance: 1
role: 1
byteRole: 0
relativeCh: 10
absoluteCh: 10
value: 0
- useElementSchema: 1
function: 0
label: Prism1.SelectMode.Single
attribute: 14
instance: 1
role: 1
byteRole: 0
relativeCh: 11
absoluteCh: 11
value: 0
- useElementSchema: 1
function: 0
label: Prism1.PositionOrRotation.Single
attribute: 14
instance: 1
role: 4
byteRole: 0
relativeCh: 12
absoluteCh: 12
value: 0
- useElementSchema: 1
function: 0
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeCh: 13
absoluteCh: 13
value: 0
- useElementSchema: 1
function: 0
label: Focus1.Value.Single
attribute: 18
instance: 1
role: 0
byteRole: 0
relativeCh: 14
absoluteCh: 14
value: 0
- useElementSchema: 1
function: 0
label: Frost1.Value.Single
attribute: 15
instance: 1
role: 0
byteRole: 0
relativeCh: 15
absoluteCh: 15
value: 0
- useElementSchema: 1
function: 0
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeCh: 16
absoluteCh: 16
value: 0
- useElementSchema: 1
function: 0
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeCh: 17
absoluteCh: 17
value: 0
- useElementSchema: 1
function: 0
label: Control1.Control.Single
attribute: 23
instance: 1
role: 7
byteRole: 0
relativeCh: 18
absoluteCh: 18
value: 0
enablePeriodicLog: 0
logIntervalSec: 1
logOnlyWhenDataArrived: 1
includeHeaderInLog: 1
_activeProfileLabel: Chauvet Legend 230SR Beam (Rev User Manual Rev. 5 (Apr 2015))
_activeModeLabel: Mode 2 (18ch)
_resolvedItems:
- function: 0
useElementSchema: 1
label: Pan1.Position.Coarse
attribute: 19
instance: 1
role: 2
byteRole: 1
relativeChannel: 1
absoluteChannel: 1
- function: 0
useElementSchema: 1
label: Pan1.Position.Fine
attribute: 19
instance: 1
role: 2
byteRole: 2
relativeChannel: 2
absoluteChannel: 2
- function: 0
useElementSchema: 1
label: Tilt1.Position.Coarse
attribute: 20
instance: 1
role: 2
byteRole: 1
relativeChannel: 3
absoluteChannel: 3
- function: 0
useElementSchema: 1
label: Tilt1.Position.Fine
attribute: 20
instance: 1
role: 2
byteRole: 2
relativeChannel: 4
absoluteChannel: 4
- function: 0
useElementSchema: 1
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeChannel: 5
absoluteChannel: 5
- function: 0
useElementSchema: 1
label: Dimmer1.Value.Coarse
attribute: 1
instance: 1
role: 0
byteRole: 1
relativeChannel: 6
absoluteChannel: 6
- function: 0
useElementSchema: 1
label: Dimmer1.Value.Fine
attribute: 1
instance: 1
role: 0
byteRole: 2
relativeChannel: 7
absoluteChannel: 7
- function: 0
useElementSchema: 1
label: Strobe1.Value.Single
attribute: 2
instance: 1
role: 0
byteRole: 0
relativeChannel: 8
absoluteChannel: 8
- function: 0
useElementSchema: 1
label: ColorWheel1.SelectMode.Single
attribute: 11
instance: 1
role: 1
byteRole: 0
relativeChannel: 9
absoluteChannel: 9
- function: 0
useElementSchema: 1
label: GoboWheel1.SelectMode.Single
attribute: 12
instance: 1
role: 1
byteRole: 0
relativeChannel: 10
absoluteChannel: 10
- function: 0
useElementSchema: 1
label: Prism1.SelectMode.Single
attribute: 14
instance: 1
role: 1
byteRole: 0
relativeChannel: 11
absoluteChannel: 11
- function: 0
useElementSchema: 1
label: Prism1.PositionOrRotation.Single
attribute: 14
instance: 1
role: 4
byteRole: 0
relativeChannel: 12
absoluteChannel: 12
- function: 0
useElementSchema: 1
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeChannel: 13
absoluteChannel: 13
- function: 0
useElementSchema: 1
label: Focus1.Value.Single
attribute: 18
instance: 1
role: 0
byteRole: 0
relativeChannel: 14
absoluteChannel: 14
- function: 0
useElementSchema: 1
label: Frost1.Value.Single
attribute: 15
instance: 1
role: 0
byteRole: 0
relativeChannel: 15
absoluteChannel: 15
- function: 0
useElementSchema: 1
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeChannel: 16
absoluteChannel: 16
- function: 0
useElementSchema: 1
label: NoFeature1.Value.Single
attribute: 0
instance: 1
role: 0
byteRole: 0
relativeChannel: 17
absoluteChannel: 17
- function: 0
useElementSchema: 1
label: Control1.Control.Single
attribute: 23
instance: 1
role: 7
byteRole: 0
relativeChannel: 18
absoluteChannel: 18
syncFocusToDmx: 1
focusProfile: {fileID: 0}
focusInstance: 1
focusControlMode: 0
overrideFocusControlMode: 0
focusReferenceDistanceMeters: 10
focusTarget: {fileID: 0}
autoFocusRaycastMaxDistanceMeters: 100
autoFocusRaycastLayers:
serializedVersion: 2
m_Bits: 4294967295
autoFocusDistanceDeadbandMeters: 0.01
syncFrostToDmx: 1
frostProfile: {fileID: 0}
syncIrisToDmx: 1
irisProfile: {fileID: 0}
irisInstance: 1
syncBeamShutterStrobeToDmx: 1
syncLensShutterStrobeToDmx: 1
shutterStrobePreviewMode: 2
shutterStrobeRandomSeed: 0
--- !u!1 &4819773248568572119
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4277714243850893199}
- component: {fileID: 2005829449351146092}
- component: {fileID: 1218754695408455533}
- component: {fileID: 1932024459258422269}
m_Layer: 0
m_Name: PseudoBeam
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4277714243850893199
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4819773248568572119}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 980316889339352353}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &2005829449351146092
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4819773248568572119}
m_Mesh: {fileID: 0}
--- !u!23 &1218754695408455533
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4819773248568572119}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: a38ab1dc7e8043a89c962c3d48a65072, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &1932024459258422269
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4819773248568572119}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b69a7c420d4a4f60a42d9fd93d9ee1f7, type: 3}
m_Name:
m_EditorClassIdentifier:
length: 20
startRadius: 0.06
endRadius: 0.45274958
segments: 32
capStart: 0
capEnd: 0
generateOnAwake: 1
rebuildInEditMode: 1
assignMaterialOnRebuild: 1
material: {fileID: 2100000, guid: a38ab1dc7e8043a89c962c3d48a65072, type: 2}
--- !u!1 &6148780931304460147
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 980316889339352353}
m_Layer: 0
m_Name: BeamOrigin
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &980316889339352353
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6148780931304460147}
serializedVersion: 2
m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 0.125, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6401496552158929748}
- {fileID: 4277714243850893199}
m_Father: {fileID: 1228527502188718449}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &4095869385095070097
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 6272787834378888743}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -3835618237822626824, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_CastShadows
value: 0
objectReference: {fileID: 0}
- target: {fileID: -3835618237822626824, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_Materials.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: -3835618237822626824, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: 'm_Materials.Array.data[1]'
value:
objectReference: {fileID: 2100000, guid: c7f6a49b270d441d97b05a4054cfa8a6, type: 2}
- target: {fileID: 919132149155446097, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
propertyPath: m_Name
value: Model
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: -6207111748655453984, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
insertIndex: -1
addedObject: {fileID: 980316889339352353}
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
--- !u!4 &1228527502188718449 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -6207111748655453984, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
m_PrefabInstance: {fileID: 4095869385095070097}
m_PrefabAsset: {fileID: 0}
--- !u!4 &4566028781948511866 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
m_PrefabInstance: {fileID: 4095869385095070097}
m_PrefabAsset: {fileID: 0}
--- !u!4 &6591497882166048021 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -2040473782765587324, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
m_PrefabInstance: {fileID: 4095869385095070097}
m_PrefabAsset: {fileID: 0}
--- !u!23 &8219726869250953833 stripped
MeshRenderer:
m_CorrespondingSourceObject: {fileID: -3835618237822626824, guid: 79a0797c1cb950729a55e4d61fede3ec, type: 3}
m_PrefabInstance: {fileID: 4095869385095070097}
m_PrefabAsset: {fileID: 0}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: adb2184b5814c1c50acd889626d09973
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b0589c93323f5f41b8a2281c48b58e0a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,379 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 85458bea1a664067851387ca8e03b73b, type: 3}
m_Name: L230SR_ColorWheel
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.ColorWheelProfile
use16BitRanges: 0
ranges:
- name: Open
dmxMin: 0
dmxMax: 4
type: 0
colorA: {r: 1, g: 1, b: 1, a: 1}
colorB: {r: 1, g: 1, b: 1, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 1
dmxMin: 5
dmxMax: 8
type: 1
colorA: {r: 0.851, g: 0.149, b: 0.11, a: 1}
colorB: {r: 0.851, g: 0.149, b: 0.11, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 2
dmxMin: 9
dmxMax: 12
type: 1
colorA: {r: 0.91, g: 0.471, b: 0.102, a: 1}
colorB: {r: 0.91, g: 0.471, b: 0.102, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 3
dmxMin: 13
dmxMax: 16
type: 1
colorA: {r: 0.231, g: 0.702, b: 0.761, a: 1}
colorB: {r: 0.231, g: 0.702, b: 0.761, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 4
dmxMin: 17
dmxMax: 20
type: 1
colorA: {r: 0, g: 0.569, b: 0.251, a: 1}
colorB: {r: 0, g: 0.569, b: 0.251, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 5
dmxMin: 21
dmxMax: 24
type: 1
colorA: {r: 0.729, g: 0.859, b: 0.49, a: 1}
colorB: {r: 0.729, g: 0.859, b: 0.49, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 6
dmxMin: 25
dmxMax: 28
type: 1
colorA: {r: 0.561, g: 0.522, b: 0.722, a: 1}
colorB: {r: 0.561, g: 0.522, b: 0.722, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 7
dmxMin: 29
dmxMax: 32
type: 1
colorA: {r: 0.922, g: 0.471, b: 0.651, a: 1}
colorB: {r: 0.922, g: 0.471, b: 0.651, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 8
dmxMin: 33
dmxMax: 36
type: 1
colorA: {r: 1, g: 0.988, b: 0.788, a: 1}
colorB: {r: 1, g: 0.988, b: 0.788, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 9
dmxMin: 37
dmxMax: 40
type: 1
colorA: {r: 0.871, g: 0.071, b: 0.478, a: 1}
colorB: {r: 0.871, g: 0.071, b: 0.478, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 10
dmxMin: 41
dmxMax: 44
type: 1
colorA: {r: 0, g: 0.49, b: 0.761, a: 1}
colorB: {r: 0, g: 0.49, b: 0.761, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 11
dmxMin: 45
dmxMax: 48
type: 1
colorA: {r: 1, g: 0.98, b: 0.451, a: 1}
colorB: {r: 1, g: 0.98, b: 0.451, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 12
dmxMin: 49
dmxMax: 52
type: 1
colorA: {r: 1, g: 0.98, b: 0.62, a: 1}
colorB: {r: 1, g: 0.98, b: 0.62, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 13
dmxMin: 53
dmxMax: 56
type: 1
colorA: {r: 0.851, g: 0.929, b: 0.878, a: 1}
colorB: {r: 0.851, g: 0.929, b: 0.878, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Color 14
dmxMin: 57
dmxMax: 60
type: 1
colorA: {r: 0.322, g: 0.102, b: 0.451, a: 1}
colorB: {r: 0.322, g: 0.102, b: 0.451, a: 1}
splitFraction: 0.5
includeInSpin: 1
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 0-1 (approx.)
dmxMin: 61
dmxMax: 64
type: 3
colorA: {r: 1, g: 1, b: 1, a: 1}
colorB: {r: 0.851, g: 0.149, b: 0.11, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 1-2 (approx.)
dmxMin: 65
dmxMax: 68
type: 3
colorA: {r: 0.851, g: 0.149, b: 0.11, a: 1}
colorB: {r: 0.91, g: 0.471, b: 0.102, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 2-3 (approx.)
dmxMin: 69
dmxMax: 73
type: 3
colorA: {r: 0.91, g: 0.471, b: 0.102, a: 1}
colorB: {r: 0.231, g: 0.702, b: 0.761, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 3-4 (approx.)
dmxMin: 74
dmxMax: 77
type: 3
colorA: {r: 0.231, g: 0.702, b: 0.761, a: 1}
colorB: {r: 0, g: 0.569, b: 0.251, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 4-5 (approx.)
dmxMin: 78
dmxMax: 82
type: 3
colorA: {r: 0, g: 0.569, b: 0.251, a: 1}
colorB: {r: 0.729, g: 0.859, b: 0.49, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 5-6 (approx.)
dmxMin: 83
dmxMax: 86
type: 3
colorA: {r: 0.729, g: 0.859, b: 0.49, a: 1}
colorB: {r: 0.561, g: 0.522, b: 0.722, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 6-7 (approx.)
dmxMin: 87
dmxMax: 91
type: 3
colorA: {r: 0.561, g: 0.522, b: 0.722, a: 1}
colorB: {r: 0.922, g: 0.471, b: 0.651, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 7-8 (approx.)
dmxMin: 92
dmxMax: 95
type: 3
colorA: {r: 0.922, g: 0.471, b: 0.651, a: 1}
colorB: {r: 1, g: 0.988, b: 0.788, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 8-9 (approx.)
dmxMin: 96
dmxMax: 100
type: 3
colorA: {r: 1, g: 0.988, b: 0.788, a: 1}
colorB: {r: 0.871, g: 0.071, b: 0.478, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 9-10 (approx.)
dmxMin: 101
dmxMax: 104
type: 3
colorA: {r: 0.871, g: 0.071, b: 0.478, a: 1}
colorB: {r: 0, g: 0.49, b: 0.761, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 10-11 (approx.)
dmxMin: 105
dmxMax: 109
type: 3
colorA: {r: 0, g: 0.49, b: 0.761, a: 1}
colorB: {r: 1, g: 0.98, b: 0.451, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 11-12 (approx.)
dmxMin: 110
dmxMax: 113
type: 3
colorA: {r: 1, g: 0.98, b: 0.451, a: 1}
colorB: {r: 1, g: 0.98, b: 0.62, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 12-13 (approx.)
dmxMin: 114
dmxMax: 118
type: 3
colorA: {r: 1, g: 0.98, b: 0.62, a: 1}
colorB: {r: 0.851, g: 0.929, b: 0.878, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 13-14 (approx.)
dmxMin: 119
dmxMax: 122
type: 3
colorA: {r: 0.851, g: 0.929, b: 0.878, a: 1}
colorB: {r: 0.322, g: 0.102, b: 0.451, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: Index/split 14-15 (approx.)
dmxMin: 123
dmxMax: 127
type: 3
colorA: {r: 0.322, g: 0.102, b: 0.451, a: 1}
colorB: {r: 1, g: 1, b: 1, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: CW rotation fast->slow (speed est.)
dmxMin: 128
dmxMax: 189
type: 4
colorA: {r: 1, g: 1, b: 1, a: 1}
colorB: {r: 1, g: 1, b: 1, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 1.5
cyclesPerSecondAtMax: 0.08
- name: Stop
dmxMin: 190
dmxMax: 193
type: 7
colorA: {r: 1, g: 1, b: 1, a: 1}
colorB: {r: 1, g: 1, b: 1, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.2
cyclesPerSecondAtMax: 2
- name: CCW rotation slow->fast (speed est.)
dmxMin: 194
dmxMax: 255
type: 5
colorA: {r: 1, g: 1, b: 1, a: 1}
colorB: {r: 1, g: 1, b: 1, a: 1}
splitFraction: 0.5
includeInSpin: 0
neutralTransmission: 1
cyclesPerSecondAtMin: 0.08
cyclesPerSecondAtMax: 1.5
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 21160515a4abe5cfeb1073a64a79ac29
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,899 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1d7931bb03141c24a862d747383aae68, type: 3}
m_Name: L230SR_FixtureType
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.FixtureType
irisProfile: {fileID: 0}
focusProfile: {fileID: 11400000, guid: bf250eaa2ceb8bcf48082611f0914360, type: 2}
frostProfile: {fileID: 11400000, guid: 66785019f931abb39a557868a2ad50ae, type: 2}
prismProfile: {fileID: 11400000, guid: f0b030254971ec82082d51a09a11b7a8, type: 2}
colorMixProfile: {fileID: 0}
manufacturer: Chauvet Professional
model: Legend 230SR Beam
revision: User Manual Rev. 5 (Apr 2015)
displayName: Chauvet Legend 230SR Beam
modes:
- modeName: Mode 1 (15ch)
channelCount: 15
channels: []
elements:
- attribute: 19
instance: 1
role: 2
byteRole: 1
ranges: []
- attribute: 19
instance: 1
role: 2
byteRole: 2
ranges: []
- attribute: 20
instance: 1
role: 2
byteRole: 1
ranges: []
- attribute: 20
instance: 1
role: 2
byteRole: 2
ranges: []
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 1
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 2
instance: 1
role: 0
byteRole: 0
ranges:
- name: No function (per manual)
dmxMin: 0
dmxMax: 7
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Open
dmxMin: 8
dmxMax: 15
type: 2
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 3
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Strobe slow->fast (1-20 Hz; max from spec)
dmxMin: 16
dmxMax: 131
type: 23
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.3
shutterFlashDurationSeconds: 0
- name: Fast close / slow open (rate est.)
dmxMin: 132
dmxMax: 167
type: 24
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Slow close / fast open (rate est.)
dmxMin: 168
dmxMax: 203
type: 25
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pulse slow->fast (rate est.)
dmxMin: 204
dmxMax: 239
type: 11
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Random strobe (rate est.)
dmxMin: 240
dmxMax: 247
type: 26
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 4
shutterFrequencyToHz: 12
shutterDutyCycle: 0.3
shutterFlashDurationSeconds: 0
- name: Open
dmxMin: 248
dmxMax: 255
type: 2
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 3
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 11
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 12
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 14
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 14
instance: 1
role: 4
byteRole: 0
ranges:
- name: Index
dmxMin: 0
dmxMax: 127
type: 5
activationHoldSeconds: 0
mappingContext: 6
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: CW rotation fast->slow
dmxMin: 128
dmxMax: 189
type: 6
activationHoldSeconds: 0
mappingContext: 5
mappingPreset: 1
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Stop
dmxMin: 190
dmxMax: 193
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: CCW rotation slow->fast
dmxMin: 194
dmxMax: 255
type: 7
activationHoldSeconds: 0
mappingContext: 5
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 18
instance: 1
role: 0
byteRole: 0
ranges:
- name: Focus 0-100%
dmxMin: 0
dmxMax: 255
type: 0
activationHoldSeconds: 0
mappingContext: 2
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 15
instance: 1
role: 0
byteRole: 0
ranges:
- name: Frost 0-100%
dmxMin: 0
dmxMax: 255
type: 0
activationHoldSeconds: 0
mappingContext: 4
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 23
instance: 1
role: 7
byteRole: 0
ranges:
- name: No function
dmxMin: 0
dmxMax: 29
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Dimmer conventional / linear mode (setting, not simulated)
dmxMin: 30
dmxMax: 49
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pan/tilt fast / normal mode (setting, not simulated)
dmxMin: 50
dmxMax: 69
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Blackout-on-move / colour / gobo change settings (not simulated)
dmxMin: 70
dmxMax: 129
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Lamp on
dmxMin: 130
dmxMax: 139
type: 15
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pan/tilt reset
dmxMin: 140
dmxMax: 149
type: 14
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Colour / gobo / shutter+prism reset (not simulated)
dmxMin: 150
dmxMax: 189
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Frost/focus/zoom reset (not simulated)
dmxMin: 190
dmxMax: 199
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Reset all
dmxMin: 200
dmxMax: 209
type: 14
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: All movement blackout enable/disable (not simulated)
dmxMin: 210
dmxMax: 229
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Lamp off
dmxMin: 230
dmxMax: 239
type: 16
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: No function
dmxMin: 240
dmxMax: 255
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
wheelBindings:
- attribute: 11
instance: 1
goboWheel: {fileID: 0}
colorWheel: {fileID: 11400000, guid: 21160515a4abe5cfeb1073a64a79ac29, type: 2}
- attribute: 12
instance: 1
goboWheel: {fileID: 11400000, guid: a5bb69b508f95a067926f9061aa9ecf7, type: 2}
colorWheel: {fileID: 0}
frostBindings:
- instance: 1
profile: {fileID: 11400000, guid: 66785019f931abb39a557868a2ad50ae, type: 2}
panTiltSpeedProfiles: []
- modeName: Mode 2 (18ch)
channelCount: 18
channels: []
elements:
- attribute: 19
instance: 1
role: 2
byteRole: 1
ranges: []
- attribute: 19
instance: 1
role: 2
byteRole: 2
ranges: []
- attribute: 20
instance: 1
role: 2
byteRole: 1
ranges: []
- attribute: 20
instance: 1
role: 2
byteRole: 2
ranges: []
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 1
instance: 1
role: 0
byteRole: 1
ranges: []
- attribute: 1
instance: 1
role: 0
byteRole: 2
ranges: []
- attribute: 2
instance: 1
role: 0
byteRole: 0
ranges:
- name: No function (per manual)
dmxMin: 0
dmxMax: 7
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Open
dmxMin: 8
dmxMax: 15
type: 2
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 3
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Strobe slow->fast (1-20 Hz; max from spec)
dmxMin: 16
dmxMax: 131
type: 23
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.3
shutterFlashDurationSeconds: 0
- name: Fast close / slow open (rate est.)
dmxMin: 132
dmxMax: 167
type: 24
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Slow close / fast open (rate est.)
dmxMin: 168
dmxMax: 203
type: 25
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pulse slow->fast (rate est.)
dmxMin: 204
dmxMax: 239
type: 11
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 0.5
shutterFrequencyToHz: 6
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Random strobe (rate est.)
dmxMin: 240
dmxMax: 247
type: 26
activationHoldSeconds: 0
mappingContext: 7
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 4
shutterFrequencyToHz: 12
shutterDutyCycle: 0.3
shutterFlashDurationSeconds: 0
- name: Open
dmxMin: 248
dmxMax: 255
type: 2
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 3
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 11
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 12
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 14
instance: 1
role: 1
byteRole: 0
ranges: []
- attribute: 14
instance: 1
role: 4
byteRole: 0
ranges:
- name: Index
dmxMin: 0
dmxMax: 127
type: 5
activationHoldSeconds: 0
mappingContext: 6
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: CW rotation fast->slow
dmxMin: 128
dmxMax: 189
type: 6
activationHoldSeconds: 0
mappingContext: 5
mappingPreset: 1
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Stop
dmxMin: 190
dmxMax: 193
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: CCW rotation slow->fast
dmxMin: 194
dmxMax: 255
type: 7
activationHoldSeconds: 0
mappingContext: 5
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 18
instance: 1
role: 0
byteRole: 0
ranges:
- name: Focus 0-100%
dmxMin: 0
dmxMax: 255
type: 0
activationHoldSeconds: 0
mappingContext: 2
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 15
instance: 1
role: 0
byteRole: 0
ranges:
- name: Frost 0-100%
dmxMin: 0
dmxMax: 255
type: 0
activationHoldSeconds: 0
mappingContext: 4
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 0
instance: 1
role: 0
byteRole: 0
ranges: []
- attribute: 23
instance: 1
role: 7
byteRole: 0
ranges:
- name: No function
dmxMin: 0
dmxMax: 29
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Dimmer conventional / linear mode (setting, not simulated)
dmxMin: 30
dmxMax: 49
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pan/tilt fast / normal mode (setting, not simulated)
dmxMin: 50
dmxMax: 69
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Blackout-on-move / colour / gobo change settings (not simulated)
dmxMin: 70
dmxMax: 129
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Lamp on
dmxMin: 130
dmxMax: 139
type: 15
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Pan/tilt reset
dmxMin: 140
dmxMax: 149
type: 14
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Colour / gobo / shutter+prism reset (not simulated)
dmxMin: 150
dmxMax: 189
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Frost/focus/zoom reset (not simulated)
dmxMin: 190
dmxMax: 199
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Reset all
dmxMin: 200
dmxMax: 209
type: 14
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: All movement blackout enable/disable (not simulated)
dmxMin: 210
dmxMax: 229
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: Lamp off
dmxMin: 230
dmxMax: 239
type: 16
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
- name: No function
dmxMin: 240
dmxMax: 255
type: 1
activationHoldSeconds: 0
mappingContext: 0
mappingPreset: 0
normalizedFrom: 0
normalizedTo: 1
shutterFrequencyFromHz: 1
shutterFrequencyToHz: 20
shutterDutyCycle: 0.5
shutterFlashDurationSeconds: 0
wheelBindings:
- attribute: 11
instance: 1
goboWheel: {fileID: 0}
colorWheel: {fileID: 11400000, guid: 21160515a4abe5cfeb1073a64a79ac29, type: 2}
- attribute: 12
instance: 1
goboWheel: {fileID: 11400000, guid: a5bb69b508f95a067926f9061aa9ecf7, type: 2}
colorWheel: {fileID: 0}
frostBindings:
- instance: 1
profile: {fileID: 11400000, guid: 66785019f931abb39a557868a2ad50ae, type: 2}
panTiltSpeedProfiles: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a6104042f671d226a8ae4c4c22b9369c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,74 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6df25762471641b399e6f571c7736003, type: 3}
m_Name: L230SR_Focus
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.FocusProfile
defaultControlMode: 0
nearFocusDistanceMeters: 2
farFocusDistanceMeters: 50
farIsInfinity: 1
focusDistanceCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
invertUnmappedPosition: 0
fullBlurDiopterDifference: 0.5
defocusCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
maximumCookieBlur: 0.02
maximumLensBlur: 0.01
maximumEdgeSoftness: 0.75
nearToFarSeconds: 0
farToNearSeconds: 0
cookieResolution: 256
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bf250eaa2ceb8bcf48082611f0914360
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,135 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4b2c8adfda114772b28c2b759f46f101, type: 3}
m_Name: L230SR_Frost
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.FrostProfile
beamRadiusScale:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0.6
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1.6
inSlope: 0.6
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
edgeSoftness:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0.8
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0.8
inSlope: 0.8
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
cookieBlur:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0.018
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0.018
inSlope: 0.018
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
lensBlur:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0.012
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0.012
inSlope: 0.012
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
transmission:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: -0.13999999
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 0.86
inSlope: -0.13999999
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
cookieResolution: 256
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 66785019f931abb39a557868a2ad50ae
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,624 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 466f185267f601341a0f5b77bc5cd89f, type: 3}
m_Name: L230SR_GoboWheel
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.GoboWheelProfile
slots:
- name: Open
dmxMin: 0
dmxMax: 3
texture: {fileID: 0}
isOpen: 1
rotationOffsetDeg: 0
additionalRanges:
- name: Open / open shaking
dmxMin: 56
dmxMax: 59
type: 5
shake:
enabled: 1
speedMinHz: 0.4
speedMaxHz: 10
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 10
amplitudeMaxDeg: 360
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Wheel scroll CCW fast->slow (NOT simulated)
dmxMin: 128
dmxMax: 189
type: 3
shake:
enabled: 1
speedMinHz: 0.4
speedMaxHz: 10
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 10
amplitudeMaxDeg: 360
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Wheel scroll stop (NOT simulated)
dmxMin: 190
dmxMax: 193
type: 3
shake:
enabled: 1
speedMinHz: 0.4
speedMaxHz: 10
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 10
amplitudeMaxDeg: 360
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Wheel scroll CW slow->fast (NOT simulated)
dmxMin: 194
dmxMax: 255
type: 3
shake:
enabled: 1
speedMinHz: 0.4
speedMaxHz: 10
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 10
amplitudeMaxDeg: 360
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 1
dmxMin: 4
dmxMax: 6
texture: {fileID: 2800000, guid: 9518a997dd17f3e93b281d76361751c2, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 1 shaking (speed est.)
dmxMin: 60
dmxMax: 63
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 2
dmxMin: 7
dmxMax: 9
texture: {fileID: 2800000, guid: 778d178d52918103ca9d79191e5667d9, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 2 shaking (speed est.)
dmxMin: 64
dmxMax: 67
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 3
dmxMin: 10
dmxMax: 12
texture: {fileID: 2800000, guid: abcdf2e7f3fd9437a888f39a1b57b7f0, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 3 shaking (speed est.)
dmxMin: 68
dmxMax: 71
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 4
dmxMin: 13
dmxMax: 15
texture: {fileID: 2800000, guid: ebe00c2a92b89010093277637b463eef, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 4 shaking (speed est.)
dmxMin: 72
dmxMax: 75
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 5
dmxMin: 16
dmxMax: 18
texture: {fileID: 2800000, guid: f97ebe88c2e15e1d8a83621cc2016ff3, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 5 shaking (speed est.)
dmxMin: 76
dmxMax: 79
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 6
dmxMin: 19
dmxMax: 21
texture: {fileID: 2800000, guid: 6506a449ba2bf38bbbf4debe4fa7341d, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 6 shaking (speed est.)
dmxMin: 80
dmxMax: 83
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 7
dmxMin: 22
dmxMax: 24
texture: {fileID: 2800000, guid: af9c8f336b94ebe009818c230c8b7354, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 7 shaking (speed est.)
dmxMin: 84
dmxMax: 87
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 8
dmxMin: 25
dmxMax: 27
texture: {fileID: 2800000, guid: 01eca36302e35132191827a4c8a1ef79, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 8 shaking (speed est.)
dmxMin: 88
dmxMax: 91
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 9
dmxMin: 28
dmxMax: 30
texture: {fileID: 2800000, guid: 0139a7c51a6aac0ea9081c5c294de39b, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 9 shaking (speed est.)
dmxMin: 92
dmxMax: 95
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 10
dmxMin: 31
dmxMax: 33
texture: {fileID: 2800000, guid: 1d9d3e4674d579a389670e6164a35da2, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 10 shaking (speed est.)
dmxMin: 96
dmxMax: 99
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 11
dmxMin: 34
dmxMax: 36
texture: {fileID: 2800000, guid: e31fc5087e9d11761b1a40e3e9822ccd, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 11 shaking (speed est.)
dmxMin: 100
dmxMax: 103
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 12
dmxMin: 37
dmxMax: 39
texture: {fileID: 2800000, guid: 4a77019cdd658a694847cf29d7cbc71a, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 12 shaking (speed est.)
dmxMin: 104
dmxMax: 107
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 13
dmxMin: 40
dmxMax: 42
texture: {fileID: 2800000, guid: d1f3322127a7739c5b237239e069892a, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 13 shaking (speed est.)
dmxMin: 108
dmxMax: 111
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 14
dmxMin: 43
dmxMax: 45
texture: {fileID: 2800000, guid: b5bfb454cb5c710858964842113c99e2, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 14 shaking (speed est.)
dmxMin: 112
dmxMax: 115
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 15
dmxMin: 46
dmxMax: 48
texture: {fileID: 2800000, guid: 0daa0fbfe0515f28d810979c2f7f77fc, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 15 shaking (speed est.)
dmxMin: 116
dmxMax: 119
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 16
dmxMin: 49
dmxMax: 51
texture: {fileID: 2800000, guid: 72016661324037b4ba5c540e524e7cfa, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 16 shaking (speed est.)
dmxMin: 120
dmxMax: 123
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
- name: Gobo 17
dmxMin: 52
dmxMax: 55
texture: {fileID: 2800000, guid: 5d663183bbab92c2490d47f5c2496222, type: 3}
isOpen: 0
rotationOffsetDeg: 0
additionalRanges:
- name: Gobo 17 shaking (speed est.)
dmxMin: 124
dmxMax: 127
type: 2
shake:
enabled: 1
speedMinHz: 1
speedMaxHz: 6
motionMode: 0
positionAxis: 0
affectBeam: 1
applyWithPrism: 1
applyWithZoom: 1
allowDuringGoboRotation: 1
amplitudeMinDeg: 20
amplitudeMaxDeg: 60
positionAmplitudeMin: 0.015
positionAmplitudeMax: 0.06
beamAngleAmplitudeMinDeg: 0.2
beamAngleAmplitudeMaxDeg: 1
zoomShakeScaleMin: 0.5
zoomShakeScaleMax: 1.5
amplitudeMapping: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a5bb69b508f95a067926f9061aa9ecf7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,35 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c1825f853867e4e4a842deda5016d9bd, type: 3}
m_Name: L230SR_Prism
m_EditorClassIdentifier: ArtNet.Runtime::ArtNet.Runtime.PrismProfile
slots:
- name: No prism
dmxMin: 0
dmxMax: 4
isOpen: 1
facetCount: 1
spread: 0.25
facetScale: 0.55
rotationOffsetDeg: 0
intensityScale: 1
additionalRanges: []
- name: 8-facet rotating prism
dmxMin: 5
dmxMax: 255
isOpen: 0
facetCount: 8
spread: 0.25
facetScale: 0.55
rotationOffsetDeg: 0
intensityScale: 1
additionalRanges: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f0b030254971ec82082d51a09a11b7a8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f437c75d82eebae64814baebee91d7c5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9ef0183fc086c08ce93f71f3c87341d0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 52ffdaa66f6864b5bb9470fbc55810b0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# Listen-only Unity monitor for live Art-Net tests (e.g. ChamSys MagicQ) of the Legend 230SR Beam test scene.
# It never sends Art-Net. Requires the Unity Editor to be CLOSED for this project (it runs Unity in batch mode).
#
# l230sr_live_monitor.sh preflight # port 6454 owner, interfaces, Unity lock
# l230sr_live_monitor.sh start [minutes] # start the monitor in the background (default 30 min)
# l230sr_live_monitor.sh status # current receiver + fixture state (refreshed every second)
# l230sr_live_monitor.sh snap <label> # snapshot: JSON line + PNG in Logs/
# l230sr_live_monitor.sh stop # end the session and print the summary
set -euo pipefail
PROJECT="${PROJECT:-$HOME/The_Pressure_Chamber}"
UNITY="${UNITY:-$HOME/Unity/Hub/Editor/6000.3.28f1/Editor/Unity}"
LOGS="$PROJECT/Logs"
mkdir -p "$LOGS"
case "${1:-help}" in
preflight)
echo "== UDP 6454 listeners (Unity monitor and MagicQ must not both hold it exclusively)"
ss -lunp 2>/dev/null | awk 'NR==1 || /:6454 /' || true
echo "== IPv4 interfaces"; ip -4 -br addr
echo "== Unity project lock"; [ -e "$PROJECT/Temp/UnityLockfile" ] && echo "LOCKED: Unity Editor has the project open" || echo "free"
;;
start)
[ -e "$PROJECT/Temp/UnityLockfile" ] && { echo "Unity Editor has the project open; close it first." >&2; exit 1; }
rm -f "$LOGS"/L230SR_live_* "$LOGS"/L230SR_snap_*
L230SR_LIVE_MONITOR=1 L230SR_MONITOR_MINUTES="${2:-30}" nohup "$UNITY" -batchmode -projectPath "$PROJECT" \
-runTests -testPlatform PlayMode \
-testFilter 'PressureChamber.Fixtures.Legend230SR.LiveMonitor.Legend230SRLiveMonitor.LiveMonitor_ListenOnly' \
-testResults "$LOGS/L230SR_live_results.xml" -logFile "$LOGS/L230SR_live_unity.log" >/dev/null 2>&1 &
echo $! > "$LOGS/L230SR_live.pid"
echo "monitor starting (pid $(cat "$LOGS/L230SR_live.pid")); waiting for the first status file..."
for _ in $(seq 1 180); do [ -s "$LOGS/L230SR_live_status.json" ] && break; sleep 1; done
[ -s "$LOGS/L230SR_live_status.json" ] && grep -E '"(receiver_bound|receiver_port|last_sender)"' "$LOGS/L230SR_live_status.json" \
|| { echo "no status after 180 s; see $LOGS/L230SR_live_unity.log" >&2; exit 1; }
;;
status)
cat "$LOGS/L230SR_live_status.json"
;;
snap)
label="${2:?usage: snap <label>}"
touch "$LOGS/L230SR_snap_$label"
for _ in $(seq 1 20); do [ -e "$LOGS/L230SR_snap_$label" ] || break; sleep 0.5; done
[ -e "$LOGS/L230SR_snap_$label" ] && { echo "snapshot not taken (is the monitor running?)" >&2; exit 1; }
tail -n 1 "$LOGS/L230SR_live_snapshots.jsonl"
;;
stop)
touch "$LOGS/L230SR_live_stop"
pid="$(cat "$LOGS/L230SR_live.pid" 2>/dev/null || true)"
for _ in $(seq 1 120); do [ -n "$pid" ] && kill -0 "$pid" 2>/dev/null || break; sleep 1; done
cat "$LOGS/L230SR_live_summary.json" 2>/dev/null || echo "no summary; see $LOGS/L230SR_live_unity.log"
grep -oE '<test-run[^>]*>' "$LOGS/L230SR_live_results.xml" 2>/dev/null | grep -oE 'result="[^"]+"' || true
;;
*) sed -n '2,10p' "$0" ;;
esac
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ec7005e04c14e4167829584eee0c9a3e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,228 @@
// End-to-end Play Mode test: real Art-Net (ArtDMX over UDP to 127.0.0.1:6454) -> package ArtNetReceiver ->
// DmxRigController -> DmxFixtureComponent on the Legend 230SR Beam prefab, inside the isolated fixture test scene.
// Run: Unity -batchmode -projectPath <proj> -runTests -testPlatform PlayMode
// -testFilter PressureChamber.Fixtures.Legend230SR.Tests -testResults <file.xml>
// Writes Logs/L230SR_playmode_artnet_report.json and Logs/L230SR_playmode_*.png (project Logs folder).
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using ArtNet.Runtime;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
#if UNITY_EDITOR
using UnityEditor.SceneManagement;
#endif
namespace PressureChamber.Fixtures.Legend230SR.Tests
{
public class Legend230SRArtNetPlayModeTests
{
const string ScenePath = "Assets/Fixtures/Chauvet_Legend_230SR_Beam/Scenes/L230SR_FixtureTest.unity";
const float TiltY = 0.3735f;
readonly List<string> _log = new();
readonly StringBuilder _json = new();
static float PanDeg(int v16) => (v16 / 65535f - 0.5f) * 540f; // DmxFixtureComponent mapping (no invert/offset)
static float TiltDeg(int v16) => (v16 / 65535f - 0.5f) * 270f;
static byte[] ArtDmx(int universe, byte[] dmx, byte seq)
{
var p = new byte[18 + 512];
Encoding.ASCII.GetBytes("Art-Net\0").CopyTo(p, 0);
p[8] = 0x00; p[9] = 0x50; // OpDmx (0x5000, little endian)
p[10] = 0; p[11] = 14; // protocol version 14
p[12] = seq; p[13] = 0;
p[14] = (byte)(universe & 0xFF); // SubUni
p[15] = (byte)((universe >> 8) & 0x7F); // Net
p[16] = 0x02; p[17] = 0x00; // length 512, big endian
Buffer.BlockCopy(dmx, 0, p, 18, 512);
return p;
}
static void Put16(byte[] u, int addr, int ch, int v) { u[addr + ch - 2] = (byte)(v >> 8); u[addr + ch - 1] = (byte)(v & 0xFF); }
static void Put8(byte[] u, int addr, int ch, int v) { u[addr + ch - 2] = (byte)v; }
// Mode 2 (18ch) @ address 1: 1-2 pan, 3-4 tilt, 5 P/T speed, 6-7 dimmer, 8 shutter, 9 colour, 10 gobo, 11 prism, 12 prism rot ...
// Mode 1 (15ch) @ address 21: 1-2 pan, 3-4 tilt, 5 speed, 6 dimmer, 7 shutter, 8 colour, 9 gobo, 10 prism, 11 prism rot ...
struct State
{
public string name;
public int aPan, aTilt, aDim16, aShutter, aColor, aGobo, aPrism;
public int bPan, bTilt, bDim, bShutter, bColor, bGobo;
}
static byte[] Build(State s)
{
var u = new byte[512];
const int A = 1, B = 21;
Put16(u, A, 1, s.aPan); Put16(u, A, 3, s.aTilt); Put16(u, A, 6, s.aDim16);
Put8(u, A, 8, s.aShutter); Put8(u, A, 9, s.aColor); Put8(u, A, 10, s.aGobo); Put8(u, A, 11, s.aPrism);
Put16(u, B, 1, s.bPan); Put16(u, B, 3, s.bTilt); Put8(u, B, 6, s.bDim);
Put8(u, B, 7, s.bShutter); Put8(u, B, 8, s.bColor); Put8(u, B, 9, s.bGobo);
return u;
}
[UnityTest, Timeout(120000)]
public IEnumerator ArtNet_Udp_Drives_Legend230SR_Fixtures()
{
#if UNITY_EDITOR
var op = EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters(LoadSceneMode.Single));
while (!op.isDone) yield return null;
#else
Assert.Ignore("Editor-only test (loads the fixture test scene from the AssetDatabase).");
#endif
yield return new WaitForSecondsRealtime(0.5f);
var fixtures = UnityEngine.Object.FindObjectsByType<DmxFixtureComponent>(FindObjectsSortMode.None);
var a = fixtures.Single(f => f.name.StartsWith("L230SR_A"));
var b = fixtures.Single(f => f.name.StartsWith("L230SR_B"));
Transform Find(Component c, string n) => c.GetComponentsInChildren<Transform>(true).First(t => t.name == n);
Transform aYoke = Find(a, "Yoke"), aHead = Find(a, "Head"), bYoke = Find(b, "Yoke"), bHead = Find(b, "Head");
var receiver = UnityEngine.Object.FindAnyObjectByType<ArtNetReceiver>();
Assert.NotNull(receiver, "ArtNetReceiver missing in test scene");
_json.Append("{\n \"receiver_port\": ").Append(receiver.port).Append(",\n \"steps\": [\n");
var states = new[]
{
new State { name = "1_A_pan+135_tilt-67.5_full_colour1_gobo4__B_tilt+135_dimmer0",
aPan = 0xC000, aTilt = 0x4000, aDim16 = 0xFFFF, aShutter = 255, aColor = 6, aGobo = 14, aPrism = 0,
bPan = 0x8000, bTilt = 0xFFFF, bDim = 0, bShutter = 8, bColor = 0, bGobo = 0 },
new State { name = "2_A_pan-270_tilt+45_colour10_prism__B_pan+90_tilt-81_full_open",
aPan = 0x0000, aTilt = 0xAAAA, aDim16 = 0xFFFF, aShutter = 255, aColor = 42, aGobo = 0, aPrism = 128,
bPan = 0xAAAA, bTilt = 0x3333, bDim = 255, bShutter = 255, bColor = 0, bGobo = 0 },
new State { name = "3_both_dmx_centre_shutter_open_dimmer_half",
aPan = 0x8000, aTilt = 0x8000, aDim16 = 0x8000, aShutter = 8, aColor = 0, aGobo = 0, aPrism = 0,
bPan = 0x8000, bTilt = 0x8000, bDim = 128, bShutter = 8, bColor = 0, bGobo = 0 },
new State { name = "4_beam_look_both_tilt+67.5_towards_front_wall__A_open_white__B_colour9_gobo4",
aPan = 0x8000, aTilt = 0xC000, aDim16 = 0xFFFF, aShutter = 255, aColor = 0, aGobo = 0, aPrism = 0,
bPan = 0x8000, bTilt = 0xC000, bDim = 255, bShutter = 255, bColor = 38, bGobo = 14 },
};
bool allOk = true;
using var udp = new UdpClient();
byte seq = 1;
for (int si = 0; si < states.Length; si++)
{
var s = states[si];
var dmx = Build(s);
var packet = ArtDmx(0, dmx, seq);
float t0 = Time.realtimeSinceStartup;
Quaternion expAYoke = Quaternion.AngleAxis(PanDeg(s.aPan), Vector3.up), expAHead = Quaternion.AngleAxis(TiltDeg(s.aTilt), -Vector3.right);
Quaternion expBYoke = Quaternion.AngleAxis(PanDeg(s.bPan), Vector3.up), expBHead = Quaternion.AngleAxis(TiltDeg(s.bTilt), -Vector3.right);
float errAY = 999, errAH = 999, errBY = 999, errBH = 999, prevSum = 999; int still = 0;
while (Time.realtimeSinceStartup - t0 < 10f)
{
seq = (byte)(seq == 255 ? 1 : seq + 1); packet[12] = seq;
udp.Send(packet, packet.Length, "127.0.0.1", receiver.port);
yield return new WaitForSecondsRealtime(1f / 30f);
errAY = Quaternion.Angle(aYoke.localRotation, expAYoke); errAH = Quaternion.Angle(aHead.localRotation, expAHead);
errBY = Quaternion.Angle(bYoke.localRotation, expBYoke); errBH = Quaternion.Angle(bHead.localRotation, expBHead);
float sum = errAY + errAH + errBY + errBH;
still = Mathf.Abs(prevSum - sum) < 0.002f ? still + 1 : 0; // wait until the smoothing has fully settled
prevSum = sum;
if (still >= 5 && Time.realtimeSinceStartup - t0 > 1.5f) break;
}
// keep sending briefly so shutter / colour / gobo states settle, then sample
for (int k = 0; k < 15; k++) { udp.Send(packet, packet.Length, "127.0.0.1", receiver.port); yield return new WaitForSecondsRealtime(1f / 30f); }
float settle = Time.realtimeSinceStartup - t0;
var la = a.targetLight; var lb = b.targetLight;
bool ok = errAY < 0.05f && errAH < 0.05f && errBY < 0.05f && errBH < 0.05f;
string colorCheck = "n/a";
string lensGobo = LensGoboName(a);
int aLit = a.GetComponentsInChildren<Light>(true).Count(x => x.isActiveAndEnabled && x.intensity > 0.01f);
if (si == 0)
{
bool aOn = la.enabled && la.intensity > 0.01f, bOff = !lb.enabled || lb.intensity < 1e-3f;
bool red = la.color.r > 2f * la.color.g && la.color.r > 2f * la.color.b;
// the package projects the gobo through a generated focus cookie, so the raw texture is checked on the lens
bool gobo = la.cookie != null && (lensGobo == null || lensGobo.Contains("04_Aperture_L"));
colorCheck = $"A_on={aOn} B_off={bOff} A_red={red} A_cookie_present={la.cookie != null} lens_gobo={lensGobo ?? "n/a"}";
ok &= aOn && bOff && red && gobo;
}
else if (si == 1)
{
bool blue = la.color.b > 2f * la.color.r && la.color.b > la.color.g;
bool bWhite = lb.intensity > 0.01f && Mathf.Abs(lb.color.r - lb.color.b) < 0.1f;
bool noGobo = la.cookie == null || !la.cookie.name.Contains("L230SR_Gobo_");
var beamTpl = a.GetComponentsInChildren<Renderer>(true).FirstOrDefault(r => r.name == "PseudoBeam");
int facets = beamTpl == null ? 0 : a.GetComponentsInChildren<Renderer>(false)
.Count(r => r.enabled && r != beamTpl && r.sharedMaterial != null && r.sharedMaterial == beamTpl.sharedMaterial);
colorCheck = $"A_blue={blue} A_gobo_cleared={noGobo} B_on_white={bWhite} A_lit_lights_with_prism={aLit} A_prism_beam_facets={facets} lens_gobo={lensGobo ?? "n/a"}";
ok &= blue && bWhite && noGobo && aLit >= 8 && facets >= 8;
}
else if (si == 2)
{
// 16-bit 0x8000 (Mode 2) and 8-bit 128 (Mode 1) should both land near half of the driver maximum
bool half = la.intensity > 0.01f && lb.intensity > 0.01f && Mathf.Abs(la.intensity - lb.intensity) < 0.1f * Mathf.Max(la.intensity, lb.intensity);
colorCheck = $"both_on_at_half={half} A_I={la.intensity:0.###} B_I={lb.intensity:0.###}";
ok &= half;
}
else
{
bool aWhite = la.intensity > 0.01f && Mathf.Abs(la.color.r - la.color.b) < 0.1f;
bool bMagenta = lb.intensity > 0.01f && lb.color.r > 2f * lb.color.g && lb.color.b > 2f * lb.color.g;
var beamA = a.GetComponentsInChildren<Renderer>(true).FirstOrDefault(r => r.name == "PseudoBeam");
bool beamOn = beamA != null && beamA.enabled && beamA.gameObject.activeInHierarchy;
colorCheck = $"A_white={aWhite} B_magenta={bMagenta} A_pseudobeam_active={beamOn} lensB_gobo={LensGoboName(b) ?? "n/a"}";
ok &= aWhite && bMagenta && beamOn;
}
allOk &= ok;
string line = string.Format(CultureInfo.InvariantCulture,
"{0}: ok={1} settle={2:0.00}s errA(yoke,head)=({3:0.000},{4:0.000})deg errB=({5:0.000},{6:0.000})deg " +
"A.light(I={7:0.###}, col={8}, cookie={9}) B.light(I={10:0.###}, col={11}) {12}",
s.name, ok, settle, errAY, errAH, errBY, errBH, la.intensity, la.color, la.cookie ? la.cookie.name : "none", lb.intensity, lb.color, colorCheck);
_log.Add(line);
Debug.Log("[L230SR-PLAYMODE] " + line);
_json.Append(" {\"state\": \"").Append(s.name).Append("\", \"ok\": ").Append(ok ? "true" : "false")
.Append(", \"detail\": \"").Append(line.Replace("\"", "'")).Append("\"}").Append(si < states.Length - 1 ? ",\n" : "\n");
Capture($"L230SR_playmode_step{si + 1}.png");
}
_json.Append(" ],\n \"all_ok\": ").Append(allOk ? "true" : "false").Append("\n}\n");
Directory.CreateDirectory("Logs");
File.WriteAllText(Path.Combine("Logs", "L230SR_playmode_artnet_report.json"), _json.ToString());
Assert.IsTrue(allOk, string.Join("\n", _log));
}
static string LensGoboName(DmxFixtureComponent f)
{
var lens = f.GetComponentsInChildren<Renderer>(true).FirstOrDefault(r => r.name == "Lens");
if (lens == null) return null;
var mpb = new MaterialPropertyBlock();
for (int i = -1; i < lens.sharedMaterials.Length; i++)
{
if (i < 0) lens.GetPropertyBlock(mpb); else lens.GetPropertyBlock(mpb, i);
if (mpb.isEmpty) continue;
var t = mpb.GetTexture("_GoboTexture");
if (t != null) return t.name;
}
foreach (var m in lens.sharedMaterials)
if (m != null && m.HasProperty("_GoboTexture") && m.GetTexture("_GoboTexture") != null) return m.GetTexture("_GoboTexture").name + " (material)";
return null;
}
static void Capture(string file)
{
try
{
var cam = Camera.main;
if (cam == null) return;
var rt = new RenderTexture(1280, 720, 24);
cam.targetTexture = rt; cam.Render();
RenderTexture.active = rt;
var tex = new Texture2D(1280, 720, TextureFormat.RGB24, false);
tex.ReadPixels(new Rect(0, 0, 1280, 720), 0, 0); tex.Apply();
cam.targetTexture = null; RenderTexture.active = null;
Directory.CreateDirectory("Logs");
File.WriteAllBytes(Path.Combine("Logs", file), tex.EncodeToPNG());
UnityEngine.Object.Destroy(tex); rt.Release();
}
catch (Exception e) { Debug.LogWarning("[L230SR-PLAYMODE] capture failed: " + e.Message); }
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 225c94d6e29ea1e708b55c6b68356cb1
@@ -0,0 +1,296 @@
// LISTEN-ONLY live monitor for testing the Legend 230SR Beam against an external Art-Net source (e.g. ChamSys MagicQ).
// It never sends Art-Net. It loads the isolated fixture test scene, records what the package receiver actually gets
// (sender address, universe, opcode, rate), decodes each fixture's channels from its own patch (universe / start address /
// mode), and compares them with the fixture's real state (pan/tilt angles, dimmer, shutter, colour, gobo).
//
// Gate: runs only with environment variable L230SR_LIVE_MONITOR=1 (otherwise Ignored). Driven by
// Assets/Fixtures/Chauvet_Legend_230SR_Beam/Tests/MagicQ~/l230sr_live_monitor.sh (start | status | snap <label> | stop)
// Files (project Logs/): L230SR_live_status.json (rewritten every second), L230SR_live_snapshots.jsonl (one line per
// snapshot), L230SR_live_<label>.png, L230SR_live_summary.json. Trigger files: L230SR_snap_<label>, L230SR_live_stop.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using ArtNet.Runtime;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
#if UNITY_EDITOR
using UnityEditor.SceneManagement;
#endif
namespace PressureChamber.Fixtures.Legend230SR.LiveMonitor
{
public class Legend230SRLiveMonitor
{
const string ScenePath = "Assets/Fixtures/Chauvet_Legend_230SR_Beam/Scenes/L230SR_FixtureTest.unity";
const string LogDir = "Logs";
static readonly CultureInfo Inv = CultureInfo.InvariantCulture;
sealed class FixtureProbe
{
public DmxFixtureComponent F;
public Transform Yoke, Head;
public Renderer Lens;
public readonly Queue<(float t, float i)> Window = new();
public Dictionary<string, int> Ch = new(); // logical name -> absolute 1-based channel
public bool Dimmer16;
}
readonly Dictionary<string, long> _packetCounts = new();
readonly Dictionary<int, int[]> _latestDmx = new();
readonly Dictionary<int, float> _firstSeen = new(), _lastSeen = new();
readonly List<string> _errors = new();
long _dmxPackets, _nonDmxPackets;
[UnityTest, Category("LiveArtNet"), Timeout(7200000)]
public IEnumerator LiveMonitor_ListenOnly()
{
if (Environment.GetEnvironmentVariable("L230SR_LIVE_MONITOR") != "1")
Assert.Ignore("Live monitor: set L230SR_LIVE_MONITOR=1 (use Tests/MagicQ~/l230sr_live_monitor.sh).");
float minutes = float.TryParse(Environment.GetEnvironmentVariable("L230SR_MONITOR_MINUTES"), NumberStyles.Float, Inv, out var m) ? m : 30f;
LogAssert.ignoreFailingMessages = true; // a monitoring session must not abort on a logged error
Application.logMessageReceived += OnLog;
Directory.CreateDirectory(LogDir);
foreach (var f in Directory.GetFiles(LogDir, "L230SR_snap_*")) File.Delete(f);
if (File.Exists(Path.Combine(LogDir, "L230SR_live_stop"))) File.Delete(Path.Combine(LogDir, "L230SR_live_stop"));
#if UNITY_EDITOR
var op = EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters(LoadSceneMode.Single));
while (!op.isDone) yield return null;
#endif
yield return new WaitForSecondsRealtime(0.5f);
var receiver = UnityEngine.Object.FindAnyObjectByType<ArtNetReceiver>();
Assert.NotNull(receiver, "No ArtNetReceiver in the test scene.");
var probes = UnityEngine.Object.FindObjectsByType<DmxFixtureComponent>(FindObjectsSortMode.None)
.OrderBy(f => f.name).Select(MakeProbe).ToList();
receiver.OnDataReceived += OnPacket;
float start = Time.realtimeSinceStartup, nextStatus = 0f;
bool stop = false;
string stopReason = "timeout";
while (!stop && Time.realtimeSinceStartup - start < minutes * 60f)
{
yield return null;
float now = Time.realtimeSinceStartup;
foreach (var p in probes) SampleLight(p, now);
if (now >= nextStatus)
{
nextStatus = now + 1f;
WriteAtomic(Path.Combine(LogDir, "L230SR_live_status.json"), BuildReport("status", receiver, probes, now - start));
}
foreach (var trig in Directory.GetFiles(LogDir, "L230SR_snap_*"))
{
string label = Sanitize(Path.GetFileName(trig).Substring("L230SR_snap_".Length));
// (no WaitForEndOfFrame: it is not evoked in batch mode and stalls the test's frame loop)
string png = Path.Combine(LogDir, $"L230SR_live_{label}.png");
Capture(png);
File.AppendAllText(Path.Combine(LogDir, "L230SR_live_snapshots.jsonl"),
BuildReport(label, receiver, probes, Time.realtimeSinceStartup - start).Replace("\n", " ") + "\n");
File.Delete(trig);
Debug.Log($"[L230SR-LIVE] snapshot '{label}' written");
}
if (File.Exists(Path.Combine(LogDir, "L230SR_live_stop"))) { stop = true; stopReason = "stop file"; }
}
receiver.OnDataReceived -= OnPacket;
Application.logMessageReceived -= OnLog;
var summary = BuildReport("summary:" + stopReason, receiver, probes, Time.realtimeSinceStartup - start);
WriteAtomic(Path.Combine(LogDir, "L230SR_live_summary.json"), summary);
Debug.Log("[L230SR-LIVE] " + summary.Replace("\n", " "));
Assert.IsTrue(receiver.Statistics.IsActive, "Receiver never bound UDP " + receiver.port + " (port in use by another program?)");
}
void OnLog(string msg, string stack, LogType type)
{
if ((type == LogType.Error || type == LogType.Exception || type == LogType.Assert) && _errors.Count < 50)
_errors.Add(type + ": " + msg.Split('\n')[0]);
}
void OnPacket(ArtNetData d)
{
string key = $"{d.OpCode} (0x{(int)d.OpCode & 0xFFFF:X4}) -> universe {d.Universe}";
_packetCounts[key] = _packetCounts.TryGetValue(key, out var c) ? c + 1 : 1;
float now = Time.realtimeSinceStartup;
if (!_firstSeen.ContainsKey(d.Universe)) _firstSeen[d.Universe] = now;
_lastSeen[d.Universe] = now;
if (d.OpCode == ArtNetOpCode.OpDmx) { _dmxPackets++; _latestDmx[d.Universe] = (int[])d.Channels.Clone(); }
else _nonDmxPackets++;
}
static FixtureProbe MakeProbe(DmxFixtureComponent f)
{
var p = new FixtureProbe
{
F = f,
Yoke = f.GetComponentsInChildren<Transform>(true).First(t => t.name == "Yoke"),
Head = f.GetComponentsInChildren<Transform>(true).First(t => t.name == "Head"),
Lens = f.GetComponentsInChildren<Renderer>(true).FirstOrDefault(r => r.name == "Lens"),
};
var mode = f.fixture.modes[f.mode];
for (int i = 0; i < mode.elements.Count; i++)
{
var e = mode.elements[i];
string n = e.attribute switch
{
FixtureAttribute.Pan => e.byteRole == FixtureByteRole.Fine ? "pan_fine" : "pan",
FixtureAttribute.Tilt => e.byteRole == FixtureByteRole.Fine ? "tilt_fine" : "tilt",
FixtureAttribute.Dimmer => e.byteRole == FixtureByteRole.Fine ? "dimmer_fine" : "dimmer",
FixtureAttribute.Strobe => "shutter",
FixtureAttribute.ColorWheel => "color",
FixtureAttribute.GoboWheel => "gobo",
FixtureAttribute.Prism when e.role == FixtureChannelRole.SelectMode => "prism",
FixtureAttribute.Control => "control",
_ => null
};
if (n != null && !p.Ch.ContainsKey(n)) p.Ch[n] = f.startAddress + i;
}
p.Dimmer16 = p.Ch.ContainsKey("dimmer_fine");
return p;
}
static void SampleLight(FixtureProbe p, float now)
{
var l = p.F.targetLight;
p.Window.Enqueue((now, l != null && l.isActiveAndEnabled ? l.intensity : 0f));
while (p.Window.Count > 0 && now - p.Window.Peek().t > 1f) p.Window.Dequeue();
}
string BuildReport(string label, ArtNetReceiver r, List<FixtureProbe> probes, float elapsed)
{
var st = r.Statistics;
var sb = new StringBuilder();
sb.Append("{\n");
KV(sb, "label", label); KV(sb, "time_local", DateTime.Now.ToString("s", Inv)); KV(sb, "elapsed_s", elapsed);
KV(sb, "receiver_bound", st.IsActive); KV(sb, "receiver_host", r.host); KV(sb, "receiver_port", st.LocalPort);
KV(sb, "last_sender", st.LastSenderAddress == null ? "none" : $"{st.LastSenderAddress}:{st.LastSenderPort}");
KV(sb, "packets_received", st.ReceivedPacketCount); KV(sb, "packets_valid_artnet", st.ValidArtNetPacketCount);
KV(sb, "packets_invalid", st.InvalidPacketCount); KV(sb, "receive_errors", st.ReceiveErrorCount);
KV(sb, "dmx_packets", _dmxPackets); KV(sb, "non_dmx_packets_reaching_rig", _nonDmxPackets);
sb.Append(" \"packets_by_opcode_universe\": {");
sb.Append(string.Join(", ", _packetCounts.OrderBy(k => k.Key).Select(k => $"\"{Esc(k.Key)}\": {k.Value}")));
sb.Append("},\n \"universe_rate_hz\": {");
sb.Append(string.Join(", ", _firstSeen.Keys.OrderBy(u => u).Select(u =>
{
string key = _packetCounts.Keys.FirstOrDefault(k => k.EndsWith($"universe {u}") && k.StartsWith("OpDmx"));
long n = key != null ? _packetCounts[key] : 0;
float span = Mathf.Max(0.001f, _lastSeen[u] - _firstSeen[u]);
return $"\"{u}\": {(n > 1 ? (n - 1) / span : 0f).ToString("0.0", Inv)}";
})));
sb.Append("},\n \"fixtures\": [\n");
for (int i = 0; i < probes.Count; i++)
{
sb.Append(DescribeFixture(probes[i]));
sb.Append(i < probes.Count - 1 ? ",\n" : "\n");
}
sb.Append(" ],\n \"errors\": [");
sb.Append(string.Join(", ", _errors.Select(e => "\"" + Esc(e) + "\"")));
sb.Append("]\n}\n");
return sb.ToString();
}
string DescribeFixture(FixtureProbe p)
{
var f = p.F;
_latestDmx.TryGetValue(f.universe, out var u);
int V(string n) => u != null && p.Ch.TryGetValue(n, out int ch) && ch >= 1 && ch <= 512 ? u[ch - 1] : -1;
int pan16 = V("pan") < 0 ? -1 : (V("pan") << 8) | Math.Max(0, V("pan_fine"));
int tilt16 = V("tilt") < 0 ? -1 : (V("tilt") << 8) | Math.Max(0, V("tilt_fine"));
float dim01 = V("dimmer") < 0 ? -1 : p.Dimmer16 ? ((V("dimmer") << 8) | Math.Max(0, V("dimmer_fine"))) / 65535f : V("dimmer") / 255f;
float ExpPan() { float d = (pan16 / 65535f - 0.5f) * f.panRangeDeg; if (f.panInvert) d = -d; return d + f.panOffsetDeg; }
float ExpTilt() { float d = (tilt16 / 65535f - 0.5f) * f.tiltRangeDeg; if (f.tiltInvert) d = -d; return d + f.tiltOffsetDeg; }
var fwd = p.Yoke.localRotation * Vector3.forward;
var up = p.Head.localRotation * Vector3.up;
float measPan = Mathf.Atan2(fwd.x, fwd.z) * Mathf.Rad2Deg; // pan about +Y (prefab: panAxis Y)
float measTilt = Mathf.Atan2(-up.z, up.y) * Mathf.Rad2Deg; // tilt about -X (prefab: tiltAxis MinusX)
var mode = f.fixture.modes[f.mode];
string ShutterRange()
{
int v = V("shutter"); if (v < 0) return "n/a";
var el = mode.elements[p.Ch["shutter"] - f.startAddress];
var rg = el.ranges.FirstOrDefault(x => x.Contains(v));
return rg == null ? "no range" : $"{rg.name} [{rg.type}]";
}
var cw = mode.wheelBindings.FirstOrDefault(b => b.attribute == FixtureAttribute.ColorWheel)?.colorWheel;
var cr = cw != null && V("color") >= 0 ? cw.ResolveRange(V("color")) : null;
var l = f.targetLight;
float mn = p.Window.Count > 0 ? p.Window.Min(x => x.i) : 0f, mx = p.Window.Count > 0 ? p.Window.Max(x => x.i) : 0f;
var sb = new StringBuilder(" {");
sb.Append($"\"name\": \"{Esc(f.name)}\", \"mode\": \"{Esc(mode.modeName)}\", \"universe\": {f.universe}, \"start_address\": {f.startAddress}, ");
sb.Append($"\"channels\": {{{string.Join(", ", p.Ch.OrderBy(k => k.Value).Select(k => $"\"{k.Key}\": {k.Value}"))}}}, ");
sb.Append($"\"dmx_received\": {(u != null ? "true" : "false")}, ");
sb.Append($"\"raw\": {{{string.Join(", ", p.Ch.OrderBy(k => k.Value).Select(k => $"\"{k.Key}\": {V(k.Key)}"))}}}, ");
if (pan16 >= 0)
sb.Append(string.Format(Inv, "\"pan\": {{\"dmx16\": {0}, \"expected_deg\": {1:0.00}, \"measured_deg_wrapped\": {2:0.00}, \"error_deg\": {3:0.000}}}, ",
pan16, ExpPan(), measPan, Mathf.Abs(Mathf.DeltaAngle(measPan, ExpPan()))));
if (tilt16 >= 0)
sb.Append(string.Format(Inv, "\"tilt\": {{\"dmx16\": {0}, \"expected_deg\": {1:0.00}, \"measured_deg\": {2:0.00}, \"error_deg\": {3:0.000}}}, ",
tilt16, ExpTilt(), measTilt, Mathf.Abs(Mathf.DeltaAngle(measTilt, ExpTilt()))));
sb.Append(string.Format(Inv, "\"dimmer\": {{\"value01\": {0:0.0000}, \"bits\": {1}}}, ", dim01, p.Dimmer16 ? 16 : 8));
sb.Append($"\"shutter\": {{\"dmx\": {V("shutter")}, \"range\": \"{Esc(ShutterRange())}\"}}, ");
sb.Append($"\"color\": {{\"dmx\": {V("color")}, \"range\": \"{Esc(cr != null ? $"{cr.name} [{cr.type}]" : "n/a")}\", " +
$"\"slot_rgb\": \"{(cr != null ? Rgb(cr.colorA) : "n/a")}\"}}, ");
sb.Append($"\"gobo\": {{\"dmx\": {V("gobo")}, \"lens_texture\": \"{Esc(LensGobo(p.Lens) ?? "none")}\"}}, ");
sb.Append(string.Format(Inv, "\"light\": {{\"enabled\": {0}, \"intensity\": {1:0.###}, \"intensity_min_1s\": {2:0.###}, \"intensity_max_1s\": {3:0.###}, \"rgb\": \"{4}\", \"cookie\": \"{5}\"}}",
(l != null && l.isActiveAndEnabled) ? "true" : "false", l ? l.intensity : 0f, mn, mx, l ? Rgb(l.color) : "n/a", l && l.cookie ? Esc(l.cookie.name) : "none"));
sb.Append("}");
return sb.ToString();
}
static string LensGobo(Renderer lens)
{
if (lens == null) return null;
var mpb = new MaterialPropertyBlock();
for (int i = 0; i < lens.sharedMaterials.Length; i++)
{
lens.GetPropertyBlock(mpb, i);
if (!mpb.isEmpty && mpb.GetTexture("_GoboTexture") is Texture t && t != null) return t.name;
}
return null;
}
static string Rgb(Color c) => string.Format(Inv, "{0:0.000},{1:0.000},{2:0.000}", c.r, c.g, c.b);
static string Esc(string s) => (s ?? "").Replace("\\", "\\\\").Replace("\"", "\\\"");
static string Sanitize(string s) => new string(s.Select(ch => char.IsLetterOrDigit(ch) || ch == '-' || ch == '_' ? ch : '_').ToArray());
static void KV(StringBuilder sb, string k, object v)
{
string val = v switch
{
string s => "\"" + Esc(s) + "\"",
bool b => b ? "true" : "false",
float f => f.ToString("0.###", Inv),
_ => Convert.ToString(v, Inv)
};
sb.Append($" \"{k}\": {val},\n");
}
static void WriteAtomic(string path, string text)
{
string tmp = path + ".tmp";
File.WriteAllText(tmp, text);
if (File.Exists(path)) File.Delete(path);
File.Move(tmp, path);
}
static void Capture(string file)
{
var cam = Camera.main;
if (cam == null) return;
var rt = new RenderTexture(1280, 720, 24);
cam.targetTexture = rt; cam.Render();
RenderTexture.active = rt;
var tex = new Texture2D(1280, 720, TextureFormat.RGB24, false);
tex.ReadPixels(new Rect(0, 0, 1280, 720), 0, 0); tex.Apply();
cam.targetTexture = null; RenderTexture.active = null;
File.WriteAllBytes(file, tex.EncodeToPNG());
UnityEngine.Object.Destroy(tex); rt.Release();
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b53ce8ff85d486d9dbcaa17de91afcf7
@@ -0,0 +1,19 @@
{
"name": "PressureChamber.Fixtures.Legend230SR.PlayModeTests",
"rootNamespace": "PressureChamber.Fixtures.Legend230SR.Tests",
"references": [
"ArtNet.Runtime"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false,
"optionalUnityReferences": [
"TestAssemblies"
]
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 905e5883ea82f719a9c7efd00844d842
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5b047333524256b5fbb9385ab42646be
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a75afd26801e9e0198ada09a91384b16
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

@@ -0,0 +1,117 @@
fileFormatVersion: 2
guid: 9518a997dd17f3e93b281d76361751c2
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 2
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 256
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Some files were not shown because too many files have changed in this diff Show More