From 0560f2a2f42df0f68b8b7a7e81de7ec959778863 Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 23 Sep 2008 06:24:48 +0000 Subject: [PATCH] make nexuiz-map-compiler use external lightmaps git-svn-id: svn://svn.icculus.org/nexuiz/trunk@4487 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- misc/nexuiz-map-compiler | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/nexuiz-map-compiler b/misc/nexuiz-map-compiler index 88c311a0c..f9d9bfc50 100755 --- a/misc/nexuiz-map-compiler +++ b/misc/nexuiz-map-compiler @@ -18,13 +18,13 @@ use POSIX; our $Q3MAP2FLAGS = ''; # Default flags for the -bsp stage - our $BSPFLAGS = '-samplesize 8 -mv 1000000 -mi 6000000'; + our $BSPFLAGS = '-samplesize 8 -minsamplesize 4 -mv 1000000 -mi 6000000'; # Default flags for the -vis stage our $VISFLAGS = ''; # Default flags for the -light stage - our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3'; + our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3 -lightmapsize 512 -bounce 8 -fastbounce -bouncegrid'; # end of user changable part @@ -171,6 +171,7 @@ for my $m(@{$options->{maps}}) } close $shaderlist; + unlink <$m/lm_*>; # delete old external lightmaps q3map2 '-bsp', '-meta', @{$options->{bsp}}, "$m.map" or die "-bsp: $?"; if($prescale != 1) -- 2.39.2