Page MenuHomeFeedback Tracker

lightpoint fixes - flare by daylight and flare visibility
Feedback, NormalPublic

Description

As found while writing https://community.bistudio.com/wiki/Lightpoint_Tutorial,
the lightpoint's flare (set by setLightUseFlare, setLightFlareSize, setLightFlareMaxDistance):

  • is not visible by daylight (using setLightDayLight)
  • max distance is hardcoded and value set by setLightFlareMaxDistance is not used.

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
if (dayTime < 8 || dayTime > 18) then { skipTime (-daytime + 12); };

private _position = player modelToWorld [0, 20, 1.5];
private _lightpoint = "#lightpoint" createVehicleLocal _position;
_lightpoint setLightColor [1,0,1]; // magic pink
_lightpoint setLightAmbient [1,0,0];
_lightpoint setLightUseFlare true;
_lightpoint setLightFlareSize 3;
_lightpoint setLightFlareMaxDistance 10; // <-- not working
_lightpoint setLightBrightness 4;
_lightpoint setLightDayLight true; // <-- not working for flare

Event Timeline

You forgot about how https://community.bistudio.com/wiki/setLightIntensity overwrites the value of setLightBrightness when clearly they are both different things.

dedmen added a subscriber: dedmen.Jun 1 2021, 1:29 PM

You forgot about how https://community.bistudio.com/wiki/setLightIntensity overwrites the value of setLightBrightness when clearly they are both different things.

They are not different. Brightness is a old deprecated way that got replaced by intensity.

You forgot about how https://community.bistudio.com/wiki/setLightIntensity overwrites the value of setLightBrightness when clearly they are both different things.

They are not different. Brightness is a old deprecated way that got replaced by intensity.

Thank you for clearing that up, the wiki warning "This command has been replaced by setLightIntensity. setLightBrightness is now deprecated and should no longer be used." was not present at the time of my comment.

Looking forward to any improvements you are working on regarding this subject ;)

dedmen claimed this task.Jun 2 2021, 2:42 PM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-54261.
dedmen added a comment.Jun 3 2021, 4:46 PM

light flares are generally disabled for all lights during night...
Might hurt performance to process flares

dedmen added a comment.Jun 3 2021, 4:58 PM

Is this worth it?

dedmen added a comment.Jun 3 2021, 5:32 PM

flareMaxDistance is used.....
And works for me with daylight flares

dedmen changed the task status from Assigned to Feedback.Jun 3 2021, 5:36 PM

daylight next updoot and profiling branch

Is this worth it?

If that means that we can now have light flares and even simulate flashlights during the day then it is totally worth it!

There are many instances where the mission maker wants to highlight something with a flare rather than just a regular light point. Horror missions specially will benefit from this because even during the day you can have locations lit with spooky flares etc etc.

Thank you so much!

I second, thanks!!

Another change in profiling branch yesterday.
Flares weren't showing up at day time because their brightness was too low.
So now brightness is upped if environment is very bright to make them show up

Another change in profiling branch yesterday.
Flares weren't showing up at day time because their brightness was too low.
So now brightness is upped if environment is very bright to make them show up

Well done! Thank you! Will be testing ;)