Author Topic: Lightmap phase of compilation  (Read 3151 times)

Megistos

  • Posts: 18
  • Turrets: +0/-0
Lightmap phase of compilation
« on: June 08, 2007, 11:47:51 pm »
Hi guys,

I've been building a fairly simple map to see what I can do with GtkRadiant, but already I've noticed that the "IlluminateRawLightmap" phase of compilation takes a long time - much longer than any other phases. Is there anything I can do to reduce this time (while still keeping the map well lit) or is it an unavoidable function of the size and complexity of your map?

Cheers!

Thorn

  • Guest
Lightmap phase of compilation
« Reply #1 on: June 09, 2007, 12:22:35 am »
Lots of lights (mostly entity lights) close together cause a longer light-phase time. Perhaps you have to many small lights? Try using shader lights if you aren't already!

Warrior

  • Posts: 230
  • Turrets: +2/-0
    • Warrior's Stuff
Lightmap phase of compilation
« Reply #2 on: June 09, 2007, 12:46:49 am »
If you use the "-bounce" parameter to compile, it will increase the time of that compilation phase. Some shaders can also increase that time considerably.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Lightmap phase of compilation
« Reply #3 on: June 09, 2007, 04:11:28 am »
IlluminateLightMap naturally takes a long time, as it's usually the longest phase in the compilation process.

Lava Croft

  • Guest
Lightmap phase of compilation
« Reply #4 on: June 09, 2007, 01:16:20 pm »
Try setting '_lightmapscale 2' in the worldspawn and check if it helps. This lowers the resolution of the calculated lightmap, resulting in less 'sharp' shadows. To keep the shadow 'sharp' in places where you really want (like a light shining through a grate for example) func_group the brushes that recieve the shadow and give the func_group a _lightmapscale 1, or lower. You can use different _lightmapscale settings throughout your map, giving you a good way of striking a balance between compile time/BSP filesize and looks. Good luck!

gareth

  • Posts: 710
  • Turrets: +38/-89
Lightmap phase of compilation
« Reply #5 on: June 09, 2007, 05:57:41 pm »
optimize your argument list - look at the q3map2 manual, the default ones in radiant are not the best, eg they have super instead of samples.