Skip to content

SMX Camera Functions

Hey Sky edited this page Nov 12, 2026 · 2 revisions

SkyMap-X — Camera functions (Fnc1 / Fnc2, night vision)

🇬🇧 English · 🇩🇪 Deutsche Version

Source: SkyMap-X-DEV → SMX_ItemDeviceComponent.c, SMX_ItemDeviceCharComponent.c, SMX_ModeHelper_Feed.c, FeedDynamic.layout.

1. What it is

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.

2. Set up a camera (prefab)

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)

Night vision materials

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, Contrast reduced). The original NV_HDR_GreenPhosphor.emat burns 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.

Brightness while NV is on

  • 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.

3. Helmet camera (HeadCam)

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.

4. Sync (multiplayer)

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.

5. Known limits / planned

  • Quality levels for NV (several material pairs, Fnc2 cycles through them) are planned, not built yet.
  • The Fnc1/Fnc2 widgets exist in FeedDynamic.layout only.

Clone this wiki locally