Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* -----------------------------------------------------------------
- allocate output lightmaps
- ----------------------------------------------------------------- */
- /* note it */
- Sys_Printf( "allocating..." );
- printf("\n"); // THD debug
- /* kill all existing output lightmaps */
- if ( outLightmaps != NULL ) {
- printf("1\n"); // THD debug
- for ( i = 0; i < numOutLightmaps; i++ )
- {
- if (!i) printf("2\n"); // THD debug
- free( outLightmaps[ i ].lightBits );
- free( outLightmaps[ i ].bspLightBytes );
- }
- printf("3\n"); // THD debug
- free( outLightmaps );
- outLightmaps = NULL;
- }
- printf("4\n"); // THD debug
- numLightmapShaders = 0;
- numOutLightmaps = 0;
- numBSPLightmaps = 0;
- numExtLightmaps = 0;
- /* find output lightmap */
- for ( i = 0; i < numRawLightmaps; i++ )
- {
- if (!i) printf("5\n"); // THD debug
- lm = &rawLightmaps[ sortLightmaps[ i ] ];
- FindOutLightmaps( lm );
- }
- printf("6\n"); // THD debug
- /* set output numbers in twinned lightmaps */
- printf("numRawLightmaps: %d\n", numRawLightmaps); // THD debug
- for ( i = 0; i < numRawLightmaps; i++ )
- {
- if (!i) printf("7\n"); // THD debug
- /* get lightmap */
- lm = &rawLightmaps[ sortLightmaps[ i ] ];
- /* walk lightmaps */
- for ( lightmapNum = 0; lightmapNum < MAX_LIGHTMAPS; lightmapNum++ )
- {
- if (!i && !lightmapNum) printf("8\n"); // THD debug
- /* get twin */
- lm2 = lm->twins[ lightmapNum ];
- if ( lm2 == NULL ) {
- continue;
- }
- lightmapNum2 = lm->twinNums[ lightmapNum ];
- /* find output lightmap from twin */
- lm->outLightmapNums[ lightmapNum ] = lm2->outLightmapNums[ lightmapNum2 ];
- lm->lightmapX[ lightmapNum ] = lm2->lightmapX[ lightmapNum2 ];
- lm->lightmapY[ lightmapNum ] = lm2->lightmapY[ lightmapNum2 ];
- }
- if (!i) printf("9\n"); // THD debug
- }
- printf("10\n"); // THD debug
- ___________________________________________________________________________
- Building to bsp: maps/metro.map
- Building ./maps/metro.map, stage: bsp
- Build command: q3map2 -game unv -bsp -fs_pakpath . -prtfile /tmp/tmp5xm0v5zs_metro.prt -srffile /tmp/tmp6h2200m0_metro.srf -bspfile build/test/map-metro_test.pk3dir/maps/metro.bsp -meta -custinfoparms -samplesize 1 ./maps/metro.map
- 2.5.17n-git-43d32b8
- threads: 8
- Q3Map - v1.0r (c) 1999 Id Software Inc.
- Q3Map (ydnar) - v2.5.17n-git-43d32b8
- NetRadiant - v1.5.0n-git-43d32b8 Feb 4 2016 03:21:58
- Your map saw the pretty lights from q3map2's BFG
- VFS Init: .
- --- BSP ---
- -bsp argument unnecessary
- Use /tmp/tmp5xm0v5zs_metro.prt as portal file
- Use /tmp/tmp6h2200m0_metro.srf as surface file
- Use build/test/map-metro_test.pk3dir/maps/metro.bsp as bsp file
- Creating meta surfaces from brush faces
- Custom info parms enabled
- Lightmap sample size set to 1x1 units
- entering scripts/shaderlist.txt
- entering scripts/metro.shader
- Loading /data/dev/foreign-maps/map-metro/./maps/metro.map
- entering /data/dev/foreign-maps/map-metro/./maps/metro.map
- Entity 761 (func_group) has lightmap scale of 0.2500
- Entity 762 (func_group) has lightmap scale of 0.1250
- Entity 982 (func_group) has lightmap scale of 0.2500
- Entity 983 (func_group) has lightmap scale of 0.2500
- 0 areaportals
- Size: -4096, -7232, -512 to 4160, 7056, 3072
- block size = { 1024 1024 1024 }
- BOGUS Entity 39, Brush 0: Entity in solid
- Entity 40, Brush 0: Entity in solid
- Entity 79, Brush 0: Entity in solid
- Entity 92, Brush 0: Entity in solid
- Entity 153, Brush 0: Entity in solid
- Entity 156, Brush 0: Entity in solid
- Entity 184, Brush 0: Entity in solid
- Entity 185, Brush 0: Entity in solid
- Entity 259, Brush 0: Entity in solid
- Entity 261, Brush 0: Entity in solid
- Entity 265, Brush 0: Entity in solid
- Entity 273, Brush 0: Entity in solid
- Entity 375, Brush 0: Entity in solid
- Entity 376, Brush 0: Entity in solid
- Entity 409, Brush 0: Entity in solid
- Entity 414, Brush 0: Entity in solid
- Entity 491, Brush 0: Entity in solid
- Entity 508, Brush 0: Entity in solid
- Entity 551, Brush 0: Entity in solid
- Entity 558, Brush 0: Entity in solid
- Entity 564, Brush 0: Entity in solid
- Entity 607, Brush 0: Entity in solid
- Entity 648, Brush 0: Entity in solid
- Entity 698, Brush 0: Entity in solid
- Entity 702, Brush 0: Entity in solid
- Entity 716, Brush 0: Entity in solid
- Entity 751, Brush 0: Entity in solid
- Entity 782, Brush 0: Entity in solid
- Entity 785, Brush 0: Entity in solid
- Entity 789, Brush 0: Entity in solid
- Entity 790, Brush 0: Entity in solid
- Entity 791, Brush 0: Entity in solid
- Entity 796, Brush 0: Entity in solid
- Entity 797, Brush 0: Entity in solid
- Entity 813, Brush 0: Entity in solid
- Entity 815, Brush 0: Entity in solid
- Entity 816, Brush 0: Entity in solid
- Entity 817, Brush 0: Entity in solid
- Entity 818, Brush 0: Entity in solid
- Entity 819, Brush 0: Entity in solid
- Entity 820, Brush 0: Entity in solid
- Entity 821, Brush 0: Entity in solid
- Entity 822, Brush 0: Entity in solid
- Entity 823, Brush 0: Entity in solid
- Entity 824, Brush 0: Entity in solid
- Entity 826, Brush 0: Entity in solid
- Entity 827, Brush 0: Entity in solid
- Entity 829, Brush 0: Entity in solid
- Entity 833, Brush 0: Entity in solid
- Entity 835, Brush 0: Entity in solid
- Entity 838, Brush 0: Entity in solid
- Entity 839, Brush 0: Entity in solid
- Entity 840, Brush 0: Entity in solid
- Entity 841, Brush 0: Entity in solid
- Entity 842, Brush 0: Entity in solid
- Entity 843, Brush 0: Entity in solid
- Entity 844, Brush 0: Entity in solid
- Entity 845, Brush 0: Entity in solid
- Entity 846, Brush 0: Entity in solid
- Entity 847, Brush 0: Entity in solid
- Entity 848, Brush 0: Entity in solid
- Entity 849, Brush 0: Entity in solid
- Entity 850, Brush 0: Entity in solid
- Entity 851, Brush 0: Entity in solid
- Entity 852, Brush 0: Entity in solid
- Entity 853, Brush 0: Entity in solid
- Entity 854, Brush 0: Entity in solid
- Entity 855, Brush 0: Entity in solid
- Entity 856, Brush 0: Entity in solid
- Entity 857, Brush 0: Entity in solid
- Entity 858, Brush 0: Entity in solid
- Entity 859, Brush 0: Entity in solid
- Entity 860, Brush 0: Entity in solid
- Entity 861, Brush 0: Entity in solid
- Entity 862, Brush 0: Entity in solid
- Entity 863, Brush 0: Entity in solid
- Entity 864, Brush 0: Entity in solid
- Entity 868, Brush 0: Entity in solid
- Entity 869, Brush 0: Entity in solid
- Entity 870, Brush 0: Entity in solid
- Entity 871, Brush 0: Entity in solid
- Entity 872, Brush 0: Entity in solid
- Entity 873, Brush 0: Entity in solid
- Entity 874, Brush 0: Entity in solid
- Entity 875, Brush 0: Entity in solid
- Entity 876, Brush 0: Entity in solid
- Entity 891, Brush 0: Entity in solid
- Entity 892, Brush 0: Entity in solid
- Entity 893, Brush 0: Entity in solid
- Entity 895, Brush 0: Entity in solid
- Entity 896, Brush 0: Entity in solid
- Entity 897, Brush 0: Entity in solid
- Entity 898, Brush 0: Entity in solid
- Entity 899, Brush 0: Entity in solid
- Entity 900, Brush 0: Entity in solid
- Entity 901, Brush 0: Entity in solid
- Entity 902, Brush 0: Entity in solid
- Entity 903, Brush 0: Entity in solid
- Entity 904, Brush 0: Entity in solid
- Entity 915, Brush 0: Entity in solid
- Entity 916, Brush 0: Entity in solid
- Entity 976, Brush 0: Entity in solid
- 1382 leafs filled
- writing /tmp/tmp5xm0v5zs_metro.prt
- Fog 0 has visible side 1
- Fog 1 has visible side 0
- Fog 2 has visible side 2
- Fog 3 has visible side 3
- --- EmitMetaStats ---
- 21157 total meta surfaces
- 20915 stripped surfaces
- 188 fanned surfaces
- 0 maxarea'd surfaces
- 0 patch meta surfaces
- 0 meta verts
- 0 meta triangles
- --- WriteSurfaceExtraFile ---
- Writing /tmp/tmp6h2200m0_metro.srf
- Writing build/test/map-metro_test.pk3dir/maps/metro.bsp
- Wrote 11.0 MB (11511004 bytes)
- 15 seconds elapsed
- Building ./maps/metro.map, stage: vis
- Build command: q3map2 -game unv -vis -fs_pakpath . -prtfile /tmp/tmp5xm0v5zs_metro.prt -saveprt build/test/map-metro_test.pk3dir/maps/metro.bsp
- 2.5.17n-git-43d32b8
- threads: 8
- Q3Map - v1.0r (c) 1999 Id Software Inc.
- Q3Map (ydnar) - v2.5.17n-git-43d32b8
- NetRadiant - v1.5.0n-git-43d32b8 Feb 4 2016 03:21:58
- Your map saw the pretty lights from q3map2's BFG
- VFS Init: .
- --- Vis ---
- Use /tmp/tmp5xm0v5zs_metro.prt as portal file
- saveprt = true
- Loading /data/dev/foreign-maps/map-metro/build/test/map-metro_test.pk3dir/maps/metro.bsp
- No portals means no vis, exiting.
- 0 seconds elapsed
- Building ./maps/metro.map, stage: light
- Build command: q3map2 -game unv -light -fs_pakpath . -srffile /tmp/tmp6h2200m0_metro.srf -bspfile build/test/map-metro_test.pk3dir/maps/metro.bsp -lightmapdir build/test/map-metro_test.pk3dir/maps/metro -fast -shade -fill -filter -dirty -patchshadows -samples 2 -samplesize 1 -bouncegrid -fastbounce -bounce 1 -deluxe -lightmapsize 2048 -external ./maps/metro.map
- 2.5.17n-git-43d32b8
- threads: 8
- Q3Map - v1.0r (c) 1999 Id Software Inc.
- Q3Map (ydnar) - v2.5.17n-git-43d32b8
- NetRadiant - v1.5.0n-git-43d32b8 Feb 4 2016 03:21:58
- Your map saw the pretty lights from q3map2's BFG
- VFS Init: .
- --- Light ---
- --- ProcessGameSpecific ---
- lightning model: quake3
- lightmap size: 128 x 128 pixels
- lightning gamma: 1.000000
- lightmap colorspace: linear
- texture colorspace: linear
- _color colorspace: linear
- lightning compensation: 1.000000
- lightning exposure: 0.000000
- lightgrid scale: 1.000000
- lightgrid ambient scale: 1.000000
- shader lightstyles hack: enabled
- patch shadows: disabled
- deluxemapping: disabled
- --- ProcessCommandLine ---
- Use /tmp/tmp6h2200m0_metro.srf as surface file
- Use build/test/map-metro_test.pk3dir/maps/metro.bsp as bsp file
- Lightmap directory set to build/test/map-metro_test.pk3dir/maps/metro
- Storing all lightmaps externally
- Fast mode enabled for all area lights
- Phong shading enabled
- Filling lightmap colors from surrounding pixels to improve JPEG compression
- Lightmap filtering enabled
- Dirtmapping enabled
- Patch shadow casting enabled
- Adaptive supersampling enabled with 2 sample(s) per lightmap texel
- Default lightmap sample size set to 1x1 units
- Fast bounce mode enabled
- Radiosity enabled with 1 bounce(s)
- Generating deluxemaps for average light direction
- Default lightmap size set to 2048 x 2048 pixels
- Storing all lightmaps externally
- Storing all lightmaps externally
- entering scripts/shaderlist.txt
- entering scripts/metro.shader
- Loading /data/dev/foreign-maps/map-metro/./maps/metro.map
- Loading /tmp/tmp6h2200m0_metro.srf
- Loading /data/dev/foreign-maps/map-metro/./maps/metro.map
- entering /data/dev/foreign-maps/map-metro/./maps/metro.map
- --- SmoothNormals ---
- 0...1...2...3...4...5...6...7...8...9... (40)
- --- SetupGrid ---
- Grid size = { 64, 64, 128 }
- 844480 grid points
- WARNING: Styled light found targeting
- **WARNING: Styled light found targeting
- **WARNING: Styled light found targeting
- ** 859 point lights
- 0 spotlights
- 537 diffuse (area) lights
- 21 sun/sky lights
- 1377 total lights
- 40 culled lights
- --- TraceGrid ---
- 0...1...2...3...4...5...6...7...8...9... (91)
- 130 x 224 x 29 = 844480 grid
- --- MapRawLightmap ---
- 0...1...2...3...4...5...6...7...8...9... (32)
- 158784949 luxels
- 81160061 luxels mapped
- 28923540 luxels occluded
- --- DirtyRawLightmap ---
- 0...1...2...3...4...5...6...7...8...9... (975)
- --- FloodlightRawLightmap ---
- 0...1...2...3...4...5...6...7...8...9... (0)
- 0 custom lightmaps floodlighted
- 1377 total lights
- 0 culled lights
- --- IlluminateRawLightmap ---
- 0...1...2...3...4...5...6...7...8...9... (492)
- 158784949 luxels illuminated
- --- IlluminateVertexes ---
- 0...1...2...3...4...5...6...7...8...9... (31)
- 147140 vertexes illuminated
- --- StoreSurfaceLightmaps ---
- Subsampling...sorting...allocating...
- 4
- 5
- 6
- numRawLightmaps: 17492
- 7
- 8
- 9
- 10
- storing...
- projecting...done.
- 108761817 luxels used
- 0 luxels stored (0.00 percent efficiency)
- 0 solid surface lightmaps
- 0 identical surface lightmaps, using 0 luxels
- 0 vertex forced surfaces
- 0 vertex approximated surfaces
- 58 BSP lightmaps
- 29 total lightmaps
- 1126 unique lightmap/shader combinations
- 67 custom shaders emitted
- Writing build/test/map-metro_test.pk3dir/maps/metro.bsp
- Wrote 17.4 MB (18271968 bytes)
- --- Radiosity (bounce 1 of 1) ---
- 0...1...2...3...4...5...6...7...8...9... (1)
- 23353 diffuse surfaces
- 55790 total lights
- 5257 culled lights
- --- BounceGrid ---
- 0...1...2...3...4...5...6...7...8...9... (1798)
- --- IlluminateRawLightmap ---
- 0...1...2...3...4...5...6...7...8...9... (5550)
- 317525510 luxels illuminated
- 147140 vertexes illuminated
- --- IlluminateVertexes ---
- 0...1...2...3...4...5...6...7...8...9... (11)
- 294890 vertexes illuminated
- --- StoreSurfaceLightmaps ---
- Subsampling...sorting...allocating...
- 1
- 2
- 3
- 4
- 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement