RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 177 forks source link

Flares3 Behavior #3107

Open NightFuryVG opened 10 months ago

NightFuryVG commented 10 months ago

I noticed when Flares 3 was implemented, they shrink and expanded to show you that the flare turning on and off instead of fading in and out like the DIY method before this update. Was there a technical limitation, or is this just an early implementation flaw?

https://github.com/RigsOfRods/rigs-of-rods/assets/82725929/4f4d4203-4224-446a-8e2f-67ac8087ff55

ohlidalp commented 7 months ago

Hi, thanks for the video. It was simply a choice, flare scaling was already used for other things. I can add fading also, just not sure how the configuration syntax should be. You probably want flares to scale at least a little. Maybe this:

set_flare_fading_defaults   scaleMin, scaleMax,   opacityMin, opacityMax

This lets you combine both effects, fine-tuning how much it should blend and resize. Examples

; only scales like now
set_flare_fading_defaults   0, 1
; only fades
set_flare_fading_defaults   1,1,    0,1
; fades and also scales a bit
set_flare_fading_defaults 0.6, 1,    0,1
NightFuryVG commented 6 months ago

I'mma be honest, I've seen the word syntax and immediately thought of software code