Repository navigation
SMX Camera Functions
🇬🇧 English · 🇩🇪 Deutsche Version
Source:
SkyMap-X-DEV→SMX_ItemDeviceComponent.c,SMX_ItemDeviceCharComponent.c,SMX_ModeHelper_Feed.c,FeedDynamic.layout.
In the Feed menu, every camera has two function buttons:
| Button | Function | Switched on by |
|---|---|---|
| Fnc1 | Tracking: after a click, locking onto a vehicle or infantry follows that target | checkbox m_bHasTracking (default: on) |
| Fnc2 | NV: night vision on the camera feed | checkbox m_bHasNVG (default: off) |
A function is only shown if the selected camera has it: the frame (FrameLOText1 = Fnc1, FrameROText1 = Fnc2) is hidden otherwise. Below each label a status text shows activated / not active.
All settings sit on SMX_ItemDeviceComponent of the camera prefab.
Category "SCX - Camera"
| Attribute | Meaning |
|---|---|
m_bHasTracking |
Camera has tracking (Fnc1) |
m_fCamZoomMin / m_fCamZoomMax
|
Range of the zoom slider |
m_fCamBrightnessMin / Max / Default
|
Range and start value of the brightness slider (EV) |
Category "SCX - Camera NVG"
| Attribute | Meaning |
|---|---|
m_bHasNVG |
Camera has night vision (Fnc2) |
m_rNVGHDRMaterial |
HDR material for NV (empty = default HDR stays) |
m_rNVGGrainMaterial |
Film grain material for NV (empty = default grain stays) |
m_fNVGBrightnessMin / Max
|
Allowed brightness range while NV is on (default -1 … 1) |
m_fNVGBrightnessDefault |
Slider value when NV is switched on (default 0) |
m_fNVGBaseEV |
Fixed EV offset added to the slider while NV is on. The slider range is relative to it (default 0) |
NV uses two post-process materials, set on the camera of the feed (HDR priority 16, film grain priority 19, same as vanilla night vision sights):
-
Common/Postprocess/NightVision/NV_HDR_Cam.emat— copy of the vanilla green phosphor look with much lower gain (FilmicExposureBias,BloomIntensity,Contrastreduced). The originalNV_HDR_GreenPhosphor.ematburns out on a feed camera. -
Common/Postprocess/NightVision/NV_FilmGrain.emat— film grain.
The sight-component values of vanilla night vision (DOF, vignette, blur, objective FOV) are not used: only the two materials make the look.
- The slider range switches to the NV range, the slider snaps back if dragged outside.
- On switching on, the current EV is remembered and the NV start value is set. On switching off, the old EV comes back.
- The effective camera EV is slider value +
m_fNVGBaseEV.
For helmet cameras the device in the feed list is the character (SMX_ItemDeviceCharComponent), not the helmet item. When the helmet is worn, the item hands its settings to the character, replicated to all clients:
- From the helmet item: Tracking/NV checkboxes, NV materials and EV values, rotate yes/no, PIP camera prefab, yaw/pitch limits, rotate step, zoom (step/min/max), base FOV, brightness (step/min/max/default).
-
Stays on the character (position only): head bone, invert bone pitch,
m_vCamStorageOffset, start yaw, start pitch.
When the helmet is taken off, Fnc1 goes back to on and Fnc2 to off. Camera values stay until the next helmet is worn.
The NV state travels with the normal camera state (yaw, pitch, zoom, brightness, lock, tracking) to all viewers. The NV materials are applied locally on each viewer's feed camera, also after the camera is re-created.
- Quality levels for NV (several material pairs, Fnc2 cycles through them) are planned, not built yet.
- The Fnc1/Fnc2 widgets exist in
FeedDynamic.layoutonly.
SkyKing Mod Docs · EN (Page) / DE (Page-DE) · Keep both languages in sync with the source repos (SkyMap-X-DEV, SpeedUI, SIDC-Framework, Throw Back Grenade) and the companion tools (ATAKmaps, SIDC---C2---Command-Control).
🇬🇧 English
General
SkyMap-X (SMX)
- Overview & Usage
- Workflows (step by step)
- Camera functions (Fnc1/Fnc2, NV)
- Drones (WIP)
- SecondMap Bridge (map provider)
- Chat API (for mods)
- Screen Mirror & Tablet ID (WIP)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Companion tools
🇩🇪 Deutsch
Allgemein
SkyMap-X (SMX)
- Überblick & Bedienung
- Abläufe (Schritt für Schritt)
- Kamera-Funktionen (Fnc1/Fnc2, NV)
- Drohnen (in Arbeit)
- SecondMap-Bridge (Kartenanbieter)
- Chat-API (für Mods)
- Bildschirm-Spiegelung & Tablet-ID (in Arbeit)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Begleit-Tools