Author Topic: Light bleading  (Read 3640 times)

Hugoagogo

  • Posts: 96
  • Turrets: +2/-9
Light bleading
« on: June 09, 2008, 08:28:55 am »
I do seem to be haveing alot of problems how do i fix this





light is comeing though a wall
Hugoagogo - The evil and slightly mad scientist

Life has a rubbish respawn time

epsy

  • Posts: 205
  • Turrets: +8/-25
    • Armagetron Advanced!
Re: Light bleading
« Reply #1 on: June 09, 2008, 05:29:52 pm »
Warning: All opinions expressed in my posts are mine and mine alone. Any connection to any group I am affiliated with - be it the ArmagetronAd Developers or any other group, is purely coincidental unless otherwise expressly stated. Don't be a dolt when you read my posts, as they *may* require some brainpower and thinking (also purely coincidental). Any opinion in my posts not expressed by me are purely figments of your imagination and will be dealt with accordingly.
SigTemplate by Khasla.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Light bleading
« Reply #2 on: June 09, 2008, 06:51:30 pm »
You can make it disappear by making the brushes at different elevations. It happens because the same one floor brush is on both sides of the wall. This is the sort of thing you have to take into consideration during the design process. Here's what I mean:

Notice how the tiled floor is on a different plane than the brown floor. This causes q3map2 to regard this surface as a separate lightmap. The issue you are having is because of how lightmaps are rendered. The floor surface you have has one lightmap on it, and the lightmap is scaled and linear filtered to prevent pixellation. Thus, the light bleeds. You have to either break up the floor surface or change the elevation to cause the lightmaps to be split.

You can also render your lightmaps at a higher resolution and they maybe will not bleed. Try changing the floor brush into a func_group then using _lightmapscale to increase the lightmap size(try _lightmapscale 0.1 to make it 10 times as big as normal).

Also, keep in mind that some surfaces you will never see should be caulked. The floor surface under the wall will never ever been seen by players in a normal game, so clip the brush up and set the unseen surfaces to caulk. This can also help prevent lightmap bleeding.

You can leave lightmap bleeding in the game in some cases where it's useful for design. Light bleeding around doors is a nice touch because it actually tends to happen in real life.
« Last Edit: June 09, 2008, 07:13:22 pm by Odin »

Lava Croft

  • Guest
Re: Light bleading
« Reply #3 on: June 09, 2008, 11:08:46 pm »
http://tremulous.net/forum/index.php?action=search2

http://tremulous.net/forum/index.php?topic=8148.msg125726;topicseen#msg125726
wow, how magic, searching for 'light bleeding' gave me that
I think he did not find it because he spells it as bleading.