Dumb light question

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Dumb light question

Post by Foo »

I'm trying to cast light upwards from these holes, but all I get is the round green blob you see near the floor. The light sources are pretty deep in the holes, and if I look up to the ceiling there's a bright green blob where the light is reaching waaaaay up there.

Any idea why it's not casting along the wall? I've tried regular point lights and giving them target_positions. Have I R done something wots stupid?

Image
Fjoggs
Posts: 2555
Joined: Fri May 03, 2002 7:00 am

Post by Fjoggs »

How do you angle your info_null entities? they shouldn't go straight up, but slightly towards the wall.
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

Yeah tried tilting them.

Though I don't get why it won't work as a simple point light, either. It's like it's disregarding the brushes between the 3 lights and lumping them together.
Fjoggs
Posts: 2555
Joined: Fri May 03, 2002 7:00 am

Post by Fjoggs »

Quake3 sucks ass when it comes to creating shadows from brushes. You need a really high light value, or a shader_light value, to create an overall lighteffect.
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

I may just fuck with the lightmap directly in photoshop if I can't get it looking right in-game.

It's something I'll look at down the line, I was just curious as to why it's not immediately working.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Post by obsidian »

Few other things to try:

* Increase the lightmap resolution of the wall by creating a func_group and then set _lightmapscale key with a floating point value (0.5 to double lightmap resolution).

* Check your construction techniques. Make sure you caulk behind those holes where the floor grate meets the wall. Use separate brushes for the wall. (Hope that made sense).

That should do it, but failing that, try the following hacks:

* Create a non-drawing lightmap projection shader similar to those stained glass window effects that people use, utilizing surfaceparm lightfilter.

* Use a _decal entity to project an image onto the wall to fake lightmap detail.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

Setting a lightmap scale on func_group made it start performing a bit like expected. It looks like crap but at least I know the cause of the problem now.

Thanks sir. That's easily one of the neatest little lighting hacks I've encountered, and I'll prolly abuse it from now on :)

Image
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Post by obsidian »

One bit of warning, increasing lightmap scale means you are using more lightmap images, therefore more texture memory is used and longer compile times. Use in small localised areas such as this is great or in places where you need sharper shadows. Just don't over do it. You can even use it lower the resolution in places that the player will not likely see, therefore increasing performance.

Other ways to change lightmap resolution, in worldspawn (same method) or via a shader using q3map_lightmapSampleSize N (default 16 which means a 1x1 luxel for every 16x16 game units).
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Fjoggs
Posts: 2555
Joined: Fri May 03, 2002 7:00 am

Post by Fjoggs »

Oh, I thought you had tried lightmapscale already. Surely, every mapper should know this awesome feature by now. :p
User avatar
Hipshot
Posts: 1547
Joined: Sun Jan 20, 2002 8:00 am

Post by Hipshot »

I though so too :(
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
Post Reply