1 Index: tools/quake3/q3map2/brush.c
2 ===================================================================
3 --- tools/quake3/q3map2/brush.c (revision 391)
4 +++ tools/quake3/q3map2/brush.c (working copy)
10 + static int brushord = -1;
13 + Sys_Printf("In CreateBrushWindings() for brush %i\n", brushord);
15 /* walk the list of brush sides */
16 for( i = 0; i < brush->numsides; i++ )
18 + Sys_Printf(" Handling side %i on the brush\n", i);
20 /* get side and plane */
21 side = &brush->sides[ i ];
22 plane = &mapplanes[ side->planenum ];
25 w = BaseWindingForPlane( plane->normal, plane->dist );
29 + Sys_Printf(" Before clipping we have:\n");
31 + for (z = 0; z < w->numpoints; z++) {
32 + Sys_Printf(" (%.8f %.8f %.8f)\n", w->p[z][0], w->p[z][1], w->p[z][2]);
35 /* walk the list of brush sides */
36 for( j = 0; j < brush->numsides && w != NULL; j++ )
40 ChopWindingInPlace( &w, plane->normal, plane->dist, 0 ); // CLIP_EPSILON );
44 + Sys_Printf(" After clipping w/ side %i we have:\n", j);
47 + for (z = 0; z < w->numpoints; z++)
49 + Sys_Printf(" (%.8f %.8f %.8f)\n", w->p[z][0], w->p[z][1], w->p[z][2]);
54 + Sys_Printf(" winding is NULL\n");
57 /* ydnar: fix broken windings that would generate trifans */
58 #if EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES
60 Index: tools/quake3/q3map2/map.c
61 ===================================================================
62 --- tools/quake3/q3map2/map.c (revision 391)
63 +++ tools/quake3/q3map2/map.c (working copy)
65 char shader[ MAX_QPATH ];
68 + static int brushord = -1;
71 + Sys_Printf("In ParseRawBrush() for brush %i\n", brushord);
74 buildBrush->numsides = 0;
75 buildBrush->detail = qfalse;
77 if( g_bBrushPrimit == BPRIMIT_NEWBRUSHES )
86 if( !GetToken( qtrue ) )
88 if( !strcmp( token, "}" ) )
92 /* find the plane number */
93 + Sys_Printf(" Side %i:\n", sideord);
94 + Sys_Printf(" (%f %f %f)\n", planePoints[0][0], planePoints[0][1], planePoints[0][2]);
95 + Sys_Printf(" (%f %f %f)\n", planePoints[1][0], planePoints[1][1], planePoints[1][2]);
96 + Sys_Printf(" (%f %f %f)\n", planePoints[2][0], planePoints[2][1], planePoints[2][2]);
97 planenum = MapPlaneFromPoints( planePoints );
98 + Sys_Printf(" normal: (%.10f %.10f %.10f)\n",
99 + mapplanes[planenum].normal[0],
100 + mapplanes[planenum].normal[1],
101 + mapplanes[planenum].normal[2]);
102 + Sys_Printf(" dist: %.10f\n", mapplanes[planenum].dist);
103 side->planenum = planenum;
105 /* bp: get the texture mapping for this texturedef / plane combination */