Additional capability for flashers?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Additional capability for flashers?

Post by DaddyHoggy »

Perhaps something for the devs to think about...

Would it be possible to define flashers not just to have their standard sine wave change in intensity, but to also define a 2nd "Carrier Wave" frequency that wasn't necessarily a sine wave but could also be a square wave or a saw tooth.

This way, you could set the flasher frequency as you would now, but by defining a 2nd wave form frequency, start time and type you could have more interesting flasher pattern(s).

If this 2nd waveform wasn't defined you'd just get default/current flasher behaviour.

(Following a gritter lorry yesterday I noticed that it's two lights on the back alternated flashing (side to side flashing) at about 1 Hz but when on the lights themselves flashed at about 10Hz)

I just thought we could have some very clever running light sequences if this change could be made.

<shrugs>
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Additional capability for flashers?

Post by JensAyton »

DaddyHoggy wrote:
(Following a gritter lorry yesterday I noticed that it's two lights on the back alternated flashing (side to side flashing) at about 1 Hz but when on the lights themselves flashed at about 10Hz)
If I’m understanding you correctly, that sort of pattern is achieved by slightly different frequencies in the two lights (e.g. 10 Hz and 10.5 Hz). If two waves were involved, the base frequency would be the same but the peak intensity would vary between cycles.

That said, simulating a complete Moog synth to run the flashers would be kinda fun, but not before MNSR. :-)
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

I second this.. during the design of the polaris, I only could have the flashers on and off for the same amount of time, while what I wanted was a long pause and then two brief explosions of light.

Impossible with the current flasher settings..
Bounty Scanner
Number 935
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

On a possibly positive note, you can now have flashers with more than one colour, as can be seen on the witchpoint buoys in trunk.

An orange-orange-red sequence (not quite sure what colours you're using, actually) might well get you closer to the effect you describe...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Actually, if we removed the “bright colours” restriction you could have a white, white, black, black , black , black , black , black pattern.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Frame wrote:
..what I wanted was a long pause and then two brief explosions of light.

Impossible with the current flasher settings..
Not quite true for 1.74 as Kaks mentioned. For ups I already created an docking bay with flashers that give a short burst and than a longer pause. I used the multi colour option but than the second and third colour as no intensity.

Code: Select all

			{
				type = "flasher";
				position = (0, 92, 475);
				colors = ({ hue = 60; }, { hue = 60; brightness = 0.0; }, { hue = 60; brightness = 0.0; });
				frequency = 1;
				phase = -0.5;
				size = 12;
			},
Works great. I actually only use two colours but should work with much more.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Interesting revelations!

Current (or at least 1.74+): Still, not quite what I was after, but much better than I suspected!

Cheers guys.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Eric Walch wrote:
Frame wrote:
..what I wanted was a long pause and then two brief explosions of light.

Impossible with the current flasher settings..
Not quite true for 1.74 as Kaks mentioned. For ups I already created an docking bay with flashers that give a short burst and than a longer pause. I used the multi colour option but than the second and third colour as no intensity.

Code: Select all

			{
				type = "flasher";
				position = (0, 92, 475);
				colors = ({ hue = 60; }, { hue = 60; brightness = 0.0; }, { hue = 60; brightness = 0.0; });
				frequency = 1;
				phase = -0.5;
				size = 12;
			},
Works great. I actually only use two colours but should work with much more.
Thanks,, hard to keep up with all the changes... :S... but thanks again.. multi color flashers with a brightness set at 0 ... nice... :-)
Bounty Scanner
Number 935
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

You can also get some "interesting" effects by putting multiple flashers at the same spot and giving them different colours and/or frequencies. Won't do some of the things mentioned (like Frame's long-off then briefly-on) but can get some quite psychadelic effects, like the one I used in the jump gates for example.
Post Reply