Q1 light.exe that works with q3bsps?

Discuss the construction of maps and the tools to create maps for 3D games.
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Q1 light.exe that works with q3bsps?

Post 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?
Spirit
Posts: 1065
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Post by Spirit »

No, the Quake 1 light.exe only works with Q1BSP. For Q3BSP use q3map2.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post 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?
andrewj
Posts: 133
Joined: Mon Aug 30, 2010 3:29 pm
Location: Australia

Post by andrewj »

q3bsp does not support lightstyles, that is a feature you lose when using q3bsp instead of q1bsp.
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post 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.
Spirit
Posts: 1065
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Post by Spirit »

You can abuse shaders to simulate lightstyles. But Darkplaces might not support it.

JK2 and SOF2 might have modified the map format.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

jediknight uses a variant of the q3bsp format, which re-added support for lightstyles.
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post 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.
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Post 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.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post 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.
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Post by mh »

If DarkPlaces supports stock Q3BSP then it doesn't support lightstyles.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post by silverjoel »

Darkplaces supports q1bsp, hlbsp and q3bsp.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post by leileilol »

And it doesn't support Raven's q3bsp.
i should not be here
silverjoel
Posts: 52
Joined: Thu Sep 30, 2010 6:46 am

Post 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.
Last edited by silverjoel on Tue Jan 25, 2011 6:23 am, edited 1 time in total.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Post 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
i should not be here
Post Reply