Page 1 of 2

Light colour

Posted: Sun Apr 01, 2012 4:02 pm
by ajay
I know this has been discussed here before, so much so that I'm pretty sure I was part of it. Anyway how do you set colour for lights? I was sure it was "color" as a key then something like "0.8 0.4 0.3" etc as the value. Tried it, but no luck. Cheers. ajay.

Re: Light colour

Posted: Sun Apr 01, 2012 4:24 pm
by toneddu2000
try with _color

Re: Light colour

Posted: Sun Apr 01, 2012 5:11 pm
by ajay
Thanks, just tried that; no luck :(

Re: Light colour

Posted: Mon Apr 02, 2012 1:22 am
by mh
Some light tools take a 0-1 range, others take a 0-255 range, so try that.

Re: Light colour

Posted: Mon Apr 02, 2012 7:55 am
by toneddu2000
what kind of q3map2 compiling settings do you use?

Re: Light colour

Posted: Mon Apr 02, 2012 11:51 am
by Chip
toneddu2000 wrote:what kind of q3map2 compiling settings do you use?
I don't think Ajay's using q3map2. Did you see his screenshots?

What compiler are you using, Ajay? I did coloured light with hmap2 and with Bengt's light tool. I used both 'color' and '_color', both worked just fine.

The parameters should be _color 0 0 1 (for blue, for example).

Re: Light colour

Posted: Mon Apr 02, 2012 12:26 pm
by ajay
I'm using LightBSP2...

Re: Light colour

Posted: Mon Apr 02, 2012 5:23 pm
by mh
LightBSP2 should work (otherwise I'd have the hellhound that is GB&Co on my trail...)
It should also support both light ranges and be able to autodetect which one is used in the map (sigh - more Quake standards fragmentation... rant for another day...)

A possible cause is this: there are some BSP compilers that will strip out light entities as an "optimization" step, because saving a coupla k here and there is just so so important in these days of 1TB hard drives. Maybe open the BPS file in something like Wordpad before lighting it, check a light entity and make sure that everything needed is still there.

Re: Light colour

Posted: Mon Apr 02, 2012 5:51 pm
by ajay
Is there anything I have to use with lightBSP2, e.g. -coloured etc? Or should it work as is?

Re: Light colour

Posted: Mon Apr 02, 2012 11:40 pm
by mh
Should just work. I've double-checked the code and can confirm that there are no special options for it, that the keys are color or _color, and that it should autodetect the range (0..1 or 0..255) and calibrate itself.

Maybe try a 0..255 range on one light source in a test map just to ensure?

Re: Light colour

Posted: Tue Apr 03, 2012 12:16 am
by frag.machine
May I suggest to create a simple test map, a box with a single colored light to check things ?

Re: Light colour

Posted: Tue Apr 03, 2012 2:50 pm
by ajay
Thanks both; I've tried a test map, both from within the mod directory and id1. I've tried _color and color, variants of up to 1.0 and 255, I've even tried colour instead of color, but no dice. Iv'e run a different test map with coloured lighting (not one made by me) and naturally DirectQ displays the coloured lights. Has anyone got a .map/.rmf with coloured lights I could look at?

Re: Light colour

Posted: Tue Apr 03, 2012 3:13 pm
by Spike
is the generated .lit file written to the right place? is it written at all?

Re: Light colour

Posted: Tue Apr 03, 2012 3:20 pm
by ajay
Oh Spike you bloomin' genius. The problem was that I copied the .bsp from one folder to the mod folder/maps within the batch file, all I had to do is copy the .lit file too and it works. Cheers muchly :)


Yes, I do feel foolish

Re: Light colour

Posted: Tue Apr 03, 2012 8:03 pm
by Spike
external files suck.