White flashers

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

White flashers

Post by ClymAngus »

I need some white flashers for something. From what I've read so far it seems to be an impossibility. Out of interest what kind of colour system do they use? Is it addative or subtractive?

Is my best bet adjusting a light map layer?
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 »

I too wanted white flashers when I first joined many years ago - the closest you'll get is yellow - I even tried cheating and overlaying a red, green and blue flasher in the same place with the same flash timing and freq - but that didn't work either (or at least I don't think it did...)

Available colours are based on the old colour wheel thingy-me-bob as seen on some other thread somewhere else. :roll: Sorry, brain not really working, been writing lectures and conference papers all weekend...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

Yeah I was thinking 3 primaries flashing really quickly slightly out of sync. Of course if it's subtractive I'll just end up with a really muddy gray. :(
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 »

The current syntax specifies a hue in the HSV/HSB lighting model. 1.73 adds new dictionary-based syntax for subentities, which allows any colour as long as it’s kinda light (same as for lasers – the value/brightness can’t be lower than 50 %).

Code: Select all

subentities =
(
    {
        type = flasher;
        color = whiteColor;
        type = flasher;
        position = (1, 2, 3);
        size = 10;
        frequency = 1;
        phase = 1;
    }
);
Oh, and it uses additive blending. Subtractive colour models are generally not very useful on screen, especially for representing lights. :-) The big problem with your scheme is that you can’t rely on a fixed, high frame rate.
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2508
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

With that in mind I think I'll put most of them on the "lights" texture layer.

Nifty.
Post Reply