Page 1 of 2

Q1 light.exe that works with q3bsps?

Posted: Mon Jan 24, 2011 7:39 am
by silverjoel
Just like the title says. Is there a light.exe that will work with q3bsps? It doesn't seem like quake lighting works in q3bsps. Funky stuff happens. Has anyone written a light.exe that could access q3bsps?
If not, does anyone want to?

Posted: Mon Jan 24, 2011 8:35 am
by Spirit
No, the Quake 1 light.exe only works with Q1BSP. For Q3BSP use q3map2.

Posted: Mon Jan 24, 2011 8:56 am
by silverjoel
q3bsp's light doesn't show up right in darkplaces. Lightstyles don't work and triggers to turn lights on and off don't work. So, I can't use q3map2. No one has adapted q1 light.exe to q3bsp?

Posted: Mon Jan 24, 2011 9:09 am
by andrewj
q3bsp does not support lightstyles, that is a feature you lose when using q3bsp instead of q1bsp.

Posted: Mon Jan 24, 2011 9:23 am
by silverjoel
That's not true. Jedi Knight uses q3bsp and it has lightstyles from what I understand. Soldier of fortune 2 also uses lightstyles. It's not the q3bsp format, it's the light program.

Posted: Mon Jan 24, 2011 9:46 am
by Spirit
You can abuse shaders to simulate lightstyles. But Darkplaces might not support it.

JK2 and SOF2 might have modified the map format.

Posted: Mon Jan 24, 2011 11:57 am
by Spike
jediknight uses a variant of the q3bsp format, which re-added support for lightstyles.

Posted: Mon Jan 24, 2011 7:07 pm
by silverjoel
Than isn't it possible to add?

Using rtlight, you can add lightstyles in q3bsp for Darkplaces, but I don't know how to turn a light on and off with a trigger. That would solve my problem if anyone has done that.

Posted: Mon Jan 24, 2011 8:06 pm
by mh
By default Q3BSP just doesn't support it. The Q3A engine has no code for multiple styles on a face, it has no code for switchable styles, it has no code for animating styles. Each face gets one static lightmap and that lightmap is never updated while the map is running. Lightstyles won't work in default Q3A.

You need a modified BSP format and a modified engine for this.

Posted: Mon Jan 24, 2011 9:19 pm
by silverjoel
I'm using Darkplaces as the engine. The Q3A engine doesn't matter to me. I understand it's a modified format. That's why I was asking if anyone has done it.

Posted: Mon Jan 24, 2011 9:48 pm
by mh
If DarkPlaces supports stock Q3BSP then it doesn't support lightstyles.

Posted: Mon Jan 24, 2011 11:55 pm
by silverjoel
Darkplaces supports q1bsp, hlbsp and q3bsp.

Posted: Mon Jan 24, 2011 11:57 pm
by leileilol
And it doesn't support Raven's q3bsp.

Posted: Tue Jan 25, 2011 5:17 am
by silverjoel
I can prove it's possible.

http://www.mediafire.com/?gy3f1qffnn5zdk0

Here is a little test map I created. It is q3bsp and has all 12 lightstyles of regular quake(0-11). You need to use Darkplaces(possibly others) and have r_shadow_realtime_world on (set to 1).

I should mention the map name is test.

Posted: Tue Jan 25, 2011 5:26 am
by leileilol
silverjoel wrote:r_shadow_realtime_world on
lightmap lightstyles is not the same as realtime lighting on everything (you could give a .obj map some 'lightstyles support' that way). You did not prove anything. besides, good luck making a q3bsp lightswitch