ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

WIP: IR flashlights

Open BaerMitUmlaut opened this issue 6 years ago • 14 comments

When merged this pull request will:

  • Add scripted IR flashlights

Major todos:

BaerMitUmlaut avatar Sep 04 '18 22:09 BaerMitUmlaut

Will it be possible to have both an IR flashlight and IR pointer turned on at the same time? This would certainly be the ideal situation but may require new mechanics?

Steve161st avatar May 07 '19 12:05 Steve161st

Click the link in the OP.

BaerMitUmlaut avatar May 07 '19 12:05 BaerMitUmlaut

Blocking engine-level issues with the alignment of IR flashlights have been fixed in the latest A3 update, v2.00

derbismarck avatar Oct 14 '20 18:10 derbismarck

Classname "attenuation" for the ACE IR flashlight is misspelled to "attentuation"

derbismarck avatar Oct 14 '20 19:10 derbismarck

https://forums.bohemia.net/forums/topic/140837-development-branch-changelog/?do=findComment&comment=3438862

Added: irLight entry to all light config classes to turn a light source into a InfraRed-only light Added: irDotSize entry to weapon IR laser attachment config classes for the size of the IR dot on laser impact

Neviothr avatar Jun 02 '21 20:06 Neviothr

I'm aware and already adjusting everything. This change was at least partially influenced by us. Thanks for the ping though!

BaerMitUmlaut avatar Jun 02 '21 20:06 BaerMitUmlaut

Have you had issues with that particular method for removing/re-adding a flashlight or IR attachment? I remember having a lot of trouble with that, but ended up settling on a solution that handled both of these edge cases:

  • Weapons changing firemodes when you attempt to force the new attachment to be turned on (solution: forceWeaponFire)
  • Secondary/launcher weapons being swapped away from when you attempt to change the attachment, general inability to force the light/laser on a secondary/launcher weapon to be on if the player has a primary weapon (solution: remove primary weapon for a frame)

derbismarck avatar Jun 22 '21 17:06 derbismarck

Given the engine doesn't stop flashlights from going through walls or terrain, could I suggest lowering the values on the DBAL illuminator. https://www.youtube.com/watch?v=tV_Z8djf8S0 As seen in this video here, there are two levels for the illuminator, the low power one seems to go out to about 25/35m before dropping off, and the high power seems to be able to go out to about 100m.

Meanwhile the illuminator on the DBAL in this PR seems to go several hundred meters image image Given that vehicle mounted IR driving lights go out to ~650m it seems absurd that a single LED can get similar performance.

A side effect of this as well seems to be that the illuminator completely washes out visibility of the target, making it mostly useless for anything closer than 150m image image

Slatery avatar Aug 10 '21 05:08 Slatery

As seen in this video here, there are two levels for the illuminator, the low power one seems to go out to about 25/35m before dropping off, and the high power seems to be able to go out to about 100m.

That has to be the worst demonstration video I've ever seen, I assume the lighting conditions make it look so weak. Please check out literally any other IR illuminator demo video on YouTube. The DBAL-A3 is a bit rare, but you can compare it to the A2 (aka. AN/PEQ-15A), which has a more focused, but lower power illuminator (depends on the variant).

Given that vehicle mounted IR driving lights go out to ~650m it seems absurd that a single LED can get similar performance.

Just like the DBAL-A2, the A3 uses a diffused laser, not an LED light. The brightness depends on the variant, with the highest wattage ones being specified to illuminate up to 4000 m. I have of course toned that down.

The SPIR, the IR flashlight that this PR introduces, does use an LED. It still has an impressive range.

A side effect of this as well seems to be that the illuminator completely washes out visibility of the target, making it mostly useless for anything closer than 150m

Some washing out is normal and to be expected, but I "balanced" the intensity for ACE night vision. The color shade of your screenshot looks more like the bright green vanilla night vision. Which one are you using?

Thank you for testing this and providing feedback, much appreciated.

BaerMitUmlaut avatar Aug 10 '21 10:08 BaerMitUmlaut

Ah, if it's a laser that makes a bit more sense. Judging from this video then they are fairly bright under nods, but it still seems a bit less intense compared to the current values: https://www.youtube.com/watch?v=8tKv98IFdB4 The night vision I'm using is from the different NV colors PR, which is using a custom version of the green. The environment is June 26th 2035 (no moon) full overcast on Tanoa with brightness all the way down. Funnily enough, the IR illuminator strength is perfectly usable with our White Phosphor. White Phosphor: image Amber: image Our Green: image ACE Gen4: image Zeus/Vanilla: image

Slatery avatar Aug 10 '21 11:08 Slatery

By the way vanilla 2.06 now also has visible flashlight cones. Not sure if that makes sense for IR flashlights, but engine has specific IR support for these too to only show them in NV

Here a image of not fully working one from QA image

The vanilla cone is in /A3/Data_f/VolumeLightFlashlight.p3d To do that just use

volumeShape	= "a3\data_f\VolumeLightFlashlight.p3d";
scale[]		= {1,1,1};

I think the angle of them might not fit the tighter angle IR lights? You can either mess with the scale to try to fix that, or I can send you the source p3d if you want to make a own

dedmen avatar Aug 18 '21 12:08 dedmen

Somewhat related. You can also set irDotSize in the Pointer class to specify the size of the IR dot when it impacts an object. Default is 0.1, as far as I can see this feature is completely undocumented.

dedmen avatar Aug 26 '21 08:08 dedmen

I did a bit of messing around, looking to get an effect similar to the timestamped portion of this video but at a slightly lower power, so instead of that effect at 300yrds it's at 200m: https://youtu.be/y7-26aVB__Y

Main difference is that it doesn't wash out whatever you're looking at, eg against the SPIR, as before, the conditions are June 26th 2035, full overcast: image

Illuminator on: image

SPIR Narrow (only difference to the original DBAL values is slightly longer throw) image

Same date, but clear sky image

Illuminator: image

SPIR: image

June 11th 2035 (full moon) image

Illuminator: image

SPIR: image

Throw comparison: image SPIR: image

All the images and the video where done using the CSAT compact NVGs. I'm guessing but it looks like the original values where made to be used in full moonlight, because otherwise it is very over saturated

Slatery avatar Aug 30 '21 11:08 Slatery

A year later, what's the status on this ?

rautamiekka avatar May 29 '22 13:05 rautamiekka

seems to be working well on current arma

in my opinion the flashlight is a bit strong real life mil-version of this has a physical block that can limit output to eye-safe low power mode I was thinking of using https://github.com/CBATeam/CBA_A3/pull/1595 to emulate this and make it a setting?

edit:

The High Power Modes of operation are blocked with a blue Safety Screw. https://www.steiner-optics.com/sites/default/files/manuals/DBAL-I2_1.pdf

PabstMirror avatar Aug 30 '23 20:08 PabstMirror

This can only be finished once the attenuation bug is fixed: https://feedback.bistudio.com/T170990 I haven't tested if it's fixed in 2.14.

BaerMitUmlaut avatar Aug 31 '23 07:08 BaerMitUmlaut

Oh and I have some unfinished commits that have adjusted values, with a high power and low power variant. Would appreciate if you could wait for that.

BaerMitUmlaut avatar Aug 31 '23 07:08 BaerMitUmlaut