Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SRGB lightmaps - how to use them

#1
I have a question about SRGB lightmaps, are they just more hi res lightmaps, that are added to BSP and can be used in any game (Warsow/Urban Terror/etc) or is it Xonotic specific feature?
Reply

#2
sRGB lightmaps is not abt higher resolution at all, its how they are 'encoded' / rendered. In short, it looks more natural but the engine needs to support it.

http://www.xonotic.org/2011/11/wox-blox-...oper-news/ Wrote:sRGB lightmaps
There’s a major fixing of the rendering of map lighting that divVerent is working on: sRGB lightmap encoding. Oh, come on, don’t give me that face, I’ll explain it right away what it does! In real life, lights have 1/r^2 falloff (and q3map2 emulates that too). This means, if you move away from the light source, the intensity of the light decreases linearly in an exponential way: the double the distance, the quarter the light intensity.

Ok, are you still with me? Good. But, here comes the problem: light values on your screen are not linear. In fact, the quarter the light value is actually 21th (!) the light intensity. This produces overshadowed, and unrealistically sharp lighting in maps. sRGB lighmap encoding fixes this issue, so we’ll have more natural, more realistic lights, that modern engines like CryEngine render. Here are some screenshots to demonstrate the effect (before and after).

Note: The greyish tint is actually due to a bug where the lights don’t use the proper color tinting values, this bug was fixed by the time of this post, so pay no attention to it for now and simply look at the lighting/shadowing.
Reply

#3
Thanks for explanation Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  sRGB tool Nahuel 1 3,176 03-23-2014, 01:32 PM
Last Post: Mr. Bougo
  Moonprison: A nice custom skybox that I don't know how to use yet Greaserpirate 1 10,095 10-12-2013, 09:51 AM
Last Post: tZork
Smile Baking lightmaps in Blender unbirthday 0 3,496 02-15-2013, 08:23 AM
Last Post: unbirthday
  sRGB vs old build system comparisons nowego4 7 8,437 01-24-2013, 03:01 AM
Last Post: Mr. Bougo
Question How use textures of the game ? Furious68 5 7,175 01-01-2012, 01:34 PM
Last Post: Morphed
  How do I use func_pendulum? Fireball 1 3,068 09-17-2011, 04:20 AM
Last Post: Maddin
  Free images for use in textures Antibody 13 11,526 06-23-2011, 07:51 AM
Last Post: Antibody
  [Mapping Theory] Use of lava or slime Dokujisan 12 14,302 01-04-2011, 07:29 AM
Last Post: Strahlemann

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-